Compliance API reference

The postal address and sender identity every campaign email carries, and the public unsubscribe routes a recipient reaches from a message. 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/account/compliancereadPostal address and sender identity
PUT /v1/account/compliancewriteSet the postal address and sender identity
GET /unsubscribe/{token}publicUnsubscribe confirmation page
POST /unsubscribe/{token}publicUnsubscribe (RFC 8058 one-click and confirmed)

#GET /v1/account/compliance

Returns the postal address and sender identity printed in the footer of every campaign email.

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

Response

FieldTypeRequiredDescription
postal_addressobject or nullyesPrinted in the footer of every campaign email (CAN-SPAM). Campaigns cannot start without it.
postal_address.line1stringyes1 to 200 characters.
postal_address.line2string or nullno0 to 200 characters.
postal_address.citystringyes1 to 100 characters.
postal_address.regionstring or nullno0 to 100 characters.
postal_address.postal_codestring or nullno0 to 20 characters.
postal_address.countrystringyesNo further constraints.
senderobject or nullyesWho the footer says the email is from.
sender.company_namestringyes1 to 200 characters.
sender.sender_namestring or nullno0 to 200 characters.
sender.reply_tovalue or nullnoNo further constraints.
ready_to_sendbooleanyesTrue when a postal address is set.
updated_atstring (date-time) or nullyesNo further constraints.
Response example, HTTP 200
{
  "postal_address": {
    "line1": "abc123",
    "line2": "abc123",
    "city": "abc123",
    "region": "abc123",
    "postal_code": "abc123",
    "country": "US"
  },
  "sender": {
    "company_name": "Example",
    "sender_name": "Example",
    "reply_to": {}
  },
  "ready_to_send": true,
  "updated_at": "2026-10-17T12:00:00.000Z"
}

Errors

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/account/compliance" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/account/compliance`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();

#PUT /v1/account/compliance

Sets the physical postal address that CAN-SPAM requires in every commercial email, and optionally the sender identity shown with it. Send either or both; a part you omit stays as it is. A campaign cannot start until the postal address is set.

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
postal_addressobjectnoNo further constraints.
postal_address.line1stringyes1 to 200 characters.
postal_address.line2string or nullno0 to 200 characters.
postal_address.citystringyes1 to 100 characters.
postal_address.regionstring or nullno0 to 100 characters.
postal_address.postal_codestring or nullno0 to 20 characters.
postal_address.countrystringyesNo further constraints.
senderobjectnoNo further constraints.
sender.company_namestringyes1 to 200 characters.
sender.sender_namestring or nullno0 to 200 characters.
sender.reply_tostring or nullno0 to 320 characters.
Request example
{
  "postal_address": {
    "line1": "abc123",
    "city": "abc123",
    "country": "US"
  },
  "sender": {
    "company_name": "Example"
  }
}

Response

FieldTypeRequiredDescription
postal_addressobject or nullyesPrinted in the footer of every campaign email (CAN-SPAM). Campaigns cannot start without it.
postal_address.line1stringyes1 to 200 characters.
postal_address.line2string or nullno0 to 200 characters.
postal_address.citystringyes1 to 100 characters.
postal_address.regionstring or nullno0 to 100 characters.
postal_address.postal_codestring or nullno0 to 20 characters.
postal_address.countrystringyesNo further constraints.
senderobject or nullyesWho the footer says the email is from.
sender.company_namestringyes1 to 200 characters.
sender.sender_namestring or nullno0 to 200 characters.
sender.reply_tovalue or nullnoNo further constraints.
ready_to_sendbooleanyesTrue when a postal address is set.
updated_atstring (date-time) or nullyesNo further constraints.
Response example, HTTP 200
{
  "postal_address": {
    "line1": "abc123",
    "line2": "abc123",
    "city": "abc123",
    "region": "abc123",
    "postal_code": "abc123",
    "country": "US"
  },
  "sender": {
    "company_name": "Example",
    "sender_name": "Example",
    "reply_to": {}
  },
  "ready_to_send": true,
  "updated_at": "2026-10-17T12:00:00.000Z"
}

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 PUT "https://api.coldagentai.com/v1/account/compliance" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "postal_address": {
    "line1": "abc123",
    "city": "abc123",
    "country": "US"
  },
  "sender": {
    "company_name": "Example"
  }
}'
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/account/compliance`, {
  method: 'PUT',
  body: JSON.stringify({
    "postal_address": {
      "line1": "abc123",
      "city": "abc123",
      "country": "US"
    },
    "sender": {
      "company_name": "Example"
    }
  }),
  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();

#GET /unsubscribe/{token}

A page that asks the recipient to confirm unsubscribing. It changes nothing by itself.

Scope: public. No API key is needed. Success: HTTP 200.

Path parameters

FieldTypeRequiredDescription
tokenstringyes1 to 1024 characters

Response

HTTP 200 with a text/html body, not JSON.

Errors

invalid_input, internal_error, provider_unavailable. Every error uses the single format.

Rate limits

Never refused for load: this operation is not rate limited. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/unsubscribe/$TOKEN"
JavaScript (fetch)
const token = 'abc123';
const res = await fetch(`https://api.coldagentai.com/unsubscribe/${token}`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();

#POST /unsubscribe/{token}

Unsubscribes the recipient the token was issued for: the address is suppressed for the sender account and the rest of its sequences are cancelled. Accepts the List-Unsubscribe=One-Click form body that mail clients send, or the confirmation form. Idempotent. A token that was altered or does not verify answers 400 and changes nothing.

Scope: public. No API key is needed. Success: HTTP 200.

Path parameters

FieldTypeRequiredDescription
tokenstringyes1 to 1024 characters

Response

HTTP 200 with a text/html body, not JSON.

Errors

invalid_input, internal_error, provider_unavailable. Every error uses the single format.

Rate limits

Never refused for load: this operation is not rate limited. See Rate limits.

Examples

cURL
curl -X POST "https://api.coldagentai.com/unsubscribe/$TOKEN"
JavaScript (fetch)
const token = 'abc123';
const res = await fetch(`https://api.coldagentai.com/unsubscribe/${token}`, {
  method: 'POST',
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();
Compliance