API reference
Campaigns
Store contacts with their consent basis, tags, and custom fields, organize them into lists with hosted double opt-in signup forms, welcome emails, and public newsletter sites, target segments, import and export CSV files, and send, test, and schedule broadcasts with merge tags, per-list one-click unsubscribe, pre-send checks, bot-filtered open and click reports, and per-recipient outcomes.
No operations match this filter.
/contactsList contacts
Newest-first contacts with consent evidence, tags, engagement, and the lists they are subscribed to. Filter by `list_id`, `status` (`subscribed`, `pending`, `unsubscribed`, `bounced`, `complained`, or `dormant`), `query` (email or name substring; `*` is a wildcard on the email, as in `*@example.com`), `tag`, `source` (`form`, `api`, or `import`), signup time (`after`, `before`), or `segment_id`. Engagement counts come from open and click tracking: opens are estimates (privacy proxies and security scanners load images on their own, and requests that look automated are left out), never proof that someone read a message. A dormant contact stopped opening, did not answer a list-cleanup email, and no longer gets broadcasts until it engages again.
curl https://sendhq.cc/api/v1/contacts \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "ct_…",
"email": "ada@example.net",
"name": "Ada Lovelace",
"fields": {
"plan": "pro"
},
"status": "subscribed",
"consent": {
"source": "api",
"basis": "Ticked the newsletter box at checkout on acme.com",
"importId": null,
"optedInAt": "2026-10-25T12:00:00.000Z",
"confirmedAt": null,
"ip": null,
"userAgent": null
},
"unsubscribedAt": null,
"dormant": false,
"dormantAt": null,
"engagement": {
"sent": 4,
"opens": 3,
"clicks": 1,
"lastSentAt": "2026-10-30T09:00:00.000Z",
"lastOpenedAt": "2026-10-30T09:12:00.000Z",
"lastClickedAt": "2026-10-30T09:13:00.000Z",
"sendsSinceEngaged": 0
},
"country": "GB",
"tags": [
"VIP"
],
"lists": [
"lst_…"
],
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}
],
"count": 1,
"total": 1
}/contactsAdd a contact with its consent basis
Add one contact. A subscribed contact (the default) requires `consent_basis`: how this person agreed to receive your email. Use `status: "unsubscribed"` to record an opt-out. Addresses already suppressed or unsubscribed from the workspace are stored with that status, never as subscribed. Optional `tags` (up to 50, each up to 60 characters) are attached to the new contact. Returns 409 when the email already exists.
curl https://sendhq.cc/api/v1/contacts \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"ada@example.net","name":"Ada Lovelace","fields":{"plan":"pro"},"tags":["VIP"],"list_ids":["lst_…"],"consent_basis":"Ticked the newsletter box at checkout on acme.com"}'{
"id": "ct_…",
"email": "ada@example.net",
"name": "Ada Lovelace",
"fields": {
"plan": "pro"
},
"status": "subscribed",
"consent": {
"source": "api",
"basis": "Ticked the newsletter box at checkout on acme.com",
"importId": null,
"optedInAt": "2026-10-25T12:00:00.000Z",
"confirmedAt": null,
"ip": null,
"userAgent": null
},
"unsubscribedAt": null,
"dormant": false,
"dormantAt": null,
"engagement": {
"sent": 4,
"opens": 3,
"clicks": 1,
"lastSentAt": "2026-10-30T09:00:00.000Z",
"lastOpenedAt": "2026-10-30T09:12:00.000Z",
"lastClickedAt": "2026-10-30T09:13:00.000Z",
"sendsSinceEngaged": 0
},
"country": "GB",
"tags": [
"VIP"
],
"lists": [
"lst_…"
],
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/contacts/bulkTag, move, unsubscribe, or delete many contacts at once
Apply one `action` to up to 10,000 contacts: the IDs in `contact_ids`, or every contact matching `filter` (the same filters as GET /contacts). Actions: `tag` and `untag` (with `tags`), `add_to_list` and `remove_from_list` (with `list_id`), `unsubscribe`, and `delete`. Adding to a list mirrors each contact's status, so nobody is resubscribed. `delete` is permanent and requires `confirm_count` equal to the number of contacts it would delete; without it the API returns 409 with that `count`. IDs from another workspace are ignored.
curl https://sendhq.cc/api/v1/contacts/bulk \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"tag","tags":["october"],"filter":{"list_id":"lst_…","status":"subscribed"}}'{
"ok": true,
"action": "tag",
"count": 120
}/contacts/exportExport contacts as CSV
A CSV file of up to 100,000 contacts matching the same filters as GET /contacts, in the column layout the importer reads, so it imports back unchanged: `email`, `name`, `status` (`dormant` for dormant contacts), `tags` (separated by `;`), `signed_up_at`, `source`, `consent`, `opens`, `clicks`, `last_opened_at`, then up to 50 custom fields.
curl https://sendhq.cc/api/v1/contacts/export \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-o contacts.csvemail,name,status,tags,signed_up_at,source,consent,opens,clicks,last_opened_at,plan
ada@example.net,Ada Lovelace,subscribed,VIP;beta,2026-10-25T12:00:00.000Z,api,Ticked the newsletter box at checkout on acme.com,3,1,2026-10-30T09:12:00.000Z,pro
/contacts/:idRetrieve a contact by ID or email
Retrieve a contact by ID or email
curl https://sendhq.cc/api/v1/contacts/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "ct_…",
"email": "ada@example.net",
"name": "Ada Lovelace",
"fields": {
"plan": "pro"
},
"status": "subscribed",
"consent": {
"source": "api",
"basis": "Ticked the newsletter box at checkout on acme.com",
"importId": null,
"optedInAt": "2026-10-25T12:00:00.000Z",
"confirmedAt": null,
"ip": null,
"userAgent": null
},
"unsubscribedAt": null,
"dormant": false,
"dormantAt": null,
"engagement": {
"sent": 4,
"opens": 3,
"clicks": 1,
"lastSentAt": "2026-10-30T09:00:00.000Z",
"lastOpenedAt": "2026-10-30T09:12:00.000Z",
"lastClickedAt": "2026-10-30T09:13:00.000Z",
"sendsSinceEngaged": 0
},
"country": "GB",
"tags": [
"VIP"
],
"lists": [
"lst_…"
],
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/contacts/:idUpdate a contact's name, fields, or tags, or unsubscribe it
Change `name`, merge `fields` (a null value removes a field), change tags (`tags` replaces the whole set; `add_tags` and `remove_tags` change it), or set `status` to `unsubscribed`. A contact can never be resubscribed through the API: only the recipient can, by confirming a signup form, which clears their earlier unsubscribe from that list and from the workspace but never a bounce or complaint suppression.
curl https://sendhq.cc/api/v1/contacts/id_value \
-X PATCH \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Ada King","fields":{"plan":"team"},"add_tags":["beta"],"remove_tags":["trial"]}'{
"id": "ct_…",
"email": "ada@example.net",
"name": "Ada Lovelace",
"fields": {
"plan": "pro"
},
"status": "subscribed",
"consent": {
"source": "api",
"basis": "Ticked the newsletter box at checkout on acme.com",
"importId": null,
"optedInAt": "2026-10-25T12:00:00.000Z",
"confirmedAt": null,
"ip": null,
"userAgent": null
},
"unsubscribedAt": null,
"dormant": false,
"dormantAt": null,
"engagement": {
"sent": 4,
"opens": 3,
"clicks": 1,
"lastSentAt": "2026-10-30T09:00:00.000Z",
"lastOpenedAt": "2026-10-30T09:12:00.000Z",
"lastClickedAt": "2026-10-30T09:13:00.000Z",
"sendsSinceEngaged": 0
},
"country": "GB",
"tags": [
"VIP"
],
"lists": [
"lst_…"
],
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/contacts/:idDelete a contact and its list memberships
Removes the contact, its memberships, and its tags. Suppressions and recorded unsubscribes are kept, so a deleted address still cannot be mailed if it is added again.
curl https://sendhq.cc/api/v1/contacts/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/contact-importsImport contacts from CSV
Import up to 5,000 rows (5 MB) per request. The header row needs an `email` column; `name` (or `first_name` and `last_name`), `status`, and `tags` (separated by `;` or `|`) are recognized and other columns become custom fields. `consent_basis` is required and is recorded on every new contact. Optional `tags` are added to every accepted row. Rows whose status says unsubscribed import as unsubscribed. Existing contacts keep their status; set `update_existing` to merge names and fields. Duplicate rows are skipped and invalid rows are reported by line.
curl https://sendhq.cc/api/v1/contact-imports \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"csv":"email,name,plan,tags\nada@example.net,Ada Lovelace,pro,VIP;beta\n","list_id":"lst_…","consent_basis":"Newsletter signups exported from Mailchimp (double opt-in)","tags":["imported"],"update_existing":false}'{
"id": "imp_…",
"listId": "lst_…",
"consentBasis": "Newsletter signups exported from Mailchimp (double opt-in)",
"totalRows": 1,
"accepted": 1,
"created": 1,
"existing": 0,
"skipped": 0,
"invalid": 0,
"errors": [
{
"line": 3,
"reason": "invalid email address"
}
],
"tags": [
"VIP",
"beta",
"imported"
],
"createdAt": "2026-10-25T12:00:00.000Z"
}/contact-importsList recent contact imports
List recent contact imports
curl https://sendhq.cc/api/v1/contact-imports \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "imp_…",
"listId": "lst_…",
"consentBasis": "Newsletter signups exported from Mailchimp (double opt-in)",
"totalRows": 1,
"accepted": 1,
"skipped": 0,
"invalid": 0,
"createdAt": "2026-10-25T12:00:00.000Z"
}
],
"count": 1
}/tagsList contact tags with how many contacts carry each
The workspace's tags, most used first (up to 500). Tags are free text: they are created by tagging a contact and disappear when no contact carries them.
curl https://sendhq.cc/api/v1/tags \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"tag": "VIP",
"count": 42
}
],
"count": 1
}/contact-fieldsList custom contact field definitions
Defined custom fields with their label and type (`text`, `number`, or `date`). Definitions label fields in the dashboard, make merge tags such as `{{fields.plan}}` known to the pre-send checks, and type segment conditions. Contacts can still carry values for keys that are not defined.
curl https://sendhq.cc/api/v1/contact-fields \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"key": "plan",
"label": "Plan",
"type": "text",
"createdAt": "2026-11-01T12:00:00.000Z"
}
],
"count": 1,
"types": [
"text",
"number",
"date"
]
}/contact-fields/:keyDefine or change a custom contact field
Create or update the field `key` (a lowercase letter, then up to 39 of a-z, 0-9, and `_`). `type` is `text` (default), `number`, or `date`. Built-in merge tags (`email`, `name`, `first_name`, `last_name`, `fields`, `unsubscribe_url`) cannot be used. A workspace may define 50 fields.
curl https://sendhq.cc/api/v1/contact-fields/key_value \
-X PUT \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"Plan","type":"text"}'{
"key": "plan",
"label": "Plan",
"type": "text",
"createdAt": "2026-11-01T12:00:00.000Z"
}/contact-fields/:keyDelete a custom field definition
Removes the definition only. Values already stored on contacts are kept. Returns 404 when the field is not defined.
curl https://sendhq.cc/api/v1/contact-fields/key_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/segmentsList saved segments with live counts
Saved segments, newest first, each with `count`: the subscribed, non-dormant contacts in the whole workspace that match now. `fields` lists every condition field and the operators it accepts. A broadcast with a segment sends to the members of its list that match.
curl https://sendhq.cc/api/v1/segments \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "seg_…",
"name": "Engaged pro customers",
"match": "all",
"conditions": [
{
"field": "name",
"op": "is_set",
"value": null
},
{
"field": "fields.plan",
"op": "equals",
"value": "pro"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
],
"count": 120,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z"
}
],
"count": 1,
"fields": {
"tag": [
"has",
"not_has"
],
"list": [
"in",
"not_in"
],
"status": [
"is",
"is_not"
],
"source": [
"is",
"is_not"
],
"email": [
"contains",
"not_contains",
"ends_with"
],
"name": [
"is_set",
"not_set"
],
"signed_up": [
"before",
"after",
"in_last_days",
"not_in_last_days"
],
"opened": [
"in_last_days",
"not_in_last_days",
"ever",
"never"
],
"clicked": [
"in_last_days",
"not_in_last_days",
"ever",
"never"
],
"opens": [
"gte",
"lte"
],
"sends_without_open": [
"gte",
"lte"
],
"country": [
"is",
"is_not"
],
"field": [
"equals",
"not_equals",
"contains",
"gt",
"lt",
"before",
"after",
"is_set",
"not_set"
]
}
}/segmentsSave a segment
Save up to 20 `conditions` joined by `match` (`all`, the default, or `any`). Each condition is `{ field, op, value }`: `tag` (has, not_has), `list` (in, not_in a list ID), `status` (is, is_not, including `dormant`), `source` (is, is_not), `email` (contains, not_contains, ends_with), `name` (is_set, not_set), `signed_up` (before, after a date; in_last_days, not_in_last_days), `opened` and `clicked` (in_last_days, not_in_last_days, ever, never), `opens` and `sends_without_open` (gte, lte), `country` (is, is_not a two-letter code), and custom fields as `fields.<key>` or `{ field: "field", key }` (equals, not_equals, contains, gt, lt, before, after, is_set, not_set). Opened and clicked use estimated, bot-filtered engagement. A workspace may have 200 segments.
curl https://sendhq.cc/api/v1/segments \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Engaged pro customers","match":"all","conditions":[{"field":"fields.plan","op":"equals","value":"pro"},{"field":"opened","op":"in_last_days","value":90}]}'{
"id": "seg_…",
"name": "Engaged pro customers",
"match": "all",
"conditions": [
{
"field": "name",
"op": "is_set",
"value": null
},
{
"field": "fields.plan",
"op": "equals",
"value": "pro"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
],
"count": 120,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z"
}/segments/previewCount and sample the contacts that match unsaved conditions
Evaluate `match` and `conditions` without saving them: the number of subscribed, non-dormant contacts that match and up to five of them.
curl https://sendhq.cc/api/v1/segments/preview \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"match":"any","conditions":[{"field":"tag","op":"has","value":"VIP"},{"field":"clicked","op":"in_last_days","value":30}]}'{
"count": 42,
"sample": [
{
"id": "ct_…",
"email": "ada@example.net",
"name": "Ada Lovelace",
"fields": {
"plan": "pro"
},
"status": "subscribed",
"consent": {
"source": "api",
"basis": "Ticked the newsletter box at checkout on acme.com",
"importId": null,
"optedInAt": "2026-10-25T12:00:00.000Z",
"confirmedAt": null,
"ip": null,
"userAgent": null
},
"unsubscribedAt": null,
"dormant": false,
"dormantAt": null,
"engagement": {
"sent": 4,
"opens": 3,
"clicks": 1,
"lastSentAt": "2026-10-30T09:00:00.000Z",
"lastOpenedAt": "2026-10-30T09:12:00.000Z",
"lastClickedAt": "2026-10-30T09:13:00.000Z",
"sendsSinceEngaged": 0
},
"country": "GB",
"tags": [
"VIP"
],
"lists": [
"lst_…"
],
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}
]
}/segments/:idRetrieve a segment and its live count
Retrieve a segment and its live count
curl https://sendhq.cc/api/v1/segments/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "seg_…",
"name": "Engaged pro customers",
"match": "all",
"conditions": [
{
"field": "name",
"op": "is_set",
"value": null
},
{
"field": "fields.plan",
"op": "equals",
"value": "pro"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
],
"count": 120,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z"
}/segments/:idRename a segment or change its conditions
Change `name`, `match`, or `conditions` (which replaces the whole list). Broadcasts that use the segment pick up the change when they start sending.
curl https://sendhq.cc/api/v1/segments/id_value \
-X PATCH \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conditions":[{"field":"fields.plan","op":"equals","value":"pro"},{"field":"opened","op":"in_last_days","value":60}]}'{
"id": "seg_…",
"name": "Engaged pro customers",
"match": "all",
"conditions": [
{
"field": "name",
"op": "is_set",
"value": null
},
{
"field": "fields.plan",
"op": "equals",
"value": "pro"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
],
"count": 120,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z"
}/segments/:idDelete a segment
Returns 409 while a sending or scheduled broadcast uses the segment. Contacts are not affected.
curl https://sendhq.cc/api/v1/segments/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/listsList contact lists with member counts
List contact lists with member counts
curl https://sendhq.cc/api/v1/lists \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "lst_…",
"name": "Product updates",
"description": "Monthly news from Acme",
"form": {
"enabled": true,
"from": "Acme <news@example.com>",
"redirectUrl": "https://example.com/thanks",
"url": "https://sendhq.cc/subscribe/lst_…"
},
"counts": {
"subscribed": 0,
"pending": 0,
"unsubscribed": 0
},
"welcome": {
"enabled": true,
"subject": "Welcome to Product updates, {{first_name | friend}}",
"html": "<p>Thanks for subscribing.</p>",
"content": null
},
"site": {
"enabled": true,
"slug": "acme-updates",
"title": "Acme product updates",
"description": "Monthly news from Acme",
"accent": "#0a7d4f",
"url": "https://sendhq.cc/n/acme-updates"
},
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}
],
"count": 1
}/listsCreate a list with an optional signup form, welcome email, and newsletter site
Create a list. Set `form_enabled` to publish a hosted double opt-in signup form at `form.url`; `form_from` is the sender (on a verified domain) of the confirmation email, and `redirect_url` is an optional https page to show after confirming. `welcome` ({ enabled, subject, and html, markdown, or a block document in content }) sends one welcome email, from `form_from`, when someone confirms. `site` ({ enabled, slug, title, description, accent }) publishes a public newsletter site at `https://sendhq.cc/n/<slug>` with a signup form, every issue sent with `web.enabled`, and an RSS feed at `/n/<slug>/feed.xml`; it needs the signup form on, and a slug that is reserved or taken returns 409. A workspace may have 100 lists.
curl https://sendhq.cc/api/v1/lists \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Product updates","description":"Monthly news from Acme","form_enabled":true,"form_from":"Acme <news@example.com>","redirect_url":"https://example.com/thanks","welcome":{"enabled":true,"subject":"Welcome to Product updates, {{first_name | friend}}","markdown":"Thanks for subscribing. Here is what to expect."},"site":{"enabled":true,"slug":"acme-updates","title":"Acme product updates","accent":"#0a7d4f"}}'{
"id": "lst_…",
"name": "Product updates",
"description": "Monthly news from Acme",
"form": {
"enabled": true,
"from": "Acme <news@example.com>",
"redirectUrl": "https://example.com/thanks",
"url": "https://sendhq.cc/subscribe/lst_…"
},
"counts": {
"subscribed": 0,
"pending": 0,
"unsubscribed": 0
},
"welcome": {
"enabled": true,
"subject": "Welcome to Product updates, {{first_name | friend}}",
"html": "<p>Thanks for subscribing.</p>",
"content": null
},
"site": {
"enabled": true,
"slug": "acme-updates",
"title": "Acme product updates",
"description": "Monthly news from Acme",
"accent": "#0a7d4f",
"url": "https://sendhq.cc/n/acme-updates"
},
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/lists/:idRetrieve a list
Retrieve a list
curl https://sendhq.cc/api/v1/lists/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "lst_…",
"name": "Product updates",
"description": "Monthly news from Acme",
"form": {
"enabled": true,
"from": "Acme <news@example.com>",
"redirectUrl": "https://example.com/thanks",
"url": "https://sendhq.cc/subscribe/lst_…"
},
"counts": {
"subscribed": 0,
"pending": 0,
"unsubscribed": 0
},
"welcome": {
"enabled": true,
"subject": "Welcome to Product updates, {{first_name | friend}}",
"html": "<p>Thanks for subscribing.</p>",
"content": null
},
"site": {
"enabled": true,
"slug": "acme-updates",
"title": "Acme product updates",
"description": "Monthly news from Acme",
"accent": "#0a7d4f",
"url": "https://sendhq.cc/n/acme-updates"
},
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/lists/:idRename a list or change its signup form, welcome email, or site
Change any of the fields accepted when creating a list. Omitted fields, and omitted keys inside `welcome` and `site`, keep their current value.
curl https://sendhq.cc/api/v1/lists/id_value \
-X PATCH \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Product news","site":{"enabled":false}}'{
"id": "lst_…",
"name": "Product updates",
"description": "Monthly news from Acme",
"form": {
"enabled": true,
"from": "Acme <news@example.com>",
"redirectUrl": "https://example.com/thanks",
"url": "https://sendhq.cc/subscribe/lst_…"
},
"counts": {
"subscribed": 0,
"pending": 0,
"unsubscribed": 0
},
"welcome": {
"enabled": true,
"subject": "Welcome to Product updates, {{first_name | friend}}",
"html": "<p>Thanks for subscribing.</p>",
"content": null
},
"site": {
"enabled": true,
"slug": "acme-updates",
"title": "Acme product updates",
"description": "Monthly news from Acme",
"accent": "#0a7d4f",
"url": "https://sendhq.cc/n/acme-updates"
},
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/lists/:idDelete a list without deleting its contacts
Removes the list and its memberships. Returns 409 while a broadcast to the list is sending.
curl https://sendhq.cc/api/v1/lists/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/lists/:id/contactsAdd existing contacts to a list
Add up to 500 existing contacts by `contact_ids` or `emails`. Each membership mirrors the contact: subscribed contacts join subscribed, others join in their current state. Unknown references are returned in `notFound`.
curl https://sendhq.cc/api/v1/lists/id_value/contacts \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":["ada@example.net"]}'{
"listId": "lst_…",
"added": 1,
"notFound": [],
"list": {
"id": "lst_…",
"name": "Product updates",
"description": "Monthly news from Acme",
"form": {
"enabled": true,
"from": "Acme <news@example.com>",
"redirectUrl": "https://example.com/thanks",
"url": "https://sendhq.cc/subscribe/lst_…"
},
"counts": {
"subscribed": 0,
"pending": 0,
"unsubscribed": 0
},
"welcome": {
"enabled": true,
"subject": "Welcome to Product updates, {{first_name | friend}}",
"html": "<p>Thanks for subscribing.</p>",
"content": null
},
"site": {
"enabled": true,
"slug": "acme-updates",
"title": "Acme product updates",
"description": "Monthly news from Acme",
"accent": "#0a7d4f",
"url": "https://sendhq.cc/n/acme-updates"
},
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}
}/lists/:id/contacts/:contact_idRemove a contact from a list
Remove a contact from a list
curl https://sendhq.cc/api/v1/lists/id_value/contacts/contact_id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/broadcastsList broadcasts
List broadcasts
curl https://sendhq.cc/api/v1/broadcasts \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "bc_…",
"name": "October update",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}
],
"count": 1
}/broadcastsCreate a broadcast draft
Create a draft for one list: `from` on a verified domain, `subject`, optional `preview_text`, and content as `html` and/or `text`, `markdown`, a block document in `content`, or a published hosted `template` ({id or key, optional version_id}). Markdown and block content are rendered with the workspace design (newsletter settings). Raw content supports merge tags such as `{{first_name}}`, `{{fields.plan}}`, and fallbacks like `{{first_name | there}}`; HTML values are escaped. `audience` narrows who gets it: `segment_id` (only list members matching a segment), `limit` (at most this many people), and `order` (`signup`, or `engaged` for most engaged first). `tracking` turns open and click tracking on or off (both on by default). `web.enabled` publishes the issue on the list's newsletter site once it is sent. To send later, create the draft, then call POST /broadcasts/{id}/schedule; `scheduled_at` is not accepted here.
curl https://sendhq.cc/api/v1/broadcasts \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"October update","list_id":"lst_…","from":"Acme <news@example.com>","subject":"What's new in October, {{first_name | friend}}","preview_text":"Three new features and a roadmap peek","html":"<p>Hi {{first_name | there}},</p><p>Here's what shipped.</p>","audience":{"segment_id":"seg_…","order":"engaged","limit":1000},"tracking":{"opens":true,"clicks":true}}'{
"id": "bc_…",
"name": "October update",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/broadcasts/:idRetrieve a broadcast and its delivery totals
Retrieve a broadcast and its delivery totals
curl https://sendhq.cc/api/v1/broadcasts/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "bc_…",
"name": "October update",
"status": "sending",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z",
"totals": {
"queued": 0,
"sending": 0,
"sent": 0,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 0
}
}/broadcasts/:idEdit a draft broadcast
Change any field accepted when creating a broadcast. Only unscheduled drafts can be edited: a scheduled draft returns 409 until it is unscheduled.
curl https://sendhq.cc/api/v1/broadcasts/id_value \
-X PATCH \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"October product update","audience":{"limit":null}}'{
"id": "bc_…",
"name": "October update",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/broadcasts/:idDelete a draft broadcast
Deletes a draft, including a scheduled one. Sent and sending broadcasts cannot be deleted.
curl https://sendhq.cc/api/v1/broadcasts/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/broadcasts/:id/checksRun the pre-send checks for a broadcast
The review list the dashboard shows before sending: sender verification, subject, preview text, content, audience size, email size against Gmail's 102 KB clipping limit, postal address, merge tags without data or fallback, empty or shortened links, missing image descriptions, leftover placeholder text, spam-prone wording, an active subscription, and whether a test was sent. Each check has a `level` (`ok`, `warn`, or `block`); `ready` is false while any check blocks. Scheduling runs the same checks.
curl https://sendhq.cc/api/v1/broadcasts/id_value/checks \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ready": true,
"checks": [
{
"id": "from",
"level": "ok",
"label": "From address",
"detail": "Acme <news@example.com>",
"tab": "content"
}
],
"audience": {
"total": 1200,
"matching": 1200
}
}/broadcasts/:id/testSend a test copy of a draft
Sends a copy marked `[Test]` to up to 5 addresses in `to` (default: the saved test recipients, or the account email), with merge tags filled from `contact_id` or a sample contact. Test sends go through the normal send checks, never reach the list, and are limited to 100 a day per workspace. `remember: true` saves `to` as the default test recipients. Template broadcasts are tested from their template. Returns 201 with one result per address, or 422 when every address failed.
curl https://sendhq.cc/api/v1/broadcasts/id_value/test \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":["owner@example.com"],"contact_id":"ct_…","remember":true}'{
"data": [
{
"to": "owner@example.com",
"id": "em_…",
"status": "sent"
}
]
}/broadcasts/:id/scheduleSchedule a draft to send later
Sets `scheduled_at` (ISO 8601, at least a minute and at most a year ahead) on a draft. The pre-send checks and plan rules run now: a blocking check returns 422 with `checks`. The broadcast starts within about a minute of its time; if it can no longer send then (for example the sender lost verification), it returns to an unscheduled draft with the reason in `lastError`. A scheduled draft cannot be edited or sent now until it is unscheduled.
curl https://sendhq.cc/api/v1/broadcasts/id_value/schedule \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"scheduled_at":"2026-11-10T09:00:00.000Z"}'{
"id": "bc_…",
"name": "October update",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": "2026-11-10T09:00:00.000Z",
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/broadcasts/:id/unscheduleUnschedule a draft
Returns a scheduled draft to an editable, unscheduled draft. Returns 409 when it is not scheduled.
curl https://sendhq.cc/api/v1/broadcasts/id_value/unschedule \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "bc_…",
"name": "October update",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/broadcasts/:id/duplicateCopy a broadcast into a new draft
Creates a new draft named `<name> (copy)` with the same list, sender, content, audience, and tracking settings. Works for a broadcast in any state.
curl https://sendhq.cc/api/v1/broadcasts/id_value/duplicate \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "bc_…",
"name": "October update (copy)",
"status": "draft",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z"
}/broadcasts/:id/sendSend a broadcast to its audience
Snapshot the broadcast's audience (the list's subscribed, non-dormant members, narrowed by its segment and limit, most engaged first when `audience.order` is `engaged`) and send one message to each in the background. Every message goes through the normal send checks: verified domain, an active subscription (an unpaid workspace cannot send, including to the account email or a mailbox simulator), suppressions, unsubscribes, sender reputation, and daily and monthly limits, and carries one-click List-Unsubscribe headers that remove the recipient from this list only (the unsubscribe page also offers leaving all marketing email; receipts and other transactional mail are never blocked) and the postal address from newsletter settings. With tracking on, links are rewritten to signed SendHQ redirects and an open pixel is added; the unsubscribe link is never rewritten. Members that cannot be mailed are recorded as skipped. Each contact is sent at most once per broadcast. When a limit or a reputation pause stops delivery, the broadcast keeps `sending` and resumes after `nextAttemptAt`. A scheduled draft returns 409 until it is unscheduled. Returns 202.
curl https://sendhq.cc/api/v1/broadcasts/id_value/send \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "bc_…",
"name": "October update",
"status": "sending",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z",
"totals": {
"queued": 0,
"sending": 0,
"sent": 0,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 0
}
}/broadcasts/:id/send-moreSend a sent broadcast to more of its audience
Sends a sent or sending broadcast to up to `limit` more people in its audience who have not received it yet, in the broadcast's audience order: the rest of a limited audience, or people who joined the list since. The same send checks apply, and each contact still gets it at most once. Returns 202 with how many were `added`, or 422 when everyone in the audience already got it.
curl https://sendhq.cc/api/v1/broadcasts/id_value/send-more \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":500}'{
"added": 500,
"broadcast": {
"id": "bc_…",
"name": "October update",
"status": "sending",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z",
"totals": {
"queued": 0,
"sending": 0,
"sent": 0,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 0
}
}
}/broadcasts/:id/cancelCancel a draft or sending broadcast
Stops a broadcast: recipients not yet sent are marked skipped (`cancelled`). Messages already handed to the provider are not recalled.
curl https://sendhq.cc/api/v1/broadcasts/id_value/cancel \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "bc_…",
"name": "October update",
"status": "cancelled",
"listId": "lst_…",
"from": "Acme <news@example.com>",
"replyTo": null,
"subject": "What's new in October, {{first_name | friend}}",
"previewText": "Three new features and a roadmap peek",
"html": "<p>Hi {{first_name | there}},</p>",
"text": null,
"template": null,
"audience": {
"segmentId": null,
"order": "signup",
"limit": null
},
"tracking": {
"opens": true,
"clicks": true
},
"editor": "html",
"content": null,
"testSentAt": null,
"web": {
"enabled": false,
"slug": null,
"pinned": false,
"publishedAt": null
},
"scheduledAt": null,
"startedAt": null,
"completedAt": null,
"nextAttemptAt": null,
"lastError": null,
"createdAt": "2026-10-25T12:00:00.000Z",
"updatedAt": "2026-10-25T12:00:00.000Z",
"totals": {
"queued": 0,
"sending": 0,
"sent": 0,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 0
}
}/broadcasts/:id/recipientsList a broadcast's recipients, outcomes, and engagement
Per-recipient outcome (`queued`, `sending`, `sent`, `held`, `skipped` with a reason, or `failed` with the error), the email ID for delivery events, the inbox provider, and delivery, open, click, bounce, complaint, and unsubscribe times. Filter by `status`, by `activity` (`opened`, `clicked`, `not_opened`, `not_delivered`, `bounced`, `complained`, `unsubscribed`), or by an email substring in `query`. `include=links` (implied by `activity=clicked`) adds the links each recipient clicked. Opens are estimates and bot-filtered; they never prove that someone read the message.
curl https://sendhq.cc/api/v1/broadcasts/id_value/recipients \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"contactId": "ct_…",
"email": "ada@example.net",
"status": "sent",
"skipReason": null,
"emailId": "em_…",
"error": null,
"attempts": 1,
"sentAt": "2026-10-25T12:00:00.000Z",
"provider": "gmail",
"deliveredAt": "2026-10-25T12:00:02.000Z",
"openedAt": "2026-10-25T12:20:00.000Z",
"clickedAt": null,
"opens": 1,
"clicks": 0,
"bouncedAt": null,
"complainedAt": null,
"unsubscribedAt": null
}
],
"count": 1,
"totals": {
"queued": 0,
"sending": 0,
"sent": 0,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 0
}
}/broadcasts/:id/reportRetrieve a broadcast's engagement report
Delivery and engagement for a sending or sent broadcast: unique and total opens and clicks, bounces, complaints, and unsubscribes with rates in percent (open and click rates are over delivered messages), the same by inbox provider, clicks per link, first opens and clicks hour by hour, and the workspace's average over its previous five sent broadcasts. Opens and clicks that looked automated (security scanners, link previews, privacy prefetching, data-center networks) are counted in `machine` and left out of every other number, so opens remain an estimate. `remaining` is how many people in a limited audience have not been sent it yet. Returns 409 for a draft.
curl https://sendhq.cc/api/v1/broadcasts/id_value/report \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"stats": {
"sent": 1200,
"delivered": 1188,
"opened": 520,
"clicked": 140,
"bounced": 9,
"complained": 0,
"unsubscribed": 4,
"opens": 760,
"clicks": 210,
"rates": {
"delivery": 99,
"open": 43.77,
"click": 11.78,
"clickToOpen": 26.92,
"bounce": 0.75,
"complaint": 0,
"unsubscribe": 0.34
}
},
"providers": [
{
"provider": "gmail",
"label": "Gmail",
"sent": 700,
"delivered": 696,
"opened": 320,
"clicked": 90,
"bounced": 2,
"complained": 0,
"openRate": 45.98,
"clickRate": 12.93
}
],
"links": [
{
"position": 0,
"url": "https://example.com/changelog",
"uniqueClicks": 120,
"clicks": 180,
"share": 85.71
}
],
"timeline": [
{
"hour": "2026-10-30T09:00:00.000Z",
"opened": 210,
"clicked": 60
}
],
"average": {
"basedOn": 5,
"open": 41.2,
"click": 10.4,
"bounce": 0.8,
"unsubscribe": 0.3,
"delivery": 98.9
},
"machine": {
"opens": 310,
"clicks": 45
},
"tracking": {
"opens": true,
"clicks": true
},
"totals": {
"queued": 0,
"sending": 0,
"sent": 1200,
"held": 0,
"skipped": 0,
"failed": 0,
"total": 1200
},
"remaining": 0
}/campaigns/overviewRetrieve subscriber growth and recent broadcast performance
For the last `days` (7 to 365, default 30): active, dormant, and pending subscribers, how many joined and left, a daily subscriber series, and the six most recent sending or sent broadcasts with their open and click rates and the average of both.
curl https://sendhq.cc/api/v1/campaigns/overview \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"subscribers": {
"active": 1180,
"dormant": 20,
"pending": 6,
"joined": 140,
"left": 9
},
"series": [
{
"day": "2026-11-01",
"subscribers": 1175,
"joined": 6,
"left": 1
}
],
"recent": [
{
"id": "bc_…",
"name": "October update",
"subject": "What's new in October",
"status": "sent",
"startedAt": "2026-10-30T09:00:00.000Z",
"sent": 1200,
"openRate": 43.77,
"clickRate": 11.78
}
],
"averages": {
"openRate": 43.77,
"clickRate": 11.78
}
}/newsletter-settingsRetrieve newsletter settings
Workspace settings for broadcasts: the postal address added to every marketing email footer, the design (accent color, font, alignment) used to render Markdown and block content, list cleanup, and the default test recipients.
curl https://sendhq.cc/api/v1/newsletter-settings \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"postalAddress": "Acme Inc., 1 Main St, Springfield",
"design": {
"accentColor": "#0a7d4f",
"font": "sans",
"align": "left"
},
"cleanup": {
"enabled": true,
"afterSends": 6,
"quietDays": 90,
"subject": "Do you still want these emails?",
"body": "You haven't opened our emails in a while. If you'd still like to hear from us, click the button below. Otherwise we'll stop emailing you, no hard feelings.",
"from": null
},
"testRecipients": [
"owner@example.com"
]
}/newsletter-settingsChange newsletter settings
Change `postalAddress`, `design` ({ accentColor, font: sans, serif, or mono, align: left or center }), `cleanup`, or `testRecipients` (up to 5). Keys are camelCase. List cleanup is on by default: a subscriber who received `afterSends` broadcasts in a row without opening or clicking, and has not engaged for `quietDays`, gets one email asking whether to stay subscribed (`subject`, `body`, sent from `from` or the last broadcast's sender, paid plans only). A week later, anyone who did not click to stay becomes dormant: still on the list, but left out of broadcasts until they open or click again.
curl https://sendhq.cc/api/v1/newsletter-settings \
-X PATCH \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"postalAddress":"Acme Inc., 1 Main St, Springfield","design":{"accentColor":"#0a7d4f"},"cleanup":{"afterSends":8}}'{
"postalAddress": "Acme Inc., 1 Main St, Springfield",
"design": {
"accentColor": "#0a7d4f",
"font": "sans",
"align": "left"
},
"cleanup": {
"enabled": true,
"afterSends": 6,
"quietDays": 90,
"subject": "Do you still want these emails?",
"body": "You haven't opened our emails in a while. If you'd still like to hear from us, click the button below. Otherwise we'll stop emailing you, no hard feelings.",
"from": null
},
"testRecipients": [
"owner@example.com"
]
}/uploads/imagesUpload an image for email content
Upload one PNG, JPEG, GIF, or WebP image (up to 5 MB) as the raw request body with its `Content-Type`. Optional `filename` query parameter. The image is served publicly, with a long cache, from the returned `url` (`https://sendhq.cc/i/<id>`), so it keeps working in sent email; anyone with the URL can view it. 300 uploads or 300 MB per day.
curl https://sendhq.cc/api/v1/uploads/images \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: image/png" \
--data-binary @header.png{
"id": "img_….png",
"url": "https://sendhq.cc/i/img_….png",
"width": 1200,
"height": 630,
"size": 48231
}/uploads/imagesList recently uploaded images
The workspace's 60 most recent image uploads, newest first.
curl https://sendhq.cc/api/v1/uploads/images \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [
{
"id": "img_….png",
"url": "https://sendhq.cc/i/img_….png",
"width": 1200,
"height": 630,
"size": 48231,
"filename": "header.png",
"createdAt": "2026-11-01T12:00:00.000Z"
}
]
}