> ## 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 billing portal session

> Open the billing portal for payment methods, invoices and cancellation. 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).

Open the configured portal for payment methods, invoices, or period-end cancellation. Capacity-sensitive plan and add-on changes use the Rigbox Billing flow. Portal creation does not change entitlement. Only a permitted return URL is accepted.

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-portal-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-portal-session:
    post:
      tags:
        - Auth
      operationId: portal
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PortalRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema: {}
      security:
        - bearer: []
components:
  schemas:
    PortalRequest:
      type: object
      properties:
        return_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.