Skip to main content
The Campaigns REST API is the server-side surface of the product. It covers transactional sends, template and channel look-ups, and admin operations on the notification feed. All endpoints share a single response envelope, a single error envelope, and a single authentication model.

Base URL

Regions: 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 under data:
Paginated lists return an array under data and cursor metadata under meta:
Pagination is cursor-based. Pass 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 under error:
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.