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 pathScopeWhat it does
GET /v1/blocklistreadList the do-not-contact list
POST /v1/blocklistwriteAdd an address or domain to the do-not-contact list
DELETE /v1/blocklist/{id}writeRemove 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

FieldTypeRequiredDescription
kind"email" or "domain"noNo further constraints.
limitintegerno1 to 100
cursorstringno0 to 500 characters

Response

FieldTypeRequiredDescription
dataarray of objectyesNo further constraints.
data[].idstringyesNo further constraints.
data[].kind"email" or "domain"yesNo further constraints.
data[].valuestringyesNo further constraints.
data[].reason"unsubscribe" or "bounce" or "complaint" or "opt_out_request" or "manual" or "import"yesNo further constraints.
data[].sourcestring or nullyesNo further constraints.
data[].created_atstring (date-time)yesISO 8601 time in UTC
next_cursorstring or nullyesNo further constraints.
Response example, HTTP 200
{
  "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
curl "https://api.coldagentai.com/v1/blocklist" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
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.

FieldTypeRequiredDescription
valuestringyesAn email address or a domain; a domain also covers its subdomains 1 to 320 characters.
kind"email" or "domain"noNo further constraints.
reason"manual" or "opt_out_request" or "unsubscribe" or "complaint"noNo further constraints.
Request example
{
  "value": "abc123"
}

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
kind"email" or "domain"yesNo further constraints.
valuestringyesNo further constraints.
reason"unsubscribe" or "bounce" or "complaint" or "opt_out_request" or "manual" or "import"yesNo further constraints.
sourcestring or nullyesNo further constraints.
created_atstring (date-time)yesISO 8601 time in UTC
createdbooleanyesNo further constraints.
Response example, HTTP 200
{
  "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
curl -X POST "https://api.coldagentai.com/v1/blocklist" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "abc123"
}'
JavaScript (fetch)
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

FieldTypeRequiredDescription
idstringyesat least 1 characters

Response

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