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 path | Scope | What it does |
|---|---|---|
GET /v1/account/compliance | read | Postal address and sender identity |
PUT /v1/account/compliance | write | Set the postal address and sender identity |
GET /unsubscribe/{token} | public | Unsubscribe confirmation page |
POST /unsubscribe/{token} | public | Unsubscribe (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
| Field | Type | Required | Description |
|---|---|---|---|
postal_address | object or null | yes | Printed in the footer of every campaign email (CAN-SPAM). Campaigns cannot start without it. |
postal_address.line1 | string | yes | 1 to 200 characters. |
postal_address.line2 | string or null | no | 0 to 200 characters. |
postal_address.city | string | yes | 1 to 100 characters. |
postal_address.region | string or null | no | 0 to 100 characters. |
postal_address.postal_code | string or null | no | 0 to 20 characters. |
postal_address.country | string | yes | No further constraints. |
sender | object or null | yes | Who the footer says the email is from. |
sender.company_name | string | yes | 1 to 200 characters. |
sender.sender_name | string or null | no | 0 to 200 characters. |
sender.reply_to | value or null | no | No further constraints. |
ready_to_send | boolean | yes | True when a postal address is set. |
updated_at | string (date-time) or null | yes | No further constraints. |
{
"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 "https://api.coldagentai.com/v1/account/compliance" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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.
| Field | Type | Required | Description |
|---|---|---|---|
postal_address | object | no | No further constraints. |
postal_address.line1 | string | yes | 1 to 200 characters. |
postal_address.line2 | string or null | no | 0 to 200 characters. |
postal_address.city | string | yes | 1 to 100 characters. |
postal_address.region | string or null | no | 0 to 100 characters. |
postal_address.postal_code | string or null | no | 0 to 20 characters. |
postal_address.country | string | yes | No further constraints. |
sender | object | no | No further constraints. |
sender.company_name | string | yes | 1 to 200 characters. |
sender.sender_name | string or null | no | 0 to 200 characters. |
sender.reply_to | string or null | no | 0 to 320 characters. |
{
"postal_address": {
"line1": "abc123",
"city": "abc123",
"country": "US"
},
"sender": {
"company_name": "Example"
}
}Response
| Field | Type | Required | Description |
|---|---|---|---|
postal_address | object or null | yes | Printed in the footer of every campaign email (CAN-SPAM). Campaigns cannot start without it. |
postal_address.line1 | string | yes | 1 to 200 characters. |
postal_address.line2 | string or null | no | 0 to 200 characters. |
postal_address.city | string | yes | 1 to 100 characters. |
postal_address.region | string or null | no | 0 to 100 characters. |
postal_address.postal_code | string or null | no | 0 to 20 characters. |
postal_address.country | string | yes | No further constraints. |
sender | object or null | yes | Who the footer says the email is from. |
sender.company_name | string | yes | 1 to 200 characters. |
sender.sender_name | string or null | no | 0 to 200 characters. |
sender.reply_to | value or null | no | No further constraints. |
ready_to_send | boolean | yes | True when a postal address is set. |
updated_at | string (date-time) or null | yes | No further constraints. |
{
"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 -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"
}
}'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
| Field | Type | Required | Description |
|---|---|---|---|
token | string | yes | 1 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 "https://api.coldagentai.com/unsubscribe/$TOKEN"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
| Field | Type | Required | Description |
|---|---|---|---|
token | string | yes | 1 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 -X POST "https://api.coldagentai.com/unsubscribe/$TOKEN"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();