> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pomerado.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get your Premium subscription

> Your Personal account's plan and Premium subscription: its status, interval and current period end, whether the billing portal can open, which intervals checkout offers, and any scheduled switch to yearly billing.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/billing
openapi: 3.1.0
info:
  title: Pomerado API
  version: '1'
  description: >-
    Run and build website tools, follow their jobs, and manage logins, API keys
    and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth
    token or a Dashboard session as a Bearer token.
servers:
  - url: https://api.pomerado.ai
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: tools
    x-group: Tools
  - name: webhooks
    x-group: Webhooks
paths:
  /v1/billing:
    get:
      tags:
        - billing
      summary: Get your Premium subscription
      description: >-
        Your Personal account's plan and Premium subscription: its status,
        interval and current period end, whether the billing portal can open,
        which intervals checkout offers, and any scheduled switch to yearly
        billing.
      operationId: billing.get
      responses:
        '200':
          description: Your subscription
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Billing'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    Billing:
      type: object
      required:
        - plan
        - status
        - interval
        - current_period_end
        - live
        - portal
        - checkout
        - yearly_switch
      properties:
        plan:
          type: string
          enum:
            - free
            - premium
        status:
          type: string
          enum:
            - free
            - active
            - trialing
            - canceling
            - past_due
            - payment_failed
          description: >-
            free; active; trialing; canceling (Premium until current_period_end,
            then Free); past_due (Premium while Stripe retries a failed
            payment); payment_failed (the first payment failed, so still Free)
        interval:
          anyOf:
            - type: string
              enum:
                - monthly
                - yearly
            - type: 'null'
        current_period_end:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            When the current period ends: the next renewal, the end of a trial,
            or when Premium ends
        live:
          type: boolean
          description: >-
            False when Stripe could not be read, so this is the subscription
            Pomerado last stored
        portal:
          type: boolean
          description: The billing portal can open
        checkout:
          type: object
          required:
            - monthly
            - yearly
          properties:
            monthly:
              type: boolean
            yearly:
              type: boolean
          additionalProperties: false
          description: Which Premium intervals checkout offers
        yearly_switch:
          type: object
          required:
            - available
            - scheduled
            - needs_support
          properties:
            available:
              type: boolean
              description: A monthly subscription can switch to yearly at its next renewal
            scheduled:
              anyOf:
                - type: object
                  required:
                    - schedule_id
                    - starts_at
                  properties:
                    schedule_id:
                      type: string
                    starts_at:
                      type: string
                  additionalProperties: false
                - type: 'null'
            needs_support:
              type: boolean
              description: >-
                The subscription carries a scheduled change Pomerado did not
                make
          additionalProperties: false
      additionalProperties: false
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.