Prepaid AIDocsv1
StatusSign in

API reference

Retrieve balance

GET/api/v1/balance

Spendable credits for the workspace.

1 min read
GET
curl https://app.prepaid.ai/api/v1/balance \  -H "Authorization: Bearer $PREPAID_API_KEY"
Response · 200
{  "workspaceId": "3f6c1e70-9a4d-4a58-b6a2-2f0f0f9d1c11",  "credits": 1280}

The workspace’s spendable credits, the same figure the console’s balance shows.

workspaceIdstringalways present
The workspace the key belongs to.
creditsintegeralways present
Credit-hundredths. 1280 means $12.80.