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

# Create credit-pack checkout

> Buy a managed AI credit pack. Console only.

> [!NOTE]
>
> **Console only.** This operation needs a signed-in console session; an API key or CLI login gets `404`. Use Billing in the console. See [pricing and billing](https://docs.rigbox.dev/concepts/pricing-and-billing.md#integration-and-retry-behavior).

An active verified paid subscription is required to purchase optional managed AI credits. A $13 pack buys 1,000 credits representing approximately $10 of upstream usage, with 30% markup included in the pack price. The purchase is one-time; neither checkout creation nor return parameters grant wallet funds. Verify the durable operation before treating the grant as applied.

Account billing requires an authenticated account identity with appropriate billing permissions. Workspace bridge identity is not an account billing credential. See [managed wallet](https://docs.rigbox.dev/ai/managed-wallet.md) for the financial contract.


## OpenAPI

````yaml openapi/auth-api.json POST /api/v1/auth/billing/credit-packs/checkout
openapi: 3.1.0
info:
  title: Rigbox Auth API
  description: Auth-service-owned public API surface exported for gateway composition.
  contact:
    name: Rigbox
    url: https://rigbox.dev
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.rigbox.dev
    description: Production gateway
security: []
tags:
  - name: Auth
  - name: Account
  - name: GitHub Deployments
  - name: API Keys
  - name: Access Control
paths:
  /api/v1/auth/billing/credit-packs/checkout:
    post:
      tags:
        - Auth
      operationId: credit_checkout
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PurchaseRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema: {}
      security:
        - bearer: []
components:
  schemas:
    PurchaseRequest:
      type: object
      required:
        - operation_id
      properties:
        cancel_url:
          type:
            - string
            - 'null'
        operation_id:
          type: string
          format: uuid
        plan:
          type:
            - string
            - 'null'
        return_url:
          type:
            - string
            - 'null'
        success_url:
          type:
            - string
            - 'null'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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