Blocklist API reference
The do-not-contact list: addresses and domains that are never emailed. 3 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/blocklist | read | List the do-not-contact list |
POST /v1/blocklist | write | Add an address or domain to the do-not-contact list |
DELETE /v1/blocklist/{id} | write | Remove an entry from the do-not-contact list |
#GET /v1/blocklist
Suppressed addresses and domains for this account, oldest first. A domain entry also covers its subdomains. Nothing on this list is ever mailed.
Scope: read. A read key and a write key both work. Success: HTTP 200.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
kind | "email" or "domain" | no | No further constraints. |
limit | integer | no | 1 to 100 |
cursor | string | no | 0 to 500 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | yes | No further constraints. |
data[].id | string | yes | No further constraints. |
data[].kind | "email" or "domain" | yes | No further constraints. |
data[].value | string | yes | No further constraints. |
data[].reason | "unsubscribe" or "bounce" or "complaint" or "opt_out_request" or "manual" or "import" | yes | No further constraints. |
data[].source | string or null | yes | No further constraints. |
data[].created_at | string (date-time) | yes | ISO 8601 time in UTC |
next_cursor | string or null | yes | No further constraints. |
{
"data": [
{
"id": "id_8f3a2c1d",
"kind": "email",
"value": "abc123",
"reason": "unsubscribe",
"source": "abc123",
"created_at": "2026-10-17T12:00:00.000Z"
}
],
"next_cursor": "abc123"
}Errors
invalid_input, 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/blocklist" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const res = await fetch(`https://api.coldagentai.com/v1/blocklist`, {
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/blocklist
Suppresses an email address or a whole domain (kind is inferred from the value). Idempotent: adding a value that is already listed returns the existing entry with created false. Entries that record a recipient opting out can never be removed.
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 |
|---|---|---|---|
value | string | yes | An email address or a domain; a domain also covers its subdomains 1 to 320 characters. |
kind | "email" or "domain" | no | No further constraints. |
reason | "manual" or "opt_out_request" or "unsubscribe" or "complaint" | no | No further constraints. |
{
"value": "abc123"
}Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
kind | "email" or "domain" | yes | No further constraints. |
value | string | yes | No further constraints. |
reason | "unsubscribe" or "bounce" or "complaint" or "opt_out_request" or "manual" or "import" | yes | No further constraints. |
source | string or null | yes | No further constraints. |
created_at | string (date-time) | yes | ISO 8601 time in UTC |
created | boolean | yes | No further constraints. |
{
"id": "id_8f3a2c1d",
"kind": "email",
"value": "abc123",
"reason": "unsubscribe",
"source": "abc123",
"created_at": "2026-10-17T12:00:00.000Z",
"created": true
}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/blocklist" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"value": "abc123"
}'const res = await fetch(`https://api.coldagentai.com/v1/blocklist`, {
method: 'POST',
body: JSON.stringify({
"value": "abc123"
}),
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/blocklist/{id}
Removes a manual or imported entry. Entries recording an unsubscribe, complaint or opt-out request are protected and answer 403.
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. |
removed | true | yes | No further constraints. |
{
"id": "id_8f3a2c1d",
"removed": 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/blocklist/$ENTRY_ID" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/blocklist/${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();