Docs
API reference Getting started Changelog

Changelog

Every change to the external API surface. The rules governing what may appear here are in Versioning & compatibility.

Entries are added in the same change that makes them true. A changelog written afterwards is a changelog with holes in it.


Unreleased#

Webhook subscriptions

  • New: subscribe a URL to an event type and receive every such event in the account as a signed JSON POST: POST /api/webhooks/subscriptions, DELETE /api/webhooks/subscriptions/{id}, and GET /api/webhooks/subscriptions. Nine event types to start, listed by GET /api/webhooks/event-types, with a sample delivery for each at /event-types/{type}/sample. email.clicked and email.opened are sent only for clicks and opens judged human. An endpoint that answers 410 Gone is unsubscribed. See Webhook subscriptions.
  • New scopes: webhooks:read and webhooks:write.
  • A subscription can carry a filter: one form (form_id), one list or segment (segment_key), or one sequence (sequence_id). A filter naming a form, list or sequence that doesn’t exist is refused; one whose target is deleted later reads back with filter_target_missing: true.
  • contact.unsubscribed is not sent for an admin’s bulk suppress.
  • Changed: contact.updated lists in changes only the fields whose value changed, and a write that changed nothing is not sent. Bounces, complaints and refusals by the receiving server are no longer sent as contact.updated.
  • Changed: contact.created is sent when a contact becomes one you can email. A pending contact (an unconfirmed double opt-in, an identify call) sends it when it is activated, not when it is created. Contacts released from a pool or activated in bulk don’t send it, as for imports.

Tags and list membership by email

  • New: POST /api/contacts/tags adds and removes tags on one contact, found by email or contact_id, without replacing the rest. See Add or remove tags.
  • Changed: POST and DELETE /api/segments/{segment_key}/members accept emails as well as contact_ids. Addresses that match no contact come back in not_found. A body that names nobody now returns 400 MISSING_IDS. Sending emails with an API key needs contacts:read too, and a dynamic segment returns 400 NOT_STATIC whatever the body holds.
  • POST /api/contacts/tags serializes concurrent changes to one contact, so two calls at once both take effect.

Template version history and duplicate

  • New: every change to a template keeps the state it replaced: an edit, a PUT, a markdown replace or a restore. The latest 50 per template are kept. List them with GET /api/templates/{id}/versions, read one with /versions/{version} (or as markdown with /versions/{version}/export), and bring one back with POST /versions/{version}/restore. See Version history.
  • New: content blocks keep the same history: GET /api/blocks/{id}/versions, /versions/{version}, /versions/{version}/export and POST /versions/{version}/restore. Switching active records no version and a restore leaves it alone. GET and PUT /api/blocks/{id} carry version.
  • New: POST /api/blocks/{id}/duplicate copies a block into a new one that starts inactive, so it doesn’t join the source’s rotate slots until you switch it on.
  • New: POST /api/templates/{id}/duplicate copies a template (bodies, subject, tags, every schema) into a new one.
  • New: single-template responses (GET /api/templates/{id}, /schema, create, update, import, duplicate, restore) carry version, the template’s current number in its history. /schema also returns content_hash, a fingerprint of the format and bodies. A broadcast’s content.template_snapshot records both (template_version, template_content_hash) for the copy it was built from, so a layout-only template change (same fields) can be told from a rename or no change.

Snippets

  • New: snippets, values your emails share, read at send time as {{ snippets.<set>.<field> }}, in the body and the subject. A set’s snippets (entries, in the API) take turns: one value, the next upcoming by a date, or on a schedule. /api/snippets manages sets and entries (templates:read / templates:write); PUT /api/snippets/{set}/entries upserts for sync jobs (matching on a field you name with match_field), and GET /api/snippets/resolve shows what an email sent at a given moment would read.
  • Changed: a custom field can no longer be created with the key snippets. It’s the Liquid root of snippets, which a custom field of that name would never be able to override.
  • Changed: the Liquid date filter prints a timestamp that carries a numeric UTC offset (2026-10-22T13:00:00-04:00) in that offset instead of converting it to UTC. Timestamps ending in Z and date-only values print as before.

Email library

  • Changed: every /api/messages/{id} endpoint takes the entry’s slug as well as its UUID. Before, only GET did; the others answered 404 for a slug.

Release pools

  • New: contacts can wait in a release pool, set up in the app when importing. A pooled contact is pending, so it isn’t mailed or billed. Creating, upserting or updating it through the API makes it active and releases it from its pool, the same as for any pending contact. Nothing in the request changes. See Contacts held in a release pool.
  • Fixed: an update by id (PUT /api/contacts/:id) that activates a pending contact with no stage now gives it the default stage when the call sends none, as create and upsert already did. An import that activates one does the same (the file’s stage, then the import’s stage for new contacts, then the default).
  • New: a pooled contact isn’t enrolled in sequences. POST /api/contacts/bulk with enroll_in_sequence reports them as pooled (present only when there are some).

Contact upsert matches on external_id

  • New: PUT /api/contacts with an external_id and on_email_change finds the contact by that id first, and updates its email when it differs. Without on_email_change it matches on email, as before, so existing integrations are unaffected. See Matching on external_id.
  • New: when the email changes, an existing contact with the new address and no external_id is merged in, with its history. The old address is kept: events (POST /api/events with contact_email) and website identification naming it are credited to the contact. The response carries email_change. The request accepts on_email_change (start_fresh | keep_unsubscribes) and email_change_reason.
  • Changed: POST /api/contacts/merge now moves the secondaries’ history (events, lists, sends, notes, enrollments) to the survivor instead of deleting it. Links already sent to a merged contact (unsubscribe, preference center, view in browser, tracking) keep working and act on the survivor.
  • New error: 409 EXTERNAL_ID_CONFLICT, when the email belongs to a contact with a different external_id, or (email matching) the external_id you sent belongs to a different contact. error.details names that contact. It is also returned by sequence enrollment, where the same case used to be 400 INVALID_FIELD_VALUE (or a 500).
  • Fixed: an error a request could not recover from sometimes came back as a 500 quoting the database (for example duplicate key value violates unique constraint). Contact conflicts are now 409s with a code. Any other server error is {"error":{"code":"INTERNAL","message":"Internal server error"}}, with nothing from the database.
  • Changed: request-validation failures (a missing or mistyped field) now use the standard error shape, {"error":{"code":"VALIDATION","message":"body must have required property 'email'"}}. The framework’s other 4xx errors (a wrong content type, a body too large) use the same shape with their own code in error.code. They used to come back in the web framework’s own shape, {"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"…"}. If you branch on that top-level code, read error.code instead. Rate-limit 429s are unchanged.

Identity token

  • Changed: the identity_token returned with ?include_identity_token=true on PUT /api/contacts and POST /api/contacts is now encrypted, so the contact id it carries can’t be read from it. It was a signed but readable value. Treat it as opaque: set it as the _emt cookie as before. Tokens issued earlier keep working.

Template check (dry run)

  • New: POST /api/templates/check (templates:read). Send a template in the markdown import format as { "markdown": … }, optionally with a binding to render. It runs the same validation as POST /api/templates/import, adds lints for emails converted from another platform, and returns { valid, errors[], warnings[], template, preview } with a fix on every issue. Always 200; nothing is saved.
  • Template and block saves (JSON and markdown import) now reject two spellings that previously saved but could never render correctly, with 400: INVALID_PARAM_PATH ({{ param.hero.url }} — a parameter is used whole) and INVALID_ITEM_REFERENCE ({{item:x.y}} or a filter on a section row field). .size, .first and .last on a parameter remain valid. Only a body the request rewrites is checked, so existing content never blocks a rename.
  • Fixed: {{ unsubscribe_url }} and {{ view_in_browser_url }} written with spaces (Liquid’s usual spelling) now become working links. They used to be replaced only when written exactly {{unsubscribe_url}}, so the spaced form sent an empty link — in templates and in HTML/MJML broadcasts.
  • Fixed: PUT /api/templates/{id}/import now clears a body the file omits. An HTML file replacing an MJML template used to keep the old MJML, which kept sending.

Seed lists: which bounces retire a seed

  • A seed address is now retired (status: "retired", status_reason: "hard_bounce") only when a bounce says its mailbox no longer exists: an unknown user or a domain that has been retired. A temporary DNS or routing failure doesn’t retire it. A bounce where the provider refused the mail (a block, a blocklist or a policy rejection) leaves the address active, even when the sending service labels it a hard bounce. Previously every hard bounce retired the address, so a block retired mailboxes that were still there. See Seed lists.

API key prefix

  • New keys start with radar_ instead of sonar_. The rest of the format is unchanged: 64 lowercase hex characters after the prefix. Existing sonar_ keys and older unprefixed keys keep working. If your code checks a key’s shape, accept radar_ too. See Authentication.

Deleting a list or segment that is in use

  • DELETE /api/segments/{segment_key} now refuses a list or segment that something still depends on, with 409 SEGMENT_IN_USE. error.details.usage names what holds it: broadcasts not yet finished that include or exclude it, non-archived sequences, automations, non-archived forms that add submitters to it, and other segments built on it. Previously the delete went through and the list silently left those audiences and steps.

Custom field usage

  • GET /api/settings/custom-fields/{id}/usage reports two more sources, sequences and forms, and automations now also counts the field-change trigger. Deleting a field those reference returns 409 FIELD_IN_USE, as it already did for segments.

Server-side identify

  • POST /api/contacts and PUT /api/contacts accept session_id — the visitor’s _emts tracking cookie, passed through by your server. The same call links that browser to the contact: its earlier anonymous page views are attributed, and so is everything after, with no client-side identify(). The response carries session_link (linked / already_linked, or failed when the contact was written but the link could not be made — the call still succeeds; repeat it with PUT). "session_id": null is the same as leaving it out.
  • A session_id the tracking script did not issue for this account is refused with 400 INVALID_SESSION_ID, before anything is written.
  • stage_id_if_new now also applies when the upsert activates a pending contact that has no stage (one a browser identify() created before your server’s call). Previously it was ignored there and the contact took the workspace’s default stage.

Seed lists

  • New: GET /api/seed-lists, GET /api/seed-lists/{id}/seeds, PUT /api/seed-lists/{id}/seeds (replace a list’s addresses) and POST /api/seed-lists/{id}/seeds/changes (add or remove addresses), with the new scopes seed-lists:read and seed-lists:write. Both writes accept dry_run=true, refuse an update that would leave fewer than half the list with 409 LARGE_CHANGE unless allow_large_change=true, and are safe to retry. See Seed lists.
  • PUT /api/seed-lists/{id}/seeds and POST /api/seed-lists/{id}/seeds/changes refuse a list connected to its vendor in Settings (Warmy) with 409 VENDOR_MANAGED: such a list updates itself from the vendor, and a change made through the API would be undone by the next update.
  • New: broadcasts accept and return seed_mode (none | include). With include, the seed lists attached to the broadcast’s senders get one copy each, sent alongside the broadcast and kept out of its counts and reports.

Contact stages

  • GET /api/settings/stages gains is_default — the stage a contact lands in when nothing else names one.
  • A contact created without stage_id or stage_id_if_new now gets the account’s default stage. It is applied when the contact becomes active, so a pending contact (an anonymous identify(), an unconfirmed double opt-in) still reports stage_id: null until it is activated.
  • Breaking: a stage_id that does not name a stage this account owns is now refused with 400 INVALID_FIELD_VALUE on POST /api/contacts, PUT /api/contacts, PUT /api/contacts/:id and the bulk stage actions. A deleted stage previously surfaced as an unhandled 500 (a foreign-key violation), which is indistinguishable from an outage and so invited clients to retry a permanent error. A stage belonging to another account previously succeeded silently — the foreign key only checks that the id exists. Both now report the same code.
  • Breaking: POST /api/contacts/bulk with action: "update_field", field: "stage_id" and value: null is now rejected with INVALID_FIELD. It previously cleared the stage. Every active contact has a stage; move them to a different one instead.
  • Bulk stage changes now apply the customer/prospect score reset that single-contact updates already applied. change_stage, update_field, CSV import and contact merge previously skipped it.

1.0.0#

The first release, and the point at which the compatibility contract starts applying. Everything in this reference is covered by it from here on: an endpoint will not be removed, a field will not be renamed or retyped, and a break — if one is ever genuinely necessary — ships as v2 on its own prefix rather than as a change to this surface.

There is nothing else in this entry, because there is nothing before it. The next entry will describe a real change.