Skip to content
LogoLogo

Billing

Provider-neutral Workspace subscription status and invoice references.

Read the provider-neutral Workspace subscription and invoice references

GET/api/v1/workspaces/{workspace_id}/billing-settings

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Responses

Read a bounded cross-Workspace billing and plan overview

GET/api/v1/me/billing-plans

Returns a signed-cursor page of plan/status facts for at most 100 active Workspace memberships. Sensitive details and mutations remain on the target Workspace Billing surface.

Query Parameters

cursor
string·min 1·max 2048

Opaque continuation cursor returned by the preceding page.

limit
integer·min 1·max 100·default 50

Maximum number of resources to return.

Responses

Create a hosted checkout session for a paid Workspace plan

POST/api/v1/workspaces/{workspace_id}/checkout-sessions

Creates a short-lived provider-hosted Checkout URL. The browser return is navigation only; signed provider webhooks remain authoritative for subscription state and entitlements.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
planRequired
string
Values
personalteamgrowth
cadenceRequired
string
Values
monthlyannual

Responses

Create a hosted customer billing portal session

POST/api/v1/workspaces/{workspace_id}/billing-portal-sessions

Creates a short-lived provider-hosted portal URL for a Workspace that already has a provider customer reference.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Responses

Create a catalogued Knowledge credit checkout

POST/api/v1/workspaces/{workspace_id}/billing/knowledge-credit-top-ups

Requires Workspace billing-management capability, recent authentication, and an Idempotency-Key. A verified paid provider event grants the credits; delayed-payment failure and the browser return never grant value. Production remains unavailable while provider billing is disabled.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
creditsRequired
integer <int64>

Purchased AI Credit quantity from the accepted launch catalog.

Values
15032587518003700

Responses

Start paid Workspace creation

POST/api/v1/workspace-checkouts

Creates or replays an expiring account-level pending checkout and returns a provider-hosted URL. No usable Workspace exists yet. Only a signature-verified provider event followed by subscription reconciliation may activate the Workspace; browser return is navigation only.

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
nameRequired
string·min 1·max 100
slug
string·min 1·max 63
quote_idRequired
string·min 1·max 255

Responses

Read paid Workspace creation state

GET/api/v1/workspace-checkouts/{checkout_id}

Returns only the current account's bounded checkout state. A foreign identifier is indistinguishable from an absent one.

Path Parameters

checkout_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-Assign-Realtime-Baseline
string

Upcoming browser-session canonical Account read. Captures the checkout response and a signed Account replay cursor in one read-only snapshot. Apply the response before acknowledging the socket checkpoint. An ordinary read may expire a pending checkout; a canonical baseline never mutates it.

Values
account

Responses