Replies API reference

Read replies from every mailbox in one list, mark a category, write an answer with AI and send it. 4 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/repliesreadList replies (unibox)
PATCH /v1/replies/{id}/categorywriteMark a reply category
POST /v1/replies/{id}/draftwriteDraft an answer to a reply with AI
POST /v1/replies/{id}/sendwriteSend 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

FieldTypeRequiredDescription
category"interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked"noNo further constraints.
campaign_idstringnoat least 1 characters
limitintegerno1 to 100
cursorstringno0 to 500 characters

Response

FieldTypeRequiredDescription
dataarray of objectyesNo further constraints.
data[].idstringyesNo further constraints.
data[].mailbox_idstringyesNo further constraints.
data[].campaign_idstring or nullyesNo further constraints.
data[].lead_idstring or nullyesNo further constraints.
data[].send_idstring or nullyesNo further constraints.
data[].fromstringyesNo further constraints.
data[].subjectstringyesNo further constraints.
data[].textstringyesNo further constraints.
data[].received_atstring (date-time)yesISO 8601 time in UTC
data[].category"interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked"yesNo further constraints.
data[].category_source"rule" or "classifier" or "manual"yesmeeting_booked only ever comes from manual
data[].hidden_textbooleanyesTrue 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_atstring (date-time)yesISO 8601 time in UTC
next_cursorstring or nullyesNo 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, 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/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

FieldTypeRequiredDescription
idstringyesat least 1 characters

Request body

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

FieldTypeRequiredDescription
category"interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked"yesNo further constraints.
Request example
{
  "category": "interested"
}

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
mailbox_idstringyesNo further constraints.
campaign_idstring or nullyesNo further constraints.
lead_idstring or nullyesNo further constraints.
send_idstring or nullyesNo further constraints.
fromstringyesNo further constraints.
subjectstringyesNo further constraints.
textstringyesNo further constraints.
received_atstring (date-time)yesISO 8601 time in UTC
category"interested" or "not_interested" or "out_of_office" or "unsubscribe" or "bounce" or "other" or "meeting_booked"yesNo further constraints.
category_source"rule" or "classifier" or "manual"yesmeeting_booked only ever comes from manual
hidden_textbooleanyesTrue 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_atstring (date-time)yesISO 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, unauthorized, forbidden, unknown_product, 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 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

FieldTypeRequiredDescription
idstringyesat least 1 characters

Request body

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

FieldTypeRequiredDescription
instructionstringnoWhat the answer should do, in your words. 1 to 500 characters.
Request example
{
  "instruction": "abc123"
}

Response

FieldTypeRequiredDescription
subjectstringyesNo further constraints.
bodystringyesNo further constraints.
modelstringyesNo further constraints.
Response example, HTTP 200
{
  "subject": "Quick question about your onboarding",
  "body": "abc123",
  "model": "abc123"
}

Errors

invalid_input, unauthorized, forbidden, unknown_product, 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
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

FieldTypeRequiredDescription
idstringyesat least 1 characters

Request body

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

FieldTypeRequiredDescription
bodystringyes1 to 50000 characters.
subjectstringno1 to 500 characters.
Request example
{
  "body": "abc123"
}

Response

FieldTypeRequiredDescription
senttrueyesNo further constraints.
tostringyesNo further constraints.
message_idstringyesNo further constraints.
provider_message_idstring or nullyesNo further constraints.
Response example, HTTP 200
{
  "sent": true,
  "to": "maya@example.com",
  "message_id": "id_8f3a2c1d",
  "provider_message_id": "id_8f3a2c1d"
}

Errors

invalid_input, unauthorized, forbidden, unknown_product, 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
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();
Replies