Skip to main content
POST
/
api
/
v1
/
workspaces
/
{workspace_id}
/
billing
/
customer-portal-session
Create Customer Portal Session
curl --request POST \
  --url https://api.example.com/api/v1/workspaces/{workspace_id}/billing/customer-portal-session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "returnUrl": "<string>"
}
'
{
  "sessionUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string<uuid4>
required

Body

application/json
returnUrl
string<uri>
required
Required string length: 1 - 2083

Response

Successful Response

sessionUrl
string<uri>
required
Required string length: 1 - 2083