Skip to content
Get started

Create billing portal session

POST/api/promptly/billing/portal

Create a Stripe billing portal session for managing subscription

Body ParametersExpand Collapse
organizationId: string
formatuuid
ReturnsExpand Collapse
url: optional string

Stripe billing portal URL

formaturi

Create billing portal session

curl https://0ct.com/api/promptly/billing/portal \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $0CT_API_KEY" \
    -d '{
          "organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }'
{
  "url": "https://example.com"
}
Returns Examples
{
  "url": "https://example.com"
}