Credits API reference

Read the credit wallets that verification, prospect sourcing and autopilot approval spend from. 1 operation.

For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.

#Operations

Authenticate as described in Authentication. Every operation below is generated from the OpenAPI document.

Method and pathScopeWhat it does
GET /v1/creditsreadCredit balances

#GET /v1/credits

Returns the plan wallet (granted each billing month, expires unspent at the month end, spent first) and the top-up wallet (bought in packs, never expires), plus the pack prices.

Scope: read. A read key and a write key both work. Success: HTTP 200.

Response

FieldTypeRequiredDescription
plan_walletobjectyesPlan credits: granted each billing month, expire unspent at the month end. Spent first.
plan_wallet.grantedintegeryesNo further constraints.
plan_wallet.spentintegeryesNo further constraints.
plan_wallet.reservedintegeryesCredits held by operations still in flight.
plan_wallet.availableintegeryesCredits you can spend now.
top_up_walletobjectyesTop-up credits: bought in packs, never expire.
top_up_wallet.grantedintegeryesNo further constraints.
top_up_wallet.spentintegeryesNo further constraints.
top_up_wallet.reservedintegeryesCredits held by operations still in flight.
top_up_wallet.availableintegeryesCredits you can spend now.
total_availableintegeryesNo further constraints.
pricing_status"owner-approved"yesNo further constraints.
credit_packobjectyesNo further constraints.
credit_pack.pack_sizeintegeryesNo further constraints.
credit_pack.cents_per_packintegeryesNo further constraints.
credit_pack.volume_threshold_creditsintegeryesNo further constraints.
credit_pack.volume_cents_per_packintegeryesNo further constraints.
Response example, HTTP 200
{
  "plan_wallet": {
    "granted": 1,
    "spent": 1,
    "reserved": 1,
    "available": 1
  },
  "top_up_wallet": {
    "granted": 1,
    "spent": 1,
    "reserved": 1,
    "available": 1
  },
  "total_available": 1,
  "pricing_status": "owner-approved",
  "credit_pack": {
    "pack_size": 1,
    "cents_per_pack": 1,
    "volume_threshold_credits": 1,
    "volume_cents_per_pack": 1
  }
}

Errors

unauthorized, rate_limited, internal_error. Every error uses the single format.

Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/v1/credits" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/credits`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
Credits