API reference / Endpoints
Balance
Spendable credits for the workspace.
GET/api/v1/balance
The workspace’s spendable credits.
Requestbash
curl https://app.prepaid.ai/api/v1/balance \
-H "Authorization: Bearer pk_live_your_key_here"Responsejson
{
"workspaceId": "3f6c1e70-9a4d-4a58-b6a2-2f0f0f9d1c11",
"credits": 1280
}Note
credits is in credit-hundredths, so 1280 means $12.80. This is the same figure the console’s balance shows.