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

# Read the catalogue

> Requires `billing:read`. One environment's whole catalogue: every plan with its prices and the features that plan carries, plus the environment's full feature list — including features no plan carries yet, which is what a pricing matrix needs before it has any cells.

One call rather than a resource per row: a pricing matrix needs all of it at once, and an environment's catalogue is tens of rows.

The catalogue is **per environment**. Build it in test and the live one is untouched. And it is *your* pricing, sold to your own customers — not the plan you are on with UserKit, which is `GET /v1/organization/entitlements`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/organization/catalogue
openapi: 3.1.0
info:
  title: UserKit API
  version: 1.0.0
  description: >-
    The HTTP surface of UserKit.


    Two planes share one API. The **staff plane** is what a human uses in the
    panel: users, organizations, roles, members, keys. The **customer plane** is
    what a developer's own product uses: contacts, identities, hosted or
    federated sign-in.


    Every error answers the same envelope — `{"error": {"code", "message"}}`.
    The `code` is a stable contract to branch on; the `message` is for a person
    and may change.
servers:
  - url: '{baseUrl}'
    description: The API host.
    variables:
      baseUrl:
        default: https://api.userkit.dev
        description: Base URL of the API, no trailing slash.
security:
  - sessionToken: []
tags:
  - name: Authentication
    description: >-
      Public sign-up, sign-in, two-factor and password recovery for staff
      accounts.
  - name: Session
    description: >-
      The active session: who the caller is, which organization they are in, and
      signing out.
  - name: Account
    description: The caller's own account — profile, password, sessions, avatar.
  - name: Two-factor
    description: >-
      TOTP setup, activation and recovery codes. Returns 501 when two-factor is
      unavailable on the server.
  - name: Organizations
    description: The organizations a user belongs to, and the active one.
  - name: Environments
    description: >-
      The live and test environments seeded with every organization, and their
      identity settings.
  - name: Members
    description: Memberships and invitations.
  - name: Roles
    description: Roles and the permission catalogue they draw from.
  - name: Audit log
    description: >-
      What staff did inside an organization. Append-only, and read behind its
      own permission.
  - name: API keys
    description: Secret keys (`uk_sk_…`) and publishable keys (`uk_pk_…`).
  - name: Contacts (staff session)
    description: >-
      The staff view of the customer plane, opened by a staff session. Reads
      take `?environment=` as an explicit view parameter.
  - name: Contacts (API key)
    description: >-
      The machine surface, authenticated by an API key. The environment is the
      key's environment and cannot be named by the caller.
  - name: Customer plane
    description: >-
      Called from the developer's own pages with a publishable key: boot, magic
      link, and the contact's own session.
  - name: Hosted auth
    description: >-
      Sign-up, sign-in, verification and recovery for contacts, when UserKit
      owns the account.
  - name: Customer teams
    description: >-
      A customer is a team. Its roster, its invitations and its two roles —
      owner and member — administered by the contact's own session. The active
      customer travels in `X-Customer-Id`.
  - name: Webhooks
    description: >-
      Outbound webhooks: endpoints, the published event catalogue, the delivery
      log, replay and test sends. Never gated by a plan — webhooks are a
      developer primitive.
  - name: Catalogue
    description: >-
      The plans, prices and features **you** sell to your own customers. Per
      environment, a price per currency, and `recurring` or `one_time`. Distinct
      from the plan you are on with UserKit, which is `GET
      /v1/organization/entitlements`.
  - name: Subscriptions
    description: >-
      What one of **your** customers is paying you, mirrored from the gateway
      that charges them. The gateway is the truth about money — it holds the
      schedule, runs the retries and decides what a proration is worth — so
      these routes ask it to change something and answer with what it then said.
      `provider_synced_at` is how stale the copy admits to being.
  - name: Provider webhooks
    description: >-
      Where a payment provider delivers to. Not a surface you call — it is a URL
      you paste into the provider's dashboard, which is why it sits outside
      `/v1`: a version bump must never mean editing a setting in somebody else's
      product. Signed with the secret of the connection named in the path, and
      safe to retry.
  - name: Entitlements
    description: >-
      What one of **your** customers may do, resolved: the plan their
      subscription carries, plus the overrides you promised them on top. This is
      the read your own gate calls, so it is cached and answers in one round
      trip. It is a different question from `GET /v1/organization/entitlements`,
      which is the plan **you** are on with UserKit — two catalogues, same word,
      different money.
paths:
  /v1/organization/catalogue:
    get:
      tags:
        - Catalogue
      summary: Read the catalogue
      description: >-
        Requires `billing:read`. One environment's whole catalogue: every plan
        with its prices and the features that plan carries, plus the
        environment's full feature list — including features no plan carries
        yet, which is what a pricing matrix needs before it has any cells.


        One call rather than a resource per row: a pricing matrix needs all of
        it at once, and an environment's catalogue is tens of rows.


        The catalogue is **per environment**. Build it in test and the live one
        is untouched. And it is *your* pricing, sold to your own customers — not
        the plan you are on with UserKit, which is `GET
        /v1/organization/entitlements`.
      operationId: readCatalogue
      parameters:
        - $ref: '#/components/parameters/OrganizationHeader'
        - $ref: '#/components/parameters/EnvironmentQuery'
      responses:
        '200':
          description: The catalogue.
          content:
            application/json:
              schema:
                type: object
                properties:
                  environment:
                    type: string
                    enum:
                      - live
                      - test
                  plans:
                    type: array
                    items:
                      $ref: '#/components/schemas/CataloguePlan'
                  features:
                    type: array
                    items:
                      $ref: '#/components/schemas/CatalogueFeature'
              example:
                environment: live
                plans:
                  - id: …
                    key: pro
                    name: Pro
                    description: When it gets real
                    display_order: 1
                    archived: false
                    prices:
                      - id: …
                        kind: recurring
                        currency: BRL
                        amount_minor: 14900
                        currency_exponent: 2
                        interval_unit: month
                        interval_count: 1
                        tax_behavior: inclusive
                        archived: false
                        providers:
                          - provider: stripe
                            provider_account_id: acct_…
                            provider_price_id: price_…
                            provider_product_id: prod_…
                        created_at: '2026-07-01T12:00:00Z'
                      - id: …
                        kind: one_time
                        currency: BRL
                        amount_minor: 99700
                        currency_exponent: 2
                        interval_unit: null
                        interval_count: null
                        tax_behavior: inclusive
                        archived: false
                        providers: []
                        created_at: '2026-07-01T12:00:00Z'
                    features:
                      - feature_id: …
                        feature_key: seats
                        kind: metered
                        limit: 10
                        unlimited: false
                        included_quantity: null
                      - feature_id: …
                        feature_key: tokens
                        kind: credit
                        limit: null
                        unlimited: false
                        included_quantity: 50000
                    created_at: '2026-07-01T12:00:00Z'
                features:
                  - id: …
                    key: seats
                    name: Seats
                    description: ''
                    kind: metered
                    unit_name: seats
                    reset_period: billing_period
                    archived: false
                    created_at: '2026-07-01T12:00:00Z'
        '400':
          description: '`invalid_request` — `environment` must be `live` or `test`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    OrganizationHeader:
      name: X-Organization-Id
      in: header
      required: false
      schema:
        type: string
      description: >-
        The organization the caller is acting on — the `org_…` code that appears
        in the panel URL. It *identifies*; the membership JOIN is what
        *authorizes*, so a forged code reads nothing. Absent, the session's
        default organization answers.
    EnvironmentQuery:
      name: environment
      in: query
      required: false
      schema:
        type: string
        enum:
          - live
          - test
        default: live
      description: >-
        Which environment to act in. A view parameter, valid only on the staff
        surface — a machine credential never chooses its environment, it is
        resolved from the key.
  schemas:
    CataloguePlan:
      type: object
      description: >-
        A plan you sell. Its prices and the features it carries come with it,
        because a pricing table needs all of them at once.
      properties:
        id:
          type: string
          format: uuid
        key:
          type: string
          description: >-
            Your own stable handle for the plan — lowercase letters, digits,
            `_`, `-` and `.`. Unique within an environment, and what promoting a
            catalogue to live matches on.
          example: pro
        name:
          type: string
        description:
          type: string
        display_order:
          type: integer
          description: Where the plan sits on a pricing table.
        archived:
          type: boolean
          description: >-
            No longer sold. Archived rather than deleted, because subscriptions
            point at it.
        prices:
          type: array
          items:
            $ref: '#/components/schemas/CataloguePrice'
        features:
          type: array
          items:
            $ref: '#/components/schemas/CataloguePlanFeature'
        created_at:
          type: string
          format: date-time
    CatalogueFeature:
      type: object
      description: >-
        One thing your product does, that your plans may or may not include.
        Yours, not UserKit's — the key is a string **your** code gates on.
      properties:
        id:
          type: string
          format: uuid
        key:
          type: string
          description: >-
            Lowercase letters, digits, `_`, `-` and `.`. What your own code
            compares against.
          example: api_calls
        name:
          type: string
        description:
          type: string
        kind:
          type: string
          enum:
            - boolean
            - metered
            - credit
          description: >-
            `boolean` is on or off. `metered` is counted against a ceiling that
            resets. `credit` is spent from a balance — a counter answers “how
            much this period”, a balance answers “how much is left”.
        unit_name:
          type: string
          description: >-
            What one unit is called (`seats`, `runs`, `tokens`). Empty on a
            `boolean` feature and required on the others: a limit with no unit
            is a number nobody can read.
        reset_period:
          type:
            - string
            - 'null'
          enum:
            - day
            - week
            - month
            - year
            - billing_period
            - null
          description: >-
            How a `metered` feature's counter is bucketed; `null` for the other
            kinds. It belongs to the feature rather than to the plan, so a
            counter keeps its shape when a customer changes plan mid-period.
        archived:
          type: boolean
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      description: Every error in this API answers this envelope.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable. Branch on this.
            message:
              type: string
              description: For a person. May change.
          required:
            - code
            - message
      required:
        - error
      example:
        error:
          code: forbidden
          message: your role does not allow this action
    CataloguePrice:
      type: object
      description: >-
        One plan's amount in one currency. A plan has many prices, one per
        currency: selling in BRL and USD is a price **per currency**, a number
        you chose, never a conversion at display time.


        A price is **immutable**. Repricing means creating a new price and
        archiving the old one, because a subscription refers to the price it was
        sold at and editing the amount would silently change what somebody
        agreed to pay.
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - recurring
            - one_time
          description: >-
            `one_time` is a lifetime deal or a one-off purchase and carries no
            interval; `recurring` always carries one.
        currency:
          type: string
          description: >-
            ISO 4217, uppercase. Never absent — an amount with no currency is
            not a price.
          example: BRL
        amount_minor:
          type: integer
          format: int64
          description: >-
            The amount as an integer in the currency's **minor unit**. `14900`
            is R$149.00; in a zero-decimal currency the same integer is 14,900
            whole units.
        currency_exponent:
          type:
            - integer
            - 'null'
          description: >-
            How many decimal places the currency has, so `amount_minor` can be
            rendered without hard-coding a divisor: 2 for BRL and USD, 0 for JPY
            and CLP, 3 for KWD. `null` only if the stored code is one this API
            no longer prices in.
        interval_unit:
          type:
            - string
            - 'null'
          enum:
            - day
            - week
            - month
            - year
            - null
          description: '`null` on a `one_time` price.'
        interval_count:
          type:
            - integer
            - 'null'
          description: >-
            How many intervals between charges. `null` on a `one_time` price —
            never `0`.
        tax_behavior:
          type: string
          enum:
            - inclusive
            - exclusive
          description: >-
            Whether `amount_minor` already contains tax. There is no third
            “undecided” value: the calculation belongs to the payment provider,
            but this input is yours and is answered when the price is created.
        archived:
          type: boolean
          description: No longer sold. Existing subscriptions keep it.
        providers:
          type: array
          description: >-
            How this price is known at each payment provider. Empty means
            nothing can charge it yet. A price may be mapped onto more than one
            provider, and onto more than one account of the same provider.
          items:
            $ref: '#/components/schemas/ProviderPriceMapping'
        created_at:
          type: string
          format: date-time
    CataloguePlanFeature:
      type: object
      description: >-
        One cell of the plan/feature matrix: how much of a feature a plan
        carries. A feature a plan does not carry is simply absent from the list.
      properties:
        feature_id:
          type: string
          format: uuid
        feature_key:
          type: string
        kind:
          type: string
          enum:
            - boolean
            - metered
            - credit
          description: >-
            The feature's kind, which decides which of the two numbers below
            applies.
        limit:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            The ceiling, on a `metered` feature; `null` on the other kinds. `-1`
            is unlimited and `0` is a real limit — none at all.
        unlimited:
          type: boolean
          description: >-
            Whether `limit` is the unlimited sentinel, so a client never has to
            know the number.
        included_quantity:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            How many credits the plan grants per period, on a `credit` feature;
            `null` otherwise.
    ProviderPriceMapping:
      type: object
      properties:
        provider:
          type: string
          enum:
            - stripe
        provider_account_id:
          type: string
          description: >-
            The provider account the id belongs to. A provider's price id is
            unique only inside one account, which is why it is part of the
            mapping's identity.
        provider_price_id:
          type: string
        provider_product_id:
          type: string
          description: Empty where the provider has no product object above its prices.
  responses:
    Unauthorized:
      description: >-
        `unauthorized` — missing, malformed or expired credential. A well-formed
        credential from the wrong family says so: "this endpoint expects a staff
        session token, not an organization API key".
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: '`forbidden` — your role does not allow this action.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionToken:
      type: http
      scheme: bearer
      description: >-
        A staff session token, `uk_st_…`. Minted by sign-up, sign-in or the
        two-factor exchange.

````