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

# Replace a draft subscription version

> Replaces the contents of a draft version in place. Snapshot-based: send the full intended item set. Items you omit are removed. Only draft versions can be replaced, published versions are immutable. See the [Updating a Subscription](/docs/api-reference/examples/updating-a-subscription) examples. On a `sent` subscription, the edit is saved and the reissue of the offer waits for approval: the call answers `202 Accepted` with `approval.subscription_id` and `approval.operation` `send_quote`, and the customer cannot sign the offer before the approval. See [When a call needs approval](/docs/approvals/amendment-renewal-approvals#when-a-call-needs-approval).



## OpenAPI

````yaml /api-reference/specs/2026-04-01.json put /subscriptions/{id}/versions/{vid}
openapi: 3.1.0
info:
  description: >-
    Alguna is the AI-native quote-to-revenue platform for B2B companies: CPQ,
    subscription and usage-based billing, invoicing, payment collection, and
    revenue recognition in one system of record. The API operates on one
    versioned agreement per customer: quotes, subscriptions and their versions,
    usage, invoices, payments, and revenue schedules read from it. Official
    SDKs: TypeScript (@alguna/sdk), Python (alguna), Go
    (github.com/alguna-io/alguna-go), Rust (alguna), and the alguna CLI
    (@alguna/cli).
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
    x-fern-server-name: Production
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Checkout Sessions
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Feedback
  - name: Insights
  - name: Integrations
  - name: Invoices
  - name: Merchants
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Quotes
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Tags
  - name: Tax
  - name: Users
  - name: Wallet Grants
  - name: Wallets
paths:
  /subscriptions/{id}/versions/{vid}:
    put:
      tags:
        - Subscription Versions
      summary: Replace a draft subscription version
      description: >-
        Replaces the contents of a draft version in place. Snapshot-based: send
        the full intended item set. Items you omit are removed. Only draft
        versions can be replaced, published versions are immutable. See the
        [Updating a
        Subscription](/docs/api-reference/examples/updating-a-subscription)
        examples. On a `sent` subscription, the edit is saved and the reissue of
        the offer waits for approval: the call answers `202 Accepted` with
        `approval.subscription_id` and `approval.operation` `send_quote`, and
        the customer cannot sign the offer before the approval. See [When a call
        needs
        approval](/docs/approvals/amendment-renewal-approvals#when-a-call-needs-approval).
      operationId: replace-subscription-version
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: header
          name: Idempotency-Key
          schema:
            description: >-
              A unique string that makes a retried write safe. If you send the
              same request with the same key within 24 hours, the API returns
              the stored response and does not run the request again. A 5xx or
              429 response is not stored, so a retry with that key runs the
              request again.
            example: ik_a1b2c3d4e5f6
            maxLength: 255
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the subscription
            type: string
        - in: path
          name: vid
          required: true
          schema:
            description: Unique identifier for the version
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplaceVersionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionPhaseDetailResponse'
          description: Success
          headers:
            Idempotency-Key:
              description: Echo of the idempotency key provided in the request
              schema:
                type: string
            Idempotent-Replayed:
              description: >-
                Whether this response was replayed from a previous request
                (true) or freshly executed (false)
              schema:
                type: boolean
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalResponse'
          description: >-
            Accepted: approval was requested, and the action that needs it waits
            for the approval
          headers:
            Idempotency-Key:
              description: Echo of the idempotency key provided in the request
              schema:
                type: string
            Idempotent-Replayed:
              description: >-
                Whether this response was replayed from a previous request
                (true) or freshly executed (false)
              schema:
                type: boolean
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - $ref: '#/components/schemas/GatewayErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden — the organization does not have access to this feature
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Conflict — a request with this idempotency key is currently being
            processed
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying with the same idempotency key.
                Sent only when a request with this key is still being processed;
                a 409 without it is a conflict that a retry will not resolve.
              schema:
                type: integer
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '502':
          description: >-
            Bad Gateway — sent by the infrastructure in front of the API; the
            body is not JSON. Safe to retry.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Service Unavailable — a dependency is temporarily unavailable. Retry
            with backoff.
        '504':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Gateway Timeout — the request did not finish in time. Retry with
            backoff; use an idempotency key for writes.
components:
  schemas:
    ReplaceVersionRequest:
      properties:
        description:
          description: Human-readable audit note
          example: Q1 2027 enterprise configuration
          nullable: true
          type: string
        effective_at:
          description: Updated effective date (ISO 8601 date, YYYY-MM-DD)
          example: '2027-01-01'
          format: date
          nullable: true
          type: string
        entitlements:
          description: Full entitlement specification (replaces existing entitlements)
          items:
            $ref: '#/components/schemas/EntitlementInput'
          type: array
        items:
          description: Complete replacement set of items for this draft version.
          items:
            $ref: '#/components/schemas/VersionItemInput'
          type: array
      required:
        - items
      type: object
    SubscriptionPhaseDetailResponse:
      properties:
        created_at:
          description: When the version was created
          example: '2025-12-15T10:30:00Z'
          format: date-time
          type: string
        description:
          description: Change description
          example: Q1 2027 enterprise configuration
          nullable: true
          type: string
        end_date:
          description: Version end date
          example: '2027-01-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        entitlements:
          description: Version entitlements
          items:
            $ref: '#/components/schemas/EntitlementResponse'
          type: array
        id:
          description: Version ID
          example: subv_abc123
          type: string
        items:
          description: Version items
          items:
            $ref: '#/components/schemas/SubscriptionPhaseItemResponse'
          type: array
        plan_id:
          description: Plan ID
          example: pln_abc123
          nullable: true
          type: string
        start_date:
          description: Version start date
          example: '2026-01-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        status:
          description: Version status
          enum:
            - draft
            - published
          example: published
          type: string
        subscription_id:
          description: Subscription ID
          example: sub_abc123
          type: string
        updated_at:
          description: When the version was last updated
          example: '2026-01-01T00:00:00Z'
          format: date-time
          type: string
      required:
        - created_at
        - entitlements
        - id
        - items
        - status
        - subscription_id
        - updated_at
      type: object
    ApprovalResponse:
      properties:
        approval:
          allOf:
            - $ref: '#/components/schemas/ApprovalRefusal'
          description: The approval that the operation waits for, or that refused it
        detail:
          description: What stopped the operation
          example: >-
            approval is pending (approval flow
            3f2b8c1e-5d4a-4f7b-9c2e-1a6d8e0f4b21)
          type: string
        status:
          description: >-
            HTTP status of the answer: 202 when the call's own approval request
            waits or is held, otherwise the error status
          example: 202
          format: int64
          type: integer
      required:
        - approval
        - detail
        - status
      type: object
    ErrorResponse:
      description: The body of every error the API returns.
      properties:
        code:
          description: >-
            Machine-readable error code, such as `not_found` or
            `invoice_already_issued`. New codes may be added at any time, so
            handle a code you do not know by its HTTP status.
          type: string
        detail:
          description: Explanation of what went wrong
          type: string
        request_id:
          description: >-
            Identifies the request, as the `X-Request-Id` response header does.
            Quote it when contacting support.
          type: string
        status:
          description: HTTP status code of the response
          format: int64
          type: integer
        title:
          description: >-
            HTTP status text. Sent only by version, idempotency and
            credit-refusal errors.
          type: string
        type:
          description: Always `about:blank`. Sent only by version and idempotency errors.
          type: string
      required:
        - status
        - detail
      type: object
    GatewayErrorResponse:
      description: >-
        Returned by the API gateway when a request carries no valid API key,
        before the API handles it.
      properties:
        code:
          description: Machine-readable error code, e.g. `unauthenticated`
          type: string
        details:
          nullable: true
          type: object
        message:
          description: Explanation of what went wrong
          type: string
      required:
        - code
        - message
      type: object
    EntitlementInput:
      properties:
        allocation:
          allOf:
            - $ref: '#/components/schemas/EntitlementAllocationInput'
          description: Credit allocation config (required for credit_allocation type)
          nullable: true
        entitlement_key:
          description: Entitlement key
          example: api_access
          type: string
        mode:
          allOf:
            - $ref: '#/components/schemas/EntitlementMode'
          description: Entitlement mode
          example: static
        timing:
          allOf:
            - $ref: '#/components/schemas/EntitlementTimingInput'
          description: Timing config (for grant-based entitlements)
          nullable: true
        type:
          allOf:
            - $ref: '#/components/schemas/EntitlementType'
          description: Entitlement type
          example: boolean
        value:
          description: Entitlement value (for boolean/number/string types)
          example: 'true'
          type: string
      required:
        - entitlement_key
        - mode
        - type
      type: object
    VersionItemInput:
      properties:
        bundle_id:
          description: Bundle ID (for bundle items)
          example: bun_abc123
          nullable: true
          type: string
        items:
          description: Bundle child items with full price definitions
          items:
            $ref: '#/components/schemas/VersionBundleChildInput'
          type: array
        price:
          allOf:
            - $ref: '#/components/schemas/PriceInput'
          description: Full price definition (required for standalone items)
          nullable: true
        product_id:
          description: Product ID (for standalone items)
          example: prod_abc123
          nullable: true
          type: string
      type: object
    EntitlementResponse:
      properties:
        allocation:
          allOf:
            - $ref: '#/components/schemas/EntitlementAllocationResponse'
          description: Credit allocation config
          nullable: true
        key:
          description: Entitlement key
          example: api_access
          nullable: true
          type: string
        mode:
          description: Entitlement mode
          enum:
            - static
            - grant_based
          example: static
          type: string
        subscription_id:
          description: Owning subscription ID; null for default-profile entitlements
          example: sub_abc123
          nullable: true
          type: string
        timing:
          allOf:
            - $ref: '#/components/schemas/EntitlementTimingResponse'
          description: Timing config
          nullable: true
        type:
          description: Entitlement type
          enum:
            - boolean
            - number
            - string
            - credit_allocation
          example: boolean
          type: string
        value:
          description: Entitlement value
          example: 'true'
          type: string
        version_id:
          description: >-
            Owning subscription version ID; null for default-profile
            entitlements
          example: subv_abc123
          nullable: true
          type: string
      required:
        - mode
        - type
      type: object
    SubscriptionPhaseItemResponse:
      properties:
        bundle_id:
          description: Bundle ID (for bundle items)
          example: bun_abc123
          nullable: true
          type: string
        items:
          description: Bundle child items
          items:
            $ref: '#/components/schemas/BundleChildItemResponse'
          type: array
        price:
          allOf:
            - $ref: '#/components/schemas/SubscriptionPriceResponse'
          description: Price details (for standalone items)
          nullable: true
        product_id:
          description: Product ID (for standalone items)
          example: prod_abc123
          nullable: true
          type: string
      type: object
    ApprovalRefusal:
      properties:
        change_id:
          description: >-
            The subscription change that waits for the approval, or that blocks
            the edit
          example: subchg_abc123
          type: string
        flow_id:
          description: The approval request
          example: 3f2b8c1e-5d4a-4f7b-9c2e-1a6d8e0f4b21
          nullable: true
          type: string
        generation:
          description: >-
            Version of the approval request's content; it increases when the
            request is evaluated again for changed terms
          example: 1
          format: int64
          nullable: true
          type: integer
        justification_required:
          description: >-
            Whether the ruleset asks a person who requests approval for a
            justification. A request that an API call creates has none and needs
            none.
          example: false
          type: boolean
        matching_rules:
          description: The approval rules that matched
          example:
            - arul_abc123
          items:
            type: string
          type: array
        operation:
          description: >-
            The action the approval covers, such as send_quote, activate,
            apply_change or manual_hold
          example: activate
          type: string
        quote_id:
          description: The quote that waits for the approval
          example: qt_abc123
          type: string
        reason:
          description: >-
            Why the operation stopped. approval_pending: the request waits for a
            decision. approval_held: the request was approved and waits for a
            person. approval_rejected: an approver rejected the request.
            approval_conflict: the request no longer matches the current terms.
            approval_coverage_missing: the issued terms are not covered by an
            approval. open_change: an open change of the subscription blocks the
            edit. open_change_terms_edit: an open change holds the terms that
            the edit changes.
          example: approval_pending
          type: string
        status:
          description: Where the approval request stands
          example: pending
          type: string
        subscription_id:
          description: >-
            The subscription that waits for the approval when no change is
            retained
          example: sub_abc123
          type: string
      required:
        - justification_required
        - matching_rules
        - reason
      type: object
    EntitlementAllocationInput:
      properties:
        amount:
          description: Allocation amount
          example: '100000'
          type: string
        credit_type:
          allOf:
            - $ref: '#/components/schemas/SubscriptionCreditType'
          description: Credit type
          example: monetary
        rollover_enabled:
          description: Whether rollover is enabled
          example: true
          type: boolean
        rollover_max_periods:
          description: Maximum rollover periods
          example: 3
          format: int64
          nullable: true
          type: integer
      required:
        - amount
        - credit_type
        - rollover_enabled
      type: object
    EntitlementMode:
      enum:
        - static
        - grant_based
      type: string
    EntitlementTimingInput:
      properties:
        interval:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Timing interval
          example: monthly
          nullable: true
        recurrence:
          allOf:
            - $ref: '#/components/schemas/RecurrenceType'
          description: Recurrence type
          example: recurring
      required:
        - recurrence
      type: object
    EntitlementType:
      enum:
        - boolean
        - number
        - string
        - credit_allocation
      type: string
    VersionBundleChildInput:
      properties:
        price:
          allOf:
            - $ref: '#/components/schemas/PriceInput'
          description: Full price definition
        product_id:
          description: Product ID
          example: prod_abc123
          type: string
      required:
        - price
        - product_id
      type: object
    PriceInput:
      properties:
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: Billing direction
          example: arrears
        billing_frequency:
          allOf:
            - $ref: '#/components/schemas/BillingFrequency'
          description: Billing frequency (required for fixed fee type)
          example: recurring
          nullable: true
        billing_interval:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Legacy named billing interval
          example: monthly
        billing_interval_count:
          description: Positive count of BillingIntervalUnits per period
          example: 3
          format: int64
          nullable: true
          type: integer
        billing_interval_unit:
          allOf:
            - $ref: '#/components/schemas/BillingIntervalUnit'
          description: Unit of the billing cadence (currently only 'month' accepted)
          example: month
          nullable: true
        charge_on_contract_start:
          description: Whether to charge on contract start
          example: false
          nullable: true
          type: boolean
        discount:
          allOf:
            - $ref: '#/components/schemas/DiscountInput'
          description: Price-level discount
          nullable: true
        display_order:
          description: Display order
          example: 1
          format: int64
          nullable: true
          type: integer
        expression_pricing_model:
          allOf:
            - $ref: '#/components/schemas/ExpressionPricingModelInput'
          description: Expression pricing model (required when type=expression)
          nullable: true
        fee_type:
          allOf:
            - $ref: '#/components/schemas/PricingClass'
          description: Fee type
          example: fixed
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelInput'
          description: Fixed pricing model (required when type=fixed)
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedPercentagePricingModelInput'
          description: >-
            Graduated percentage pricing model (required when
            type=graduated_percentage)
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedTieredPricingModelInput'
          description: Graduated tiered pricing model (required when type=graduated_tiered)
          nullable: true
        matrix_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixPricingModelInput'
          description: Matrix pricing model (required when type=matrix)
          nullable: true
        maximum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdInput'
          description: Maximum spend per period
          nullable: true
        metric_ids:
          description: Metric IDs (required for metered fee type)
          items:
            type: string
          type: array
        milestone_key:
          description: >-
            Key of the subscription milestone a one-off price bills on
            (lower-case letters, digits and underscores). The price stays off
            the billing schedule until the milestone is reached. Not combinable
            with charge_on_contract_start
          example: go_live
          nullable: true
          type: string
        minimum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdInput'
          description: Minimum spend per period
          nullable: true
        prepaid_fixed_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidFixedTieredPricingModelInput'
          description: >-
            Prepaid fixed tiered pricing model (required when
            type=prepaid_fixed_tiered)
          nullable: true
        prepaid_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidTieredPricingModelInput'
          description: Prepaid tiered pricing model (required when type=prepaid_tiered)
          nullable: true
        recurring_instalment_interval_count:
          description: >-
            Positive count of RecurringInstalmentIntervalUnits per instalment;
            must divide cleanly into the billing interval
          example: 1
          format: int64
          nullable: true
          type: integer
        recurring_instalment_interval_unit:
          allOf:
            - $ref: '#/components/schemas/BillingIntervalUnit'
          description: >-
            Optional sub-cadence unit splitting the advance charge into
            instalments within each billing cycle (currently only 'month'
            accepted)
          example: month
          nullable: true
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPercentagePricingModelInput'
          description: >-
            Tiered percentage pricing model (required when
            type=tiered_percentage)
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPricingModelInput'
          description: Tiered pricing model (required when type=tiered)
          nullable: true
        trial_period_days:
          description: Trial period in days (minimum 1)
          example: 30
          format: int64
          nullable: true
          type: integer
        type:
          allOf:
            - $ref: '#/components/schemas/PricingType'
          description: Pricing type
          example: fixed
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelInput'
          description: Unit pricing model (required when type=unit)
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelInput'
          description: >-
            Volume percentage pricing model (required when
            type=volume_percentage)
          nullable: true
      required:
        - billing_direction
        - fee_type
        - type
      type: object
    EntitlementAllocationResponse:
      properties:
        amount:
          description: Allocation amount
          example: '100000'
          type: string
        credit_type:
          description: Credit type
          enum:
            - monetary
            - units
          example: monetary
          type: string
        rollover_enabled:
          description: Whether rollover is enabled
          example: true
          type: boolean
        rollover_max_periods:
          description: Maximum rollover periods
          example: 3
          format: int64
          nullable: true
          type: integer
      required:
        - amount
        - credit_type
        - rollover_enabled
      type: object
    EntitlementTimingResponse:
      properties:
        interval:
          description: Timing interval
          example: monthly
          nullable: true
          type: string
        recurrence:
          description: Recurrence type
          enum:
            - recurring
            - one_off
          example: recurring
          type: string
      required:
        - recurrence
      type: object
    BundleChildItemResponse:
      properties:
        price:
          allOf:
            - $ref: '#/components/schemas/SubscriptionPriceResponse'
          description: Price details
        product_id:
          description: Product ID
          example: prod_abc123
          type: string
      required:
        - price
        - product_id
      type: object
    SubscriptionPriceResponse:
      properties:
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: Billing direction
          example: arrears
        billing_frequency:
          allOf:
            - $ref: '#/components/schemas/BillingFrequency'
          description: Billing frequency
          example: recurring
          nullable: true
        billing_interval:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Billing interval
          example: monthly
        billing_interval_count:
          description: Positive count of BillingIntervalUnits per period
          example: 3
          format: int64
          nullable: true
          type: integer
        billing_interval_unit:
          allOf:
            - $ref: '#/components/schemas/BillingIntervalUnit'
          description: Unit of the billing cadence
          example: month
          nullable: true
        charge_on_contract_start:
          description: Whether to charge on contract start
          example: false
          type: boolean
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        discount:
          allOf:
            - $ref: '#/components/schemas/DiscountResponse'
          description: Price-level discount
          nullable: true
        display_order:
          description: Display order
          example: 1
          format: int64
          nullable: true
          type: integer
        expression_pricing_model:
          allOf:
            - $ref: '#/components/schemas/ExpressionPricingModelResponse'
          description: Expression pricing model (when type=expression)
          nullable: true
        fee_type:
          allOf:
            - $ref: '#/components/schemas/PricingClass'
          description: Fee type
          example: fixed
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelResponse'
          description: Fixed pricing model (when type=fixed)
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedPercentagePricingModelResponse'
          description: Graduated percentage pricing model (when type=graduated_percentage)
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedTieredPricingModelResponse'
          description: Graduated tiered pricing model (when type=graduated_tiered)
          nullable: true
        matrix_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixPricingModelResponse'
          description: Matrix pricing model (when type=matrix)
          nullable: true
        maximum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdResponse'
          description: Maximum spend per period
          nullable: true
        metric_ids:
          description: Metric IDs for metered pricing
          items:
            type: string
          type: array
        milestone_key:
          description: >-
            Key of the subscription milestone a one-off price bills on; the
            price stays off the billing schedule until the milestone is reached
          example: go_live
          nullable: true
          type: string
        minimum_spend:
          allOf:
            - $ref: '#/components/schemas/SpendingThresholdResponse'
          description: Minimum spend per period
          nullable: true
        prepaid_fixed_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidFixedTieredPricingModelResponse'
          description: Prepaid fixed tiered pricing model (when type=prepaid_fixed_tiered)
          nullable: true
        prepaid_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/PrepaidTieredPricingModelResponse'
          description: Prepaid tiered pricing model (when type=prepaid_tiered)
          nullable: true
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPercentagePricingModelResponse'
          description: Tiered percentage pricing model (when type=tiered_percentage)
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPricingModelResponse'
          description: Tiered pricing model (when type=tiered)
          nullable: true
        trial_period_days:
          description: Trial period in days
          example: 30
          format: int64
          nullable: true
          type: integer
        type:
          allOf:
            - $ref: '#/components/schemas/PricingType'
          description: Pricing type
          example: fixed
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelResponse'
          description: Unit pricing model (when type=unit)
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelResponse'
          description: Volume percentage pricing model (when type=volume_percentage)
          nullable: true
      required:
        - billing_direction
        - charge_on_contract_start
        - currency
        - fee_type
        - type
      type: object
    SubscriptionCreditType:
      enum:
        - monetary
        - units
      type: string
    BillingInterval:
      enum:
        - monthly
        - quarterly
        - semi_annual
        - yearly
      type: string
    RecurrenceType:
      enum:
        - recurring
        - one_off
      type: string
    BillingDirection:
      enum:
        - advance
        - arrears
      type: string
    BillingFrequency:
      enum:
        - recurring
        - one-off
      type: string
    BillingIntervalUnit:
      enum:
        - day
        - week
        - month
        - year
      type: string
    DiscountInput:
      properties:
        amount:
          description: Discount amount
          example: '10'
          type: string
        duration_type:
          description: Duration type
          enum:
            - fixed
            - monthly_rolling
          example: fixed
          type: string
        duration_unit:
          description: Duration unit
          example: months
          nullable: true
          type: string
        duration_value:
          description: Duration value
          example: 6
          format: int64
          nullable: true
          type: integer
        type:
          description: Discount type (percentage only for subscription-level)
          example: percentage
          type: string
      required:
        - amount
        - duration_type
        - type
      type: object
    ExpressionPricingModelInput:
      properties:
        charges:
          description: Expression-based charges
          items:
            $ref: '#/components/schemas/ExpressionChargeInput'
          type: array
        metric_bindings:
          description: Alias-to-metric bindings referenced in expressions
          items:
            $ref: '#/components/schemas/MetricBinding'
          type: array
      required:
        - charges
      type: object
    PricingClass:
      enum:
        - fixed
        - metered
      type: string
    FixedPricingModelInput:
      properties:
        price_per_unit:
          description: Price per unit
          example: '500.00'
          type: string
        units:
          description: Number of units
          example: 1
          format: int64
          type: integer
      required:
        - price_per_unit
        - units
      type: object
    GraduatedPercentagePricingModelInput:
      properties:
        tiers:
          description: Percentage-based pricing tiers
          items:
            $ref: '#/components/schemas/PercentageTierInput'
          type: array
      required:
        - tiers
      type: object
    GraduatedTieredPricingModelInput:
      properties:
        tiers:
          description: Pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    MatrixPricingModelInput:
      properties:
        dimensions:
          description: Event property dimensions used by the matrix
          items:
            $ref: '#/components/schemas/MatrixDimensionDefinitionInput'
          type: array
        line_item_template:
          description: Default invoice line description template for matrix cells
          type: string
        root:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Root of the matrix routing tree
      required:
        - dimensions
        - root
      type: object
    SpendingThresholdInput:
      properties:
        amount:
          description: Amount
          example: '500.00'
          type: string
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: >-
            Bill a minimum spend in advance of each period, drawn down by spend,
            instead of trueing it up in arrears
          example: arrears
        period:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Billing period
          example: monthly
      required:
        - amount
        - period
      type: object
    PrepaidFixedTieredPricingModelInput:
      properties:
        overages_charge_interval:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Overage charge interval
          example: monthly
        prepaid_units:
          description: Number of prepaid units
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
      required:
        - overages_charge_interval
        - prepaid_units
        - tiers
      type: object
    PrepaidTieredPricingModelInput:
      properties:
        prepaid_units:
          description: Number of prepaid units
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
      required:
        - prepaid_units
        - tiers
      type: object
    TieredPercentagePricingModelInput:
      properties:
        tiers:
          description: Percentage-based pricing tiers
          items:
            $ref: '#/components/schemas/PercentageTierInput'
          type: array
      required:
        - tiers
      type: object
    TieredPricingModelInput:
      properties:
        tiers:
          description: Pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierInput'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    PricingType:
      enum:
        - unit
        - fixed
        - tiered
        - graduated_tiered
        - tiered_percentage
        - graduated_percentage
        - volume_percentage
        - prepaid_tiered
        - prepaid_fixed_tiered
        - expression
        - matrix
      type: string
    UnitPricingModelInput:
      properties:
        price_per_unit:
          description: Price per unit
          example: '0.05'
          type: string
      required:
        - price_per_unit
      type: object
    VolumePercentagePricingModelInput:
      properties:
        fixed_fee:
          description: Optional fixed fee
          example: '5.00'
          nullable: true
          type: string
        percentage:
          description: Percentage rate
          example: '2.0'
          type: string
        price_per_unit:
          description: Base price per unit
          example: '0.05'
          type: string
      required:
        - percentage
        - price_per_unit
      type: object
    DiscountResponse:
      properties:
        amount:
          description: Discount amount
          example: '10'
          type: string
        duration_type:
          allOf:
            - $ref: '#/components/schemas/DurationType'
          description: Duration type
          example: fixed
        duration_unit:
          description: Duration unit
          example: months
          nullable: true
          type: string
        duration_value:
          description: Duration value
          example: 6
          format: int64
          nullable: true
          type: integer
        type:
          allOf:
            - $ref: '#/components/schemas/DiscountType'
          description: Discount type
          example: percentage
      required:
        - amount
        - duration_type
        - type
      type: object
    ExpressionPricingModelResponse:
      properties:
        charges:
          description: Expression-based charges
          items:
            $ref: '#/components/schemas/ExpressionChargeResponse'
          type: array
        metric_bindings:
          description: Alias-to-metric bindings referenced in expressions
          items:
            $ref: '#/components/schemas/MetricBinding'
          type: array
      required:
        - charges
      type: object
    FixedPricingModelResponse:
      properties:
        price_per_unit:
          description: Price per unit
          example: '500.00'
          type: string
        total:
          description: Total amount (price_per_unit × units)
          example: '500.00'
          type: string
        units:
          description: Number of units
          example: 1
          format: int64
          type: integer
      required:
        - price_per_unit
        - total
        - units
      type: object
    GraduatedPercentagePricingModelResponse:
      properties:
        tiers:
          description: Percentage-based pricing tiers (each tier priced independently)
          items:
            $ref: '#/components/schemas/PercentageTierResponse'
          type: array
      required:
        - tiers
      type: object
    GraduatedTieredPricingModelResponse:
      properties:
        tiers:
          description: Pricing tiers (each tier priced independently)
          items:
            $ref: '#/components/schemas/PricingTierResponse'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    MatrixPricingModelResponse:
      properties:
        dimensions:
          description: Event property dimensions used by the matrix
          items:
            $ref: '#/components/schemas/MatrixDimensionDefinitionResponse'
          type: array
        line_item_template:
          description: Default invoice line description template for matrix cells
          type: string
        root:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeResponse'
          description: Root of the matrix routing tree
      required:
        - dimensions
        - root
      type: object
    SpendingThresholdResponse:
      properties:
        amount:
          description: Spending threshold amount
          example: '500.00'
          type: string
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: >-
            Whether the minimum spend is billed in advance of each period and
            drawn down by spend, or trued up in arrears
          example: arrears
        period:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Billing period for the threshold
          example: monthly
      required:
        - amount
        - period
      type: object
    PrepaidFixedTieredPricingModelResponse:
      properties:
        overages_charge_interval:
          allOf:
            - $ref: '#/components/schemas/BillingInterval'
          description: Billing interval for overages
          example: monthly
        prepaid_units:
          description: Number of prepaid units included
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierResponse'
          type: array
      required:
        - overages_charge_interval
        - prepaid_units
        - tiers
      type: object
    PrepaidTieredPricingModelResponse:
      properties:
        prepaid_units:
          description: Number of prepaid units included
          example: 50000
          format: int64
          type: integer
        tiers:
          description: Overage pricing tiers
          items:
            $ref: '#/components/schemas/PricingTierResponse'
          type: array
      required:
        - prepaid_units
        - tiers
      type: object
    TieredPercentagePricingModelResponse:
      properties:
        tiers:
          description: Percentage-based pricing tiers (first matching tier applies)
          items:
            $ref: '#/components/schemas/PercentageTierResponse'
          type: array
      required:
        - tiers
      type: object
    TieredPricingModelResponse:
      properties:
        tiers:
          description: Pricing tiers (first matching tier applies)
          items:
            $ref: '#/components/schemas/PricingTierResponse'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    UnitPricingModelResponse:
      properties:
        price_per_unit:
          description: Price per unit
          example: '0.05'
          type: string
      required:
        - price_per_unit
      type: object
    VolumePercentagePricingModelResponse:
      properties:
        fixed_fee:
          description: Optional fixed fee
          example: '5.00'
          nullable: true
          type: string
        percentage:
          description: Percentage rate
          example: '2.0'
          type: string
        price_per_unit:
          description: Base price per unit
          example: '0.05'
          type: string
      required:
        - percentage
        - price_per_unit
      type: object
    ExpressionChargeInput:
      properties:
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: Billing direction
          example: arrears
        description:
          description: Charge description
          example: API usage charge
          type: string
        quantity_expression:
          description: Expression for quantity
          example: usage.api_calls
          type: string
        unit_price_expression:
          description: Expression for unit price
          example: '0.01'
          type: string
      required:
        - billing_direction
        - description
        - quantity_expression
        - unit_price_expression
      type: object
    MetricBinding:
      properties:
        alias:
          description: Alias referenced in charge expressions
          example: api_calls
          type: string
        metric_id:
          description: Metric ID bound to the alias
          type: string
      required:
        - alias
        - metric_id
      type: object
    PercentageTierInput:
      properties:
        fixed_fee:
          description: Fixed fee
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        percentage:
          description: Percentage rate
          example: '2.5'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    PricingTierInput:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        price_per_unit:
          description: Price per unit
          example: '0.02'
          nullable: true
          type: string
        unit_price:
          description: >-
            Committed per-unit rate for prepaid-with-overages commitment tiers;
            when set, the tier's fixed fee is derived as unit_price × committed
            units
          example: '5.00'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    MatrixDimensionDefinitionInput:
      properties:
        key:
          description: Event property key used by this dimension
          type: string
        label:
          description: Display label for this dimension
          type: string
        values:
          description: Authored values offered for this dimension
          items:
            type: string
          type: array
      required:
        - key
        - label
      type: object
    MatrixNodeInput:
      properties:
        fallback:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route used when no split claims an event
          nullable: true
        leaf:
          allOf:
            - $ref: '#/components/schemas/MatrixPriceCellInput'
          description: Price applied when this node is a cell
          nullable: true
        splits:
          description: Ordered routing choices at this node
          items:
            $ref: '#/components/schemas/MatrixDimensionRuleInput'
          type: array
      type: object
    DurationType:
      enum:
        - fixed
        - monthly_rolling
      type: string
    DiscountType:
      enum:
        - percentage
        - fixed
      type: string
    ExpressionChargeResponse:
      properties:
        billing_direction:
          allOf:
            - $ref: '#/components/schemas/BillingDirection'
          description: Billing direction
          example: arrears
        description:
          description: Charge description
          example: API usage charge
          type: string
        quantity_expression:
          description: Expression for quantity
          example: usage.api_calls
          type: string
        unit_price_expression:
          description: Expression for unit price
          example: '0.01'
          type: string
      required:
        - billing_direction
        - description
        - quantity_expression
        - unit_price_expression
      type: object
    PercentageTierResponse:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound of the tier (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        percentage:
          description: Percentage rate for this tier
          example: '2.5'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    PricingTierResponse:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound of the tier (null = unlimited)
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        price_per_unit:
          description: Price per unit in this tier
          example: '0.02'
          nullable: true
          type: string
        unit_price:
          description: >-
            Committed per-unit rate for prepaid-with-overages commitment tiers;
            the tier's fixed fee is derived as unit_price × committed units
          example: '5.00'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    MatrixDimensionDefinitionResponse:
      properties:
        key:
          description: Event property key used by this dimension
          type: string
        label:
          description: Display label for this dimension
          type: string
        values:
          description: Authored values offered for this dimension
          items:
            type: string
          type: array
      required:
        - key
        - label
      type: object
    MatrixNodeResponse:
      properties:
        fallback:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeResponse'
          description: Route used when no split claims an event
          nullable: true
        leaf:
          allOf:
            - $ref: '#/components/schemas/MatrixPriceCellResponse'
          description: Price applied when this node is a cell
          nullable: true
        splits:
          description: Ordered routing choices at this node
          items:
            $ref: '#/components/schemas/MatrixDimensionRuleResponse'
          type: array
      type: object
    MatrixPriceCellInput:
      properties:
        cell_key:
          description: Stable identity of an existing matrix cell; omitted for a new cell
          type: string
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelInput'
          description: Fixed pricing details
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedPercentagePricingModelInput'
          description: Graduated percentage pricing details
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/GraduatedTieredPricingModelInput'
          description: Graduated tiered pricing details
          nullable: true
        label:
          description: >-
            Invoice line label for this cell, including an explicitly empty
            label
          nullable: true
          type: string
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPercentagePricingModelInput'
          description: Tiered percentage pricing details
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/TieredPricingModelInput'
          description: Tiered pricing details
          nullable: true
        type:
          description: Pricing model used by this cell
          enum:
            - unit
            - fixed
            - tiered
            - graduated_tiered
            - tiered_percentage
            - graduated_percentage
            - volume_percentage
          type: string
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelInput'
          description: Unit pricing details
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelInput'
          description: Volume percentage pricing details
          nullable: true
      required:
        - type
      type: object
    MatrixDimensionRuleInput:
      properties:
        branches:
          description: Exact property-value branches
          items:
            $ref: '#/components/schemas/MatrixExactMatchInput'
          type: array
        dimension_key:
          description: Dimension evaluated by this split
          type: string
        wildcard:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route for a present property value without an exact branch
          nullable: true
      required:
        - branches
        - dimension_key
      type: object
    MatrixPriceCellResponse:
      properties:
        cell_key:
          description: Stable identity of this matrix cell
          type: string
        fixed_pricing_model:
          allOf:
            - $ref: '#/components/schemas/FixedPricingModelResponse'
          description: Fixed pricing details
          nullable: true
        graduated_percentage_pricing_model:
          allOf:
            - $ref: >-
                #/components/schemas/MatrixGraduatedPercentagePricingModelResponse
          description: Graduated percentage pricing details
          nullable: true
        graduated_tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixGraduatedTieredPricingModelResponse'
          description: Graduated tiered pricing details
          nullable: true
        label:
          description: >-
            Invoice line label for this cell, including an explicitly empty
            label
          nullable: true
          type: string
        tiered_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixTieredPercentagePricingModelResponse'
          description: Tiered percentage pricing details
          nullable: true
        tiered_pricing_model:
          allOf:
            - $ref: '#/components/schemas/MatrixTieredPricingModelResponse'
          description: Tiered pricing details
          nullable: true
        type:
          description: Pricing model used by this cell
          enum:
            - unit
            - fixed
            - tiered
            - graduated_tiered
            - tiered_percentage
            - graduated_percentage
            - volume_percentage
          type: string
        unit_pricing_model:
          allOf:
            - $ref: '#/components/schemas/UnitPricingModelResponse'
          description: Unit pricing details
          nullable: true
        volume_percentage_pricing_model:
          allOf:
            - $ref: '#/components/schemas/VolumePercentagePricingModelResponse'
          description: Volume percentage pricing details
          nullable: true
      required:
        - cell_key
        - type
      type: object
    MatrixDimensionRuleResponse:
      properties:
        branches:
          description: Exact property-value branches
          items:
            $ref: '#/components/schemas/MatrixExactMatchResponse'
          type: array
        dimension_key:
          description: Dimension evaluated by this split
          type: string
        wildcard:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeResponse'
          description: Route for a present property value without an exact branch
          nullable: true
      required:
        - branches
        - dimension_key
      type: object
    MatrixExactMatchInput:
      properties:
        child:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeInput'
          description: Route taken for this value
        value:
          description: Exact event property value matched by this branch
          type: string
      required:
        - child
        - value
      type: object
    MatrixGraduatedPercentagePricingModelResponse:
      properties:
        tiers:
          description: Percentage-based pricing tiers (each tier priced independently)
          items:
            $ref: '#/components/schemas/MatrixPercentageTierResponse'
          type: array
      required:
        - tiers
      type: object
    MatrixGraduatedTieredPricingModelResponse:
      properties:
        tiers:
          description: Pricing tiers (each tier priced independently)
          items:
            $ref: '#/components/schemas/MatrixPricingTierResponse'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    MatrixTieredPercentagePricingModelResponse:
      properties:
        tiers:
          description: Percentage-based pricing tiers (first matching tier applies)
          items:
            $ref: '#/components/schemas/MatrixPercentageTierResponse'
          type: array
      required:
        - tiers
      type: object
    MatrixTieredPricingModelResponse:
      properties:
        tiers:
          description: Pricing tiers (first matching tier applies)
          items:
            $ref: '#/components/schemas/MatrixPricingTierResponse'
          type: array
        units:
          description: Fixed quantity of units (for fixed fee type only)
          example: 10
          format: int64
          nullable: true
          type: integer
      required:
        - tiers
      type: object
    MatrixExactMatchResponse:
      properties:
        child:
          allOf:
            - $ref: '#/components/schemas/MatrixNodeResponse'
          description: Route taken for this value
        value:
          description: Exact event property value matched by this branch
          type: string
      required:
        - child
        - value
      type: object
    MatrixPercentageTierResponse:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound of the tier; omitted when unlimited
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        percentage:
          description: Percentage rate for this tier
          example: '2.5'
          nullable: true
          type: string
      required:
        - min_units
      type: object
    MatrixPricingTierResponse:
      properties:
        fixed_fee:
          description: Fixed fee for this tier
          example: '10.00'
          nullable: true
          type: string
        max_units:
          description: Upper bound of the tier; omitted when unlimited
          example: 10000
          format: int64
          nullable: true
          type: integer
        min_units:
          description: Lower bound of the tier (inclusive)
          example: 0
          format: int64
          type: integer
        price_per_unit:
          description: Price per unit in this tier
          example: '0.02'
          nullable: true
          type: string
        unit_price:
          description: Committed per-unit rate when present
          example: '5.00'
          nullable: true
          type: string
      required:
        - min_units
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http
      x-fern-bearer:
        env: ALGUNA_API_KEY
        name: apiKey

````

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