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

# Create Portal Session



## OpenAPI

````yaml /openapi.json post /v1/billing/portal
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/billing/portal:
    post:
      tags:
        - billing
      summary: Create Portal Session
      operationId: create_portal_session_v1_billing_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    PortalResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
        - url
      title: PortalResponse
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Provide a Clerk JWT or a long-lived CLI token (prefix `ap_cli_`).  Pass
        as `Authorization: Bearer <token>`.

````