---
title: "Replies API reference"
url: "https://coldagentai.com/docs/api/replies.md"
canonical_url: "https://coldagentai.com/docs/api/replies"
last_updated: "2026-11-05"
type: "reference"
summary: "List replies from every mailbox in one inbox, mark a category, write an answer with AI and send it through the ColdAgentAI API."
related: ["https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/api/mailboxes.md", "https://coldagentai.com/docs/api/campaigns.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Replies 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 replies from every mailbox in one inbox, mark a category, write an answer with AI and send it through the ColdAgentAI API.

Read replies from every mailbox in one list, mark a category, write an answer with AI and send it. 4 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/replies` | read | List replies (unibox) |
| `PATCH /v1/replies/{id}/category` | write | Mark a reply category |
| `POST /v1/replies/{id}/draft` | write | Draft an answer to a reply with AI |
| `POST /v1/replies/{id}/send` | write | Send an answer to a reply |

## GET /v1/replies

Replies to your campaign emails across every mailbox, newest first, optionally filtered by category or campaign. Categories are assigned by fixed rules (out of office, unsubscribe requests and bounces) and by explicit marks; meeting_booked is only ever set by an explicit mark.

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

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | "interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked" | no | No further constraints. |
| `campaign_id` | string | no | at least 1 characters |
| `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[].mailbox_id` | string | yes | No further constraints. |
| `data[].campaign_id` | string or null | yes | No further constraints. |
| `data[].lead_id` | string or null | yes | No further constraints. |
| `data[].send_id` | string or null | yes | No further constraints. |
| `data[].from` | string | yes | No further constraints. |
| `data[].subject` | string | yes | No further constraints. |
| `data[].text` | string | yes | No further constraints. |
| `data[].received_at` | string (date-time) | yes | ISO 8601 time in UTC |
| `data[].category` | "interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked" | yes | No further constraints. |
| `data[].category_source` | "rule" or "classifier" or "manual" | yes | meeting_booked only ever comes from manual |
| `data[].hidden_text` | boolean | yes | True when the email has formatting that could hide text from its reader, so its text cannot be proven to be what a person sees. `text` is then empty, no AI categorises the reply or drafts an answer to it, and you should read it yourself in the mailbox. |
| `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",
      "mailbox_id": "id_8f3a2c1d",
      "campaign_id": "id_8f3a2c1d",
      "lead_id": "id_8f3a2c1d",
      "send_id": "id_8f3a2c1d",
      "from": "maya@example.com",
      "subject": "Quick question about your onboarding",
      "text": "abc123",
      "received_at": "2026-10-17T12:00:00.000Z",
      "category": "interested",
      "category_source": "rule",
      "hidden_text": true,
      "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/replies" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/replies`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## PATCH /v1/replies/{id}/category

Sets the category of a reply by an explicit mark, which is the only way to set meeting_booked. The lead status follows (interested, not_interested, meeting_booked, replied). Marking a reply unsubscribe opts the sender out and cancels their remaining sends.

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

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | at least 1 characters |

### Request body

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | "interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked" | yes | No further constraints. |

Request example:

```
{
  "category": "interested"
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | No further constraints. |
| `mailbox_id` | string | yes | No further constraints. |
| `campaign_id` | string or null | yes | No further constraints. |
| `lead_id` | string or null | yes | No further constraints. |
| `send_id` | string or null | yes | No further constraints. |
| `from` | string | yes | No further constraints. |
| `subject` | string | yes | No further constraints. |
| `text` | string | yes | No further constraints. |
| `received_at` | string (date-time) | yes | ISO 8601 time in UTC |
| `category` | "interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked" | yes | No further constraints. |
| `category_source` | "rule" or "classifier" or "manual" | yes | meeting_booked only ever comes from manual |
| `hidden_text` | boolean | yes | True when the email has formatting that could hide text from its reader, so its text cannot be proven to be what a person sees. `text` is then empty, no AI categorises the reply or drafts an answer to it, and you should read it yourself in the mailbox. |
| `created_at` | string (date-time) | yes | ISO 8601 time in UTC |

Response example, HTTP 200:

```
{
  "id": "id_8f3a2c1d",
  "mailbox_id": "id_8f3a2c1d",
  "campaign_id": "id_8f3a2c1d",
  "lead_id": "id_8f3a2c1d",
  "send_id": "id_8f3a2c1d",
  "from": "maya@example.com",
  "subject": "Quick question about your onboarding",
  "text": "abc123",
  "received_at": "2026-10-17T12:00:00.000Z",
  "category": "interested",
  "category_source": "rule",
  "hidden_text": true,
  "created_at": "2026-10-17T12:00:00.000Z"
}
```

### 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), [`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 PATCH "https://api.coldagentai.com/v1/replies/$REPLY_ID/category" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "category": "interested"
}'
```

JavaScript (fetch):

```
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/replies/${id}/category`, {
  method: 'PATCH',
  body: JSON.stringify({
    "category": "interested"
  }),
  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();
```

## POST /v1/replies/{id}/draft

Asks the language model for a short suggested answer. Nothing is sent and nothing is stored: review it, then send with POST /v1/replies/{id}/send. Refused for unsubscribe requests, bounces and out-of-office replies, for an email whose formatting could hide text from its reader, and while the account kill switch is on. 503 when no language model is configured on this server. Costs no credit; limited to 200 drafts per account per UTC day.

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

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | at least 1 characters |

### Request body

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `instruction` | string | no | What the answer should do, in your words. 1 to 500 characters. |

Request example:

```
{
  "instruction": "abc123"
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subject` | string | yes | No further constraints. |
| `body` | string | yes | No further constraints. |
| `model` | string | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "subject": "Quick question about your onboarding",
  "body": "abc123",
  "model": "abc123"
}
```

### 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), [`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), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). 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/replies/$REPLY_ID/draft" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "instruction": "abc123"
}'
```

JavaScript (fetch):

```
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/replies/${id}/draft`, {
  method: 'POST',
  body: JSON.stringify({
    "instruction": "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();
```

## POST /v1/replies/{id}/send

Sends your answer to the person who replied, from the mailbox that received the reply and in the same thread, with the compliance footer and unsubscribe headers. Refused while the kill switch is on, for unsubscribe requests and bounces, for anyone on the suppression list or who opted out, and until the account has a postal address.

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

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | at least 1 characters |

### Request body

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `body` | string | yes | 1 to 50000 characters. |
| `subject` | string | no | 1 to 500 characters. |

Request example:

```
{
  "body": "abc123"
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `sent` | true | yes | No further constraints. |
| `to` | string | yes | No further constraints. |
| `message_id` | string | yes | No further constraints. |
| `provider_message_id` | string or null | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "sent": true,
  "to": "maya@example.com",
  "message_id": "id_8f3a2c1d",
  "provider_message_id": "id_8f3a2c1d"
}
```

### 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), [`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), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). 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/replies/$REPLY_ID/send" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "abc123"
}'
```

JavaScript (fetch):

```
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/replies/${id}/send`, {
  method: 'POST',
  body: JSON.stringify({
    "body": "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();
```

## 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)
- [Mailboxes API reference](https://coldagentai.com/docs/api/mailboxes.md)
- [Campaigns API reference](https://coldagentai.com/docs/api/campaigns.md)
