Accounts API reference
Read the account with its plan, credit wallets and usage, and create or revoke API keys. 5 operations.
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/account/export | read | Everything the account holds, as one JSON document |
GET /v1/account | read | Account, plan, credits, keys and usage |
GET /v1/usage | read | Usage against plan caps for the current billing period |
POST /v1/account/keys | write | Create an API key |
DELETE /v1/account/keys/{id} | write | Revoke an API key |
#GET /v1/account/export
Every row the account has: profile, keys (by prefix), credit ledger, invoices and payments, domains, mailboxes, campaigns, leads, replies and the rest. Secrets (key hashes, tokens, sealed mailbox credentials) are left out and named under redacted_columns. Three requests per account every ten minutes.
Scope: read. A read key and a write key both work. Success: HTTP 200.
Response
| Field | Type | Required | Description |
|---|---|---|---|
brand | string | yes | No further constraints. |
account_id | string | yes | No further constraints. |
exported_at | string | yes | No further constraints. |
profile | map of value | yes | No further constraints. |
tables | map of array of map of value | yes | Rows per table; only tables with at least one row appear. |
redacted_columns | map of array of string | yes | Per table, the columns left out because they hold a secret. |
truncated | map of integer | yes | Tables cut at the row cap, with the number of rows the account has there. |
{
"brand": "abc123",
"account_id": "id_8f3a2c1d",
"exported_at": "abc123",
"profile": {
"example_key": {}
},
"tables": {
"example_key": [
{
"example_key": {}
}
]
},
"redacted_columns": {
"example_key": [
"abc123"
]
},
"truncated": {
"example_key": 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/account/export" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const res = await fetch(`https://api.coldagentai.com/v1/account/export`, {
headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();#GET /v1/account
Returns the account, its plan and subscription, both credit wallets (plan credits and never-expiring top-up credits), the API keys with their scopes (never the key itself) and usage against the plan caps.
Scope: read. A read key and a write key both work. Success: HTTP 200.
Response
| Field | Type | Required | Description |
|---|---|---|---|
account | object | yes | No further constraints. |
account.id | string | yes | No further constraints. |
account.name | string | yes | No further constraints. |
account.created_at | string | yes | No further constraints. |
plan | object or null | yes | No further constraints. |
plan.id | string | yes | No further constraints. |
plan.name | string | yes | No further constraints. |
plan.monthly_price_cents | integer | yes | No further constraints. |
plan.pricing_status | "owner-approved" | yes | No further constraints. |
subscription | object | yes | No further constraints. |
subscription.plan | "starter" or "pro" or "max" or "enterprise" or null | yes | null while the account has no plan (never subscribed, cancelled, or a subscription held for review). |
subscription.status | "none" or "trialing" or "active" or "past_due" or "canceled" or "unpaid" or "incomplete" or "paused" | yes | No further constraints. |
subscription.interval | "month" or "year" or null | yes | No further constraints. |
subscription.current_period_end | string (date-time) or null | yes | ISO 8601 time in UTC |
subscription.trial_ends_at | string (date-time) or null | yes | ISO 8601 time in UTC |
subscription.cancel_at_period_end | boolean | yes | No further constraints. |
credits | object | yes | No further constraints. |
credits.plan_wallet | object | yes | Plan credits: granted each billing month, expire unspent at the month end. Spent first. |
credits.plan_wallet.granted | integer | yes | No further constraints. |
credits.plan_wallet.spent | integer | yes | No further constraints. |
credits.plan_wallet.reserved | integer | yes | Credits held by operations still in flight. |
credits.plan_wallet.available | integer | yes | Credits you can spend now. |
credits.top_up_wallet | object | yes | Top-up credits: bought in packs, never expire. |
credits.top_up_wallet.granted | integer | yes | No further constraints. |
credits.top_up_wallet.spent | integer | yes | No further constraints. |
credits.top_up_wallet.reserved | integer | yes | Credits held by operations still in flight. |
credits.top_up_wallet.available | integer | yes | Credits you can spend now. |
credits.total_available | integer | yes | No further constraints. |
keys | array of object | yes | No further constraints. |
keys[].id | string | yes | Public key id. The key itself is never returned. |
keys[].prefix | string | yes | No further constraints. |
keys[].name | string | yes | No further constraints. |
keys[].scope | "read" or "write" | yes | No further constraints. |
keys[].created_at | string | yes | No further constraints. |
keys[].revoked | boolean | yes | No further constraints. |
keys[].revoked_at | string or null | yes | No further constraints. |
usage | object | yes | No further constraints. |
usage.period | object | yes | No further constraints. |
usage.period.start | string | yes | No further constraints. |
usage.period.end | string | yes | No further constraints. |
usage.period.source | "subscription" or "calendar_month" | yes | No further constraints. |
usage.plan_id | string or null | yes | null when the account has no plan. There is no free tier. |
usage.pricing_status | "owner-approved" | yes | Plan prices and caps follow the published plans. |
usage.emails | object | yes | Emails sent this period against the plan. The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.emails.used | integer | yes | No further constraints. |
usage.emails.cap | integer | yes | No further constraints. |
usage.active_contacts | object | yes | Leads that are not unsubscribed, bounced or blocked. The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.active_contacts.used | integer | yes | No further constraints. |
usage.active_contacts.cap | integer | yes | No further constraints. |
usage.imap_mailboxes | object | yes | IMAP/SMTP mailboxes connected (Google and Microsoft mailboxes are not capped). The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.imap_mailboxes.used | integer | yes | No further constraints. |
usage.imap_mailboxes.cap | integer | yes | No further constraints. |
{
"account": {
"id": "id_8f3a2c1d",
"name": "Example",
"created_at": "abc123"
},
"plan": {
"id": "id_8f3a2c1d",
"name": "Example",
"monthly_price_cents": 1,
"pricing_status": "owner-approved"
},
"subscription": {
"plan": "starter",
"status": "none",
"interval": "month",
"current_period_end": "2026-10-17T12:00:00.000Z",
"trial_ends_at": "2026-10-17T12:00:00.000Z",
"cancel_at_period_end": true
},
"credits": {
"plan_wallet": {
"granted": 1,
"spent": 1,
"reserved": 1,
"available": 1
},
"top_up_wallet": {
"granted": 1,
"spent": 1,
"reserved": 1,
"available": 1
},
"total_available": 1
},
"keys": [
{
"id": "id_8f3a2c1d",
"prefix": "abc123",
"name": "Example",
"scope": "read",
"created_at": "abc123",
"revoked": true,
"revoked_at": "abc123"
}
],
"usage": {
"period": {
"start": "abc123",
"end": "abc123",
"source": "subscription"
},
"plan_id": "id_8f3a2c1d",
"pricing_status": "owner-approved",
"emails": {
"used": 1,
"cap": 1
},
"active_contacts": {
"used": 1,
"cap": 1
},
"imap_mailboxes": {
"used": 1,
"cap": 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/account" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const res = await fetch(`https://api.coldagentai.com/v1/account`, {
headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();#GET /v1/usage
Emails sent, active contacts and IMAP mailboxes against the plan caps, for the subscription period (or the UTC calendar month without a subscription), plus the credit wallets.
Scope: read. A read key and a write key both work. Success: HTTP 200.
Response
| Field | Type | Required | Description |
|---|---|---|---|
usage | object | yes | No further constraints. |
usage.period | object | yes | No further constraints. |
usage.period.start | string | yes | No further constraints. |
usage.period.end | string | yes | No further constraints. |
usage.period.source | "subscription" or "calendar_month" | yes | No further constraints. |
usage.plan_id | string or null | yes | null when the account has no plan. There is no free tier. |
usage.pricing_status | "owner-approved" | yes | Plan prices and caps follow the published plans. |
usage.emails | object | yes | Emails sent this period against the plan. The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.emails.used | integer | yes | No further constraints. |
usage.emails.cap | integer | yes | No further constraints. |
usage.active_contacts | object | yes | Leads that are not unsubscribed, bounced or blocked. The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.active_contacts.used | integer | yes | No further constraints. |
usage.active_contacts.cap | integer | yes | No further constraints. |
usage.imap_mailboxes | object | yes | IMAP/SMTP mailboxes connected (Google and Microsoft mailboxes are not capped). The cap is the plan's; an account with no plan has no allowance, so every cap is zero. |
usage.imap_mailboxes.used | integer | yes | No further constraints. |
usage.imap_mailboxes.cap | integer | yes | No further constraints. |
credits | object | yes | No further constraints. |
credits.plan_wallet | object | yes | Plan credits: granted each billing month, expire unspent at the month end. Spent first. |
credits.plan_wallet.granted | integer | yes | No further constraints. |
credits.plan_wallet.spent | integer | yes | No further constraints. |
credits.plan_wallet.reserved | integer | yes | Credits held by operations still in flight. |
credits.plan_wallet.available | integer | yes | Credits you can spend now. |
credits.top_up_wallet | object | yes | Top-up credits: bought in packs, never expire. |
credits.top_up_wallet.granted | integer | yes | No further constraints. |
credits.top_up_wallet.spent | integer | yes | No further constraints. |
credits.top_up_wallet.reserved | integer | yes | Credits held by operations still in flight. |
credits.top_up_wallet.available | integer | yes | Credits you can spend now. |
credits.total_available | integer | yes | No further constraints. |
{
"usage": {
"period": {
"start": "abc123",
"end": "abc123",
"source": "subscription"
},
"plan_id": "id_8f3a2c1d",
"pricing_status": "owner-approved",
"emails": {
"used": 1,
"cap": 1
},
"active_contacts": {
"used": 1,
"cap": 1
},
"imap_mailboxes": {
"used": 1,
"cap": 1
}
},
"credits": {
"plan_wallet": {
"granted": 1,
"spent": 1,
"reserved": 1,
"available": 1
},
"top_up_wallet": {
"granted": 1,
"spent": 1,
"reserved": 1,
"available": 1
},
"total_available": 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/usage" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const res = await fetch(`https://api.coldagentai.com/v1/usage`, {
headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();#POST /v1/account/keys
Creates a key for this account with the chosen scope (read or write; read by default). The secret is in the response once and cannot be shown again. A key can only be created with a write key.
Scope: write. A read key gets 403 forbidden. Success: HTTP 201.
Request body
Send JSON with Content-Type: application/json. The body is optional.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | no | A label for the key. 0 to 100 characters. |
scope | "read" or "write" | no | read can only read; write can change state, send mail and spend credits. Default "read". |
{
"name": "Example",
"scope": "read"
}Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
key | string | yes | The full key. Store it now; it is not saved and cannot be shown again. |
prefix | string | yes | No further constraints. |
name | string | yes | No further constraints. |
scope | "read" or "write" | yes | No further constraints. |
created_at | string | yes | No further constraints. |
{
"id": "id_8f3a2c1d",
"key": "abc123",
"prefix": "abc123",
"name": "Example",
"scope": "read",
"created_at": "abc123"
}Errors
invalid_input, unauthorized, forbidden, payload_too_large, 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 -X POST "https://api.coldagentai.com/v1/account/keys" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Example",
"scope": "read"
}'const res = await fetch(`https://api.coldagentai.com/v1/account/keys`, {
method: 'POST',
body: JSON.stringify({
"name": "Example",
"scope": "read"
}),
headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}`, 'Content-Type': 'application/json' },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();#DELETE /v1/account/keys/{id}
Revokes one of this account's keys immediately. A revoked key is rejected with 401 from then on.
Scope: write. A read key gets 403 forbidden. Success: HTTP 200.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | at least 1 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
revoked | true | yes | No further constraints. |
{
"id": "id_8f3a2c1d",
"revoked": true
}Errors
invalid_input, unauthorized, forbidden, unknown_product, 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 -X DELETE "https://api.coldagentai.com/v1/account/keys/$KEY_ID" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/account/keys/${id}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();