Prepare a workspace billing PDF
Returns a fresh receipt or invoice PDF URL, generating an invoice when needed. Requires billing:read; the order must belong to this exact workspace. Send an Idempotency-Key for retries.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/workspaces/string/billing/invoices/string/document"{ "data": { "url": "string" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Read payment and webhook completion for a checkout
Requires billing:manage and verifies that the checkout belongs to this workspace. Completion requires the exact Polar order or subscription to be applied locally by a webhook; this read never grants paid access.
Report whether the admin console still needs bootstrapping
Returns the number of platform admin accounts and whether first-run bootstrap is still open. Intentionally unauthenticated: the setup screen probes it before any admin exists, and it exposes nothing beyond that count.