Skip to content
Select themeSelect language

`POST /api/v1/billing/portal` — open a Stripe Billing-Portal session for the caller's workspace, returning the hosted-portal session id/url.

POST
/api/v1/billing/portal
curl --request POST \
--url https://example.com/api/v1/billing/portal \
--header 'Content-Type: application/json' \
--data '{ "return_url": "example", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
Media typeapplication/json
object
return_url
required
string
workspace_id
required
string format: uuid
Examplegenerated
{
"return_url": "example",
"workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
Media typeapplication/json
object
id
required
string
url
required
string
Examplegenerated
{
"id": "example",
"url": "example"
}