---
title: "Blocklist API reference"
url: "https://coldagentai.com/docs/api/blocklist.md"
canonical_url: "https://coldagentai.com/docs/api/blocklist"
last_updated: "2026-10-22"
type: "reference"
summary: "List, add and remove the addresses and domains that must never be emailed, the do-not-contact list of a ColdAgentAI account."
related: ["https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/api/leads.md", "https://coldagentai.com/docs/api/compliance.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Blocklist API reference

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

List, add and remove the addresses and domains that must never be emailed, the do-not-contact list of a ColdAgentAI account.

The do-not-contact list: addresses and domains that are never emailed. 3 operations.

## Operations

Authenticate as described in [Authentication](https://coldagentai.com/docs/authentication.md). Every operation below is generated from the [OpenAPI document](https://coldagentai.com/docs/openapi.md).

| 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. |

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`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### 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.

| 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. |

Request example:

```
{
  "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. |

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`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`payload_too_large`](https://coldagentai.com/docs/errors.md#payload_too_large), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### 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

| 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. |

Response example, HTTP 200:

```
{
  "id": "id_8f3a2c1d",
  "removed": true
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`unknown_product`](https://coldagentai.com/docs/errors.md#unknown_product), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### 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();
```

## Related

- [API reference](https://coldagentai.com/docs/api.md)
- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API errors](https://coldagentai.com/docs/errors.md)
- [Leads API reference](https://coldagentai.com/docs/api/leads.md)
- [Compliance API reference](https://coldagentai.com/docs/api/compliance.md)
