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 pathScopeWhat it does
GET /v1/account/exportreadEverything the account holds, as one JSON document
GET /v1/accountreadAccount, plan, credits, keys and usage
GET /v1/usagereadUsage against plan caps for the current billing period
POST /v1/account/keyswriteCreate an API key
DELETE /v1/account/keys/{id}writeRevoke 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

FieldTypeRequiredDescription
brandstringyesNo further constraints.
account_idstringyesNo further constraints.
exported_atstringyesNo further constraints.
profilemap of valueyesNo further constraints.
tablesmap of array of map of valueyesRows per table; only tables with at least one row appear.
redacted_columnsmap of array of stringyesPer table, the columns left out because they hold a secret.
truncatedmap of integeryesTables cut at the row cap, with the number of rows the account has there.
Response example, HTTP 200
{
  "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
curl "https://api.coldagentai.com/v1/account/export" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
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

FieldTypeRequiredDescription
accountobjectyesNo further constraints.
account.idstringyesNo further constraints.
account.namestringyesNo further constraints.
account.created_atstringyesNo further constraints.
planobject or nullyesNo further constraints.
plan.idstringyesNo further constraints.
plan.namestringyesNo further constraints.
plan.monthly_price_centsintegeryesNo further constraints.
plan.pricing_status"owner-approved"yesNo further constraints.
subscriptionobjectyesNo further constraints.
subscription.plan"starter" or "pro" or "max" or "enterprise" or nullyesnull 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"yesNo further constraints.
subscription.interval"month" or "year" or nullyesNo further constraints.
subscription.current_period_endstring (date-time) or nullyesISO 8601 time in UTC
subscription.trial_ends_atstring (date-time) or nullyesISO 8601 time in UTC
subscription.cancel_at_period_endbooleanyesNo further constraints.
creditsobjectyesNo further constraints.
credits.plan_walletobjectyesPlan credits: granted each billing month, expire unspent at the month end. Spent first.
credits.plan_wallet.grantedintegeryesNo further constraints.
credits.plan_wallet.spentintegeryesNo further constraints.
credits.plan_wallet.reservedintegeryesCredits held by operations still in flight.
credits.plan_wallet.availableintegeryesCredits you can spend now.
credits.top_up_walletobjectyesTop-up credits: bought in packs, never expire.
credits.top_up_wallet.grantedintegeryesNo further constraints.
credits.top_up_wallet.spentintegeryesNo further constraints.
credits.top_up_wallet.reservedintegeryesCredits held by operations still in flight.
credits.top_up_wallet.availableintegeryesCredits you can spend now.
credits.total_availableintegeryesNo further constraints.
keysarray of objectyesNo further constraints.
keys[].idstringyesPublic key id. The key itself is never returned.
keys[].prefixstringyesNo further constraints.
keys[].namestringyesNo further constraints.
keys[].scope"read" or "write"yesNo further constraints.
keys[].created_atstringyesNo further constraints.
keys[].revokedbooleanyesNo further constraints.
keys[].revoked_atstring or nullyesNo further constraints.
usageobjectyesNo further constraints.
usage.periodobjectyesNo further constraints.
usage.period.startstringyesNo further constraints.
usage.period.endstringyesNo further constraints.
usage.period.source"subscription" or "calendar_month"yesNo further constraints.
usage.plan_idstring or nullyesnull when the account has no plan. There is no free tier.
usage.pricing_status"owner-approved"yesPlan prices and caps follow the published plans.
usage.emailsobjectyesEmails 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.usedintegeryesNo further constraints.
usage.emails.capintegeryesNo further constraints.
usage.active_contactsobjectyesLeads 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.usedintegeryesNo further constraints.
usage.active_contacts.capintegeryesNo further constraints.
usage.imap_mailboxesobjectyesIMAP/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.usedintegeryesNo further constraints.
usage.imap_mailboxes.capintegeryesNo further constraints.
Response example, HTTP 200
{
  "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
curl "https://api.coldagentai.com/v1/account" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
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

FieldTypeRequiredDescription
usageobjectyesNo further constraints.
usage.periodobjectyesNo further constraints.
usage.period.startstringyesNo further constraints.
usage.period.endstringyesNo further constraints.
usage.period.source"subscription" or "calendar_month"yesNo further constraints.
usage.plan_idstring or nullyesnull when the account has no plan. There is no free tier.
usage.pricing_status"owner-approved"yesPlan prices and caps follow the published plans.
usage.emailsobjectyesEmails 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.usedintegeryesNo further constraints.
usage.emails.capintegeryesNo further constraints.
usage.active_contactsobjectyesLeads 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.usedintegeryesNo further constraints.
usage.active_contacts.capintegeryesNo further constraints.
usage.imap_mailboxesobjectyesIMAP/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.usedintegeryesNo further constraints.
usage.imap_mailboxes.capintegeryesNo further constraints.
creditsobjectyesNo further constraints.
credits.plan_walletobjectyesPlan credits: granted each billing month, expire unspent at the month end. Spent first.
credits.plan_wallet.grantedintegeryesNo further constraints.
credits.plan_wallet.spentintegeryesNo further constraints.
credits.plan_wallet.reservedintegeryesCredits held by operations still in flight.
credits.plan_wallet.availableintegeryesCredits you can spend now.
credits.top_up_walletobjectyesTop-up credits: bought in packs, never expire.
credits.top_up_wallet.grantedintegeryesNo further constraints.
credits.top_up_wallet.spentintegeryesNo further constraints.
credits.top_up_wallet.reservedintegeryesCredits held by operations still in flight.
credits.top_up_wallet.availableintegeryesCredits you can spend now.
credits.total_availableintegeryesNo further constraints.
Response example, HTTP 200
{
  "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
curl "https://api.coldagentai.com/v1/usage" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
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.

FieldTypeRequiredDescription
namestringnoA label for the key. 0 to 100 characters.
scope"read" or "write"noread can only read; write can change state, send mail and spend credits. Default "read".
Request example
{
  "name": "Example",
  "scope": "read"
}

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
keystringyesThe full key. Store it now; it is not saved and cannot be shown again.
prefixstringyesNo further constraints.
namestringyesNo further constraints.
scope"read" or "write"yesNo further constraints.
created_atstringyesNo further constraints.
Response example, HTTP 201
{
  "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
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"
}'
JavaScript (fetch)
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

FieldTypeRequiredDescription
idstringyesat least 1 characters

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
revokedtrueyesNo further constraints.
Response example, HTTP 200
{
  "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
curl -X DELETE "https://api.coldagentai.com/v1/account/keys/$KEY_ID" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
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();
Accounts