Wire up transactional email

Send a receipt or confirmation from your backend, on your brand.

Transactional email is a one-off message a person is expecting: a receipt, a password reset, a shipping update. Its footer has no unsubscribe link, and it is not checked against marketing consent, because the person needs it.

Before you start

You need a verified sending domain and an API key with the transactional:send scope, created under Settings, API Keys.

1. Create it

Under Transactional, choose New transactional email. Give it a name, a Key such as receipt, and a subject. The key is how your backend refers to it, so keep it stable. See the transactional overview.

To have an event send it, tick Send automatically on an event and enter the event name. Otherwise leave it unticked and send it by API call.

2. Design it

Pombo opens the new template in the editor. Build it like any other template, with merge tags for the parts that change per send. Which tags to use depends on how it's sent:

  • By API call, the values you pass in variables are the only values the email has. "variables": { "amount": "$49.00" } fills {{ amount }}.
  • By event, the event's properties are under event, so {{ event.amount }}, and the contact's own fields, like {{ first_name }}, are there too.

If one template needs to work both ways, use {{ event.* }} tags and nest your API values under event: "variables": { "event": { "amount": "$49.00" } }.

3. Send it

By API call, from your backend, with an API key that has the transactional:send scope:

POST /api/v1/transactional_emails      scope: transactional:send
{
  "template": "receipt",
  "to": "[email protected]",
  "from": "[email protected]",
  "variables": { "amount": "$49.00", "plan": "Team" }
}

template is the key from step 1. to doesn't need to be a contact. from must be an address on a verified sending domain. A 202 means the email is queued, not delivered. The template's page in Pombo shows this call filled in with its own key and tags, ready to copy.

By event, post the event instead, and Pombo sends the email to that event's contact. A sequence and a transactional template can both listen to the same event and both run. See sending a transactional email and events.

4. Send a test

If you use an AI agent, ask it to preview the template with sample data first, then with values missing. Nothing is sent. See merge tags.

Then send it to your own address, the same way your backend will, and check the rendered result, the From address, and the merge data.

5. Go live

Call it from the real code path. Each transactional email's page under Transactional lists its recent sends and their delivery status.

What you have now

One transactional email wired up. Repeat for each message type: reset, receipt, shipping, invite. For the full API surface, see the REST API reference.

Something unclear or missing? Tell us.