Get Balance

Return the API key workspace's available credit balance.

01Overview

Returns the available and reserved balance of the workspace that owns the API key, in USD.

GET/api/v1/me/balance
Base URL https://capi.aiAPI version v1Authentication Bearer YOUR_API_TOKEN

Example

Get Balance

cURL
curl https://capi.ai/api/v1/me/balance \
  -H "Authorization: Bearer YOUR_API_TOKEN"
HTTP 200· OK
{
  "account": "workspace_4821",
  "key_name": "production",
  "unlimited": true,
  "balance": { "amount": 128.44, "currency": "USD" },
  "reserved": { "amount": 0.61, "currency": "USD" }
}