Base URL
us, eu, in. Replace {appId} with your application ID. See Setup & Authentication for credentials and headers.
Response envelope
Success
Single-entity responses wrap the resource underdata:
data and cursor metadata under meta:
affix, sentAt (or the configured sort field), and id from meta.next back into the next request to page forward.
Error envelope (canonical)
Every non-2xx response from the Campaigns service uses exactly this shape, wrapped undererror:
Unhandled internal errors fail closed; no stack trace or internal detail leaks:
Error code reference
Non-exhaustive. These are the codes a typical caller will encounter.Variable resolution
Within template content, variables are referenced with{{variableKey}} syntax (for example Hi {{user_name}}, your order #{{order_id}} shipped) and resolved at send-time.
For templated sends and campaign deliveries, three sources contribute to the final value substituted into channel content. Higher rows win:
If none of the three has a value, the token is left unresolved (
{{key}}) in the rendered output.