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

# Open the payment portal

> Returns a URL for managing payment methods.



## OpenAPI

````yaml /api-reference/openapi.personal.json get /v1/orgs/{slug}/billing/payment-portal
openapi: 3.1.0
info:
  title: Personal token API
  description: User-scoped API for account and organization management.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - bearer: []
paths:
  /v1/orgs/{slug}/billing/payment-portal:
    get:
      tags:
        - Billing
      summary: Open the payment portal
      description: Returns a URL for managing payment methods.
      operationId: payment_portal
      parameters:
        - name: slug
          in: path
          description: Organization slug
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Payment portal URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentPortalResponse'
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions
      security:
        - bearer: []
components:
  schemas:
    PaymentPortalResponse:
      type: object
      description: >-
        Response for the payment-portal endpoint - a hosted URL the client
        redirects

        to for adding/managing payment methods (Stripe Checkout /
        billing-portal).
      required:
        - portal_url
      properties:
        portal_url:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        Personal access token (msb_pat_…) or session JWT - the credential an
        agent acts with on a user's behalf.

````