# Get plan and add-ons (/docs/api-reference/account/getPlanAndAddons)

> Read your organization's plan: its status and renewal or expiry date, your concurrency add-ons, your concurrency limit, which plan features you have, and the phone numbers that renew in the next 14 days with whether your balance covers each renewal. It also says when your organization was created, whether it is paid, and how many calls it made in the last 7 and 30 days.

**GET** `/account/plan`

Read your organization's plan: its status and renewal or expiry date,
your concurrency add-ons, your concurrency limit, which plan features
you have, and the phone numbers that renew in the next 14 days with
whether your balance covers each renewal. It also says when your
organization was created, whether it is paid, and how many calls it
made in the last 7 and 30 days.

Your balance and rates are on Get account balance.

The API key's user needs Billing access in your organization. If
you get a `403`, an administrator can grant it when Billing is
enabled for your organization. When it is not, contact support.

```yaml
operationId: getPlanAndAddons
parameters:
  - in: query
    name: user_id
    required: false
    description: |
      Reseller keys only: act as one of your clients by its user id. Omit
      it to act on your own account.
      [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
    schema:
      type: integer
      description: |
        Reseller keys only: act as one of your clients by its user id. Omit
        it to act on your own account.
        [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
      example: 1234
responses:
  '200':
    description: The account's plan and what runs out soon.
    content:
      application/json:
        schema:
          type: object
          description: |
            Your organization's plan, its add-ons, its concurrency, the features
            the plan includes, and the phone numbers that renew soon.
          properties:
            organization:
              type: object
              properties:
                id:
                  type: integer
                name:
                  type: string
            account:
              type: object
              description: Facts about the account, for support.
              properties:
                created_at:
                  type: string
                  format: date-time
                  description: When your organization was created.
                paid:
                  type: boolean
                  description: >-
                    `true` when your organization has an active plan or any user of your
                    organization has made a successful payment.
                calls_last_7_days:
                  type: integer
                  description: Your organization's calls in the last 7 calendar days (UTC), today included.
                calls_last_30_days:
                  type: integer
                  description: Your organization's calls in the last 30 calendar days (UTC), today included.
            plan:
              type: object
              properties:
                id:
                  type:
                    - integer
                    - 'null'
                name:
                  type:
                    - string
                    - 'null'
                  description: Name of the active plan.
                billing_interval:
                  type:
                    - string
                    - 'null'
                is_usage_based:
                  type: boolean
                  description: >-
                    Whether calls are metered to your payment method instead of stopping at a zero
                    balance.
                subscription_status:
                  type:
                    - string
                    - 'null'
                  description: >-
                    Status of the plan's subscription, for example `active`, `past_due` or
                    `canceled`.
                renews_at:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  description: When an active subscription renews.
                expires_at:
                  type:
                    - string
                    - 'null'
                  format: date-time
                  description: When a subscription that is not renewing runs out. `null` while it renews.
            add_ons:
              type: array
              description: Concurrency add-ons that are live, plus the ones that ended in the last 30 days.
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - concurrency
                  name:
                    type: string
                    description: >-
                      Where the add-on came from, for example `Purchased Concurrency` or
                      `Subscription Plan`.
                  quantity:
                    type: integer
                    description: Concurrent calls the add-on gives.
                  status:
                    type: string
                    enum:
                      - active
                      - grace
                      - expired
                  expires_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  auto_renew:
                    type: boolean
            concurrency:
              type: object
              properties:
                limit:
                  type: integer
                  description: Calls your organization can run at once.
                in_use:
                  type: integer
                  description: Calls running now.
                available:
                  type: integer
                  description: Calls you can start now.
            features:
              type: array
              description: Each feature sold on plans, and whether your plan includes it.
              items:
                type: object
                properties:
                  key:
                    type: string
                    example: whatsapp
                  name:
                    type: string
                    example: WhatsApp
                  available:
                    type: boolean
                    description: Whether your organization has the feature.
            numbers_renewing_soon:
              type: array
              description: Phone numbers bought from us that renew in the next 14 days, soonest first.
              items:
                type: object
                properties:
                  phone_number:
                    type: string
                  renews_at:
                    type: string
                    format: date-time
                  auto_renew:
                    type: boolean
                    description: '`false` when the number is set to be released on its date instead.'
                  renewal_cost_usd:
                    type: number
                    description: What the renewal costs. `0` when `auto_renew` is `false`.
                  wallet_covers:
                    type:
                      - boolean
                      - 'null'
                    description: |
                      Whether your balance covers this renewal, after the renewals
                      due before it. `null` when `auto_renew` is `false`.
  '401':
    description: Missing or invalid API key.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: unauthorized
          error_description: Missing or invalid API key
  '403':
    description: |
      The API key's user does not have Billing access. If Billing is
      enabled for your organization, an administrator can grant it; if it
      is not, contact support.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: forbidden
          error_description: >-
            You do not have access to Billing. If Billing is enabled for your organization, an
            administrator can grant it.
```

**curl**

```bash
curl -X GET "https://omnidim.io/api/v1/account/plan?user_id=1234" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY"
```