What is this?
The workspace API can list your email templates and send one directly, for example an order confirmation or a change log. Each address is found or created as a contact, and the email is sent through your channel’s sender. No campaign is created, and the email is saved in that contact’s email conversation in the Inbox.Calls use a workspace API key and count against your plan’s monthly email quota. See Developer Portal for keys, and the API reference for the exact endpoints.
What can I do here?
- List email templates and the variables each one takes
- Send an email template to one address or a comma-separated list of up to 25
- Fill the template’s own variables with values you send
- Send a list value (such as a change log) as one item per line
How to use it
1. Find the variables a template takes
List email templates returns your templates and, for each, its variables with a source:
A variable with a fallback, such as
{{order_id|your order}}, may be left out. One without a fallback must be sent.
2. Send the template
Name the template withtemplateName (case doesn’t matter) or templateId (use it when two templates share a name). Send to an address, or several separated by commas, semicolons or spaces. Optional fields: subject (replaces the template’s subject, one line up to 300 characters), senderId (a sender; the channel default when omitted) and channelId. Pass variables as a JSON object:
- A value is a text, a number, true/false, or a list of those
- A list becomes one item per line. Set
listStyletoplain,numbers(1. A) ordots(• A) - A text can contain line breaks, each shown as a new row
recipients, sent, skipped, failed) and a result for each address: sent with a messageId, or skipped with a reason such as suppressed.
Limits
Troubleshooting / Technical Notes
- An address came back
skipped. It unsubscribed, bounced, complained, or hasn’t confirmed a double opt-in. The sender’s daily limit and the monthly quota also apply. - “variables must be a JSON object.” In a GET request, pass variables as JSON text, for example
{"order_id":"A-1001"}. - A required variable is missing. The call names the variables the template needs. Send them or add a fallback in the template.
- “…is not a variable name you can send.” Names use letters, numbers,
_and.;unsubscribe_urlis filled by the platform. - The unsubscribe link is always included.

