Skip to content
Get started

Create checkout session

POST/api/promptly/billing/checkout

Create a Stripe checkout session for upgrading to paid plan

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

Stripe checkout URL

formaturi

Create checkout session

curl https://0ct.com/api/promptly/billing/checkout \
    -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"
}