SnozeDevelopers
API referenceBilling

Open a customer portal session for the workspace

Creates a Polar customer-portal session for the workspace and returns its URL, so the payer can manage payment methods and invoices with the provider. Requires a Clerk session and the `billing:manage` workspace permission.

POST
/v1/workspaces/{workspaceId}/billing/portal
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/billing/portal"
{  "data": {    "url": "string"  }}