CognitiveX Docs
API

GET /api/billing/balance

Get Balance

GET /api/billing/balance

Get Balance

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
X-Org-IDheaderstring | nullNo-

Example request

curl -X GET https://api.cognitivx.io/api/billing/balance \
  -H "Authorization: Bearer icog_..."

Example response

200 application/json

{
  "balance_credits": 1,
  "balance_usd": 0,
  "low_balance": false,
  "depleted": false
}

Responses

StatusDescription
200Success. Returns the response body shown below.
422Request validation failed. detail lists each offending field.