Skip to content
LogoLogo

Create a catalogued Knowledge credit checkout

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