Verification API reference

Verify a batch of email addresses and read an earlier batch. 2 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
POST /v1/email-verificationwriteVerify a batch of email addresses
GET /v1/email-verification/{id}readRead an earlier verification batch

#POST /v1/email-verification

Verifies up to 1,000 addresses. Each is checked by one provider, and by a second when the first answer is not a clear valid or invalid. Billed per provider check through the credit wallet (plan credits first). A recent result is reused for free. During the trial at most 100 addresses are verified. Send an Idempotency-Key header to make a retry free; the same key with different addresses is refused.

Scope: write. A read key gets 403 forbidden. Success: HTTP 200.

Request body

Send JSON with Content-Type: application/json. The body is required.

FieldTypeRequiredDescription
emailsarray of stringyes1 to 1000 addresses. 1 to 1000 items.
valid_onlybooleannoWhen true, catch-all addresses are not sendable.
Request example
{
  "emails": [
    "maya@example.com"
  ]
}

Response

FieldTypeRequiredDescription
idstringyesUse it with GET /v1/email-verification/{id}.
resultsarray of objectyesOne entry per distinct valid address, in request order.
results[].emailstringyesNo further constraints.
results[].outcome"verified" or "failed" or "skipped"yesverified: checked, see result. failed: the providers could not answer, nothing was charged for it. skipped: not checked, see reason.
results[].result"valid" or "invalid" or "catch_all" or "unknown" or "risky"noOnly when verified.
results[].sendablebooleannovalid, or catch_all unless valid_only was set. invalid, risky and unknown are never sendable.
results[].providersarray of stringnoProviders that produced the result.
results[].cachedbooleannoTrue when a recent result was reused and nothing was billed.
results[].checksintegernoProvider checks billed when this address was verified.
results[].verified_atstringnoNo further constraints.
results[].reasonstringnoWhy a result is failed or skipped (trial_cap, insufficient_credits, or the provider message).
results[].retryablebooleannoNo further constraints.
rejectedarray of objectyesInput that is not an email address. Never billed.
rejected[].indexintegeryesNo further constraints.
rejected[].valuestringyesNo further constraints.
rejected[].reasonstringyesNo further constraints.
checks_billedintegeryesNo further constraints.
credits_chargedintegeryesNo further constraints.
stopped_by"insufficient_credits" or nullyesSet when the wallet ran dry part way; the rest of the addresses are skipped.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "results": [
    {
      "email": "maya@example.com",
      "outcome": "verified",
      "result": "valid",
      "sendable": true,
      "providers": [
        "abc123"
      ],
      "cached": true,
      "checks": 1,
      "verified_at": "abc123",
      "reason": "abc123",
      "retryable": true
    }
  ],
  "rejected": [
    {
      "index": 1,
      "value": "abc123",
      "reason": "abc123"
    }
  ],
  "checks_billed": 1,
  "credits_charged": 1,
  "stopped_by": "insufficient_credits"
}

Errors

invalid_input, unauthorized, trial_allowance_exhausted, forbidden, payload_too_large, rate_limited, internal_error, provider_unavailable. 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/email-verification" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    "maya@example.com"
  ]
}'
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/email-verification`, {
  method: 'POST',
  body: JSON.stringify({
    "emails": [
      "maya@example.com"
    ]
  }),
  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();

#GET /v1/email-verification/{id}

Returns the stored outcome of a batch created by this account. It never calls a provider or charges credits.

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

Path parameters

FieldTypeRequiredDescription
idstringyes1 to 200 characters

Response

FieldTypeRequiredDescription
idstringyesUse it with GET /v1/email-verification/{id}.
resultsarray of objectyesOne entry per distinct valid address, in request order.
results[].emailstringyesNo further constraints.
results[].outcome"verified" or "failed" or "skipped"yesverified: checked, see result. failed: the providers could not answer, nothing was charged for it. skipped: not checked, see reason.
results[].result"valid" or "invalid" or "catch_all" or "unknown" or "risky"noOnly when verified.
results[].sendablebooleannovalid, or catch_all unless valid_only was set. invalid, risky and unknown are never sendable.
results[].providersarray of stringnoProviders that produced the result.
results[].cachedbooleannoTrue when a recent result was reused and nothing was billed.
results[].checksintegernoProvider checks billed when this address was verified.
results[].verified_atstringnoNo further constraints.
results[].reasonstringnoWhy a result is failed or skipped (trial_cap, insufficient_credits, or the provider message).
results[].retryablebooleannoNo further constraints.
rejectedarray of objectyesInput that is not an email address. Never billed.
rejected[].indexintegeryesNo further constraints.
rejected[].valuestringyesNo further constraints.
rejected[].reasonstringyesNo further constraints.
checks_billedintegeryesNo further constraints.
credits_chargedintegeryesNo further constraints.
stopped_by"insufficient_credits" or nullyesSet when the wallet ran dry part way; the rest of the addresses are skipped.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "results": [
    {
      "email": "maya@example.com",
      "outcome": "verified",
      "result": "valid",
      "sendable": true,
      "providers": [
        "abc123"
      ],
      "cached": true,
      "checks": 1,
      "verified_at": "abc123",
      "reason": "abc123",
      "retryable": true
    }
  ],
  "rejected": [
    {
      "index": 1,
      "value": "abc123",
      "reason": "abc123"
    }
  ],
  "checks_billed": 1,
  "credits_charged": 1,
  "stopped_by": "insufficient_credits"
}

Errors

invalid_input, unauthorized, 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 "https://api.coldagentai.com/v1/email-verification/$VERIFICATION_ID" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/email-verification/${id}`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
Verification