> ## 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 subscription checkout

> Start checkout for a paid plan. 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).

Choose a new paid plan with a durable UUID `operation_id` and permitted return URLs. Retry an ambiguous request with the same operation ID and intended purchase. A checkout URL or success redirect does not grant paid compute; wait for verified payment and confirmed account projection.

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/create-checkout-session
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/create-checkout-session:
    post:
      tags:
        - Auth
      operationId: create_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.