Atlas
Billing

Create Stripe portal session

Creates a Stripe Customer Portal session for the active workspace. Returns a URL to redirect the user to.

POST
/api/v1/billing/portal

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

returnUrl?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/billing/portal" \  -H "Content-Type: application/json" \  -d '{}'
{
  "url": "string"
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}