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

# Create Portal Session

> Generate a Stripe Customer Portal URL for managing billing.

Get a link to the Stripe Customer Portal where your users can manage their subscription, update payment methods, and view invoices. No request body needed — just call it and redirect.

## Authorization

Requires an **organization-level** API key in the `Authorization` header.

## Response

<ResponseField name="url" type="string">
  A Stripe Customer Portal URL. Redirect the user here to manage their billing.
</ResponseField>

<RequestExample>
  ```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
  curl -X POST https://api.chowder.dev/v1/subscription/portal \
    -H "Authorization: Bearer chd_sk_your_org_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
  {
    "url": "https://billing.stripe.com/p/session/live_x1y2z3..."
  }
  ```
</ResponseExample>
