Skip to content

Account & Balance

Every request is billed against your account balance. These two endpoints let you read that balance and confirm which key you are authenticating with.

GET /v1/balance
Terminal window
curl -X GET "https://api.zelnum.com/api/v1/balance" \
-H "X-API-Key: YOUR_KEY_HERE"
{
"balance": "5.230000"
}
FieldTypeDescription
balancestringAvailable balance in USD, fixed to 6 decimal places.
GET /v1/api-key
Terminal window
curl -X GET "https://api.zelnum.com/api/v1/api-key" \
-H "X-API-Key: YOUR_KEY_HERE"
{
"api_key_id": 12,
"masked_key": "ck_xxxxxxxxx…****",
"last_used": "2026-09-12T09:14:03.000000Z",
"created_at": "2026-08-30T11:02:44.000000Z"
}
FieldTypeDescription
api_key_idintegerIdentifier of the key, useful in support requests.
masked_keystringMasked prefix. The plaintext key is never returned here.
last_usedstring | nullWhen the key was last used, written at most once every five minutes — see Security.
created_atstringWhen the key was created.

The endpoint reports the newest active key on the account, not an inventory. An account can hold several active keys; the Console lists them all — see Security for how rotation works.

If the account has no active key:

{
"api_key": null,
"message": "No API key found. Please regenerate."
}
StatuscodeCause
401unauthorizedMissing, invalid or inactive key.
403account_bannedThe account has been suspended.
429—Rate limit reached — see Rate Limits.

Both endpoints share the general bucket: 60 requests / minute per API key.