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 path | Scope | What it does |
|---|---|---|
POST /v1/email-verification | write | Verify a batch of email addresses |
GET /v1/email-verification/{id} | read | Read 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.
| Field | Type | Required | Description |
|---|---|---|---|
emails | array of string | yes | 1 to 1000 addresses. 1 to 1000 items. |
valid_only | boolean | no | When true, catch-all addresses are not sendable. |
{
"emails": [
"maya@example.com"
]
}Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Use it with GET /v1/email-verification/{id}. |
results | array of object | yes | One entry per distinct valid address, in request order. |
results[].email | string | yes | No further constraints. |
results[].outcome | "verified" or "failed" or "skipped" | yes | verified: 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" | no | Only when verified. |
results[].sendable | boolean | no | valid, or catch_all unless valid_only was set. invalid, risky and unknown are never sendable. |
results[].providers | array of string | no | Providers that produced the result. |
results[].cached | boolean | no | True when a recent result was reused and nothing was billed. |
results[].checks | integer | no | Provider checks billed when this address was verified. |
results[].verified_at | string | no | No further constraints. |
results[].reason | string | no | Why a result is failed or skipped (trial_cap, insufficient_credits, or the provider message). |
results[].retryable | boolean | no | No further constraints. |
rejected | array of object | yes | Input that is not an email address. Never billed. |
rejected[].index | integer | yes | No further constraints. |
rejected[].value | string | yes | No further constraints. |
rejected[].reason | string | yes | No further constraints. |
checks_billed | integer | yes | No further constraints. |
credits_charged | integer | yes | No further constraints. |
stopped_by | "insufficient_credits" or null | yes | Set when the wallet ran dry part way; the rest of the addresses are skipped. |
{
"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 -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"
]
}'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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | 1 to 200 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Use it with GET /v1/email-verification/{id}. |
results | array of object | yes | One entry per distinct valid address, in request order. |
results[].email | string | yes | No further constraints. |
results[].outcome | "verified" or "failed" or "skipped" | yes | verified: 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" | no | Only when verified. |
results[].sendable | boolean | no | valid, or catch_all unless valid_only was set. invalid, risky and unknown are never sendable. |
results[].providers | array of string | no | Providers that produced the result. |
results[].cached | boolean | no | True when a recent result was reused and nothing was billed. |
results[].checks | integer | no | Provider checks billed when this address was verified. |
results[].verified_at | string | no | No further constraints. |
results[].reason | string | no | Why a result is failed or skipped (trial_cap, insufficient_credits, or the provider message). |
results[].retryable | boolean | no | No further constraints. |
rejected | array of object | yes | Input that is not an email address. Never billed. |
rejected[].index | integer | yes | No further constraints. |
rejected[].value | string | yes | No further constraints. |
rejected[].reason | string | yes | No further constraints. |
checks_billed | integer | yes | No further constraints. |
credits_charged | integer | yes | No further constraints. |
stopped_by | "insufficient_credits" or null | yes | Set when the wallet ran dry part way; the rest of the addresses are skipped. |
{
"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 "https://api.coldagentai.com/v1/email-verification/$VERIFICATION_ID" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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();