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 path | Scope | What it does |
|---|---|---|
GET /v1/credits | read | Credit 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
| Field | Type | Required | Description |
|---|---|---|---|
plan_wallet | object | yes | Plan credits: granted each billing month, expire unspent at the month end. Spent first. |
plan_wallet.granted | integer | yes | No further constraints. |
plan_wallet.spent | integer | yes | No further constraints. |
plan_wallet.reserved | integer | yes | Credits held by operations still in flight. |
plan_wallet.available | integer | yes | Credits you can spend now. |
top_up_wallet | object | yes | Top-up credits: bought in packs, never expire. |
top_up_wallet.granted | integer | yes | No further constraints. |
top_up_wallet.spent | integer | yes | No further constraints. |
top_up_wallet.reserved | integer | yes | Credits held by operations still in flight. |
top_up_wallet.available | integer | yes | Credits you can spend now. |
total_available | integer | yes | No further constraints. |
pricing_status | "owner-approved" | yes | No further constraints. |
credit_pack | object | yes | No further constraints. |
credit_pack.pack_size | integer | yes | No further constraints. |
credit_pack.cents_per_pack | integer | yes | No further constraints. |
credit_pack.volume_threshold_credits | integer | yes | No further constraints. |
credit_pack.volume_cents_per_pack | integer | yes | No further constraints. |
{
"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 "https://api.coldagentai.com/v1/credits" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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();