Create a message template
Create a message template. It always lands in draft: nothing is sent with it and no registration is opened until you submit it for review.
In order to get access to this endpoint, contact our support team.
name is required, and the template always lands in draft: nothing is sent with it and no registration is opened until you submit it for review.
The variables of the template are read from the {{placeholder}} names in your variants, so you never set them yourself. The same goes for status and region_statuses, which follow the review and the per-country registrations. While the template is a draft, every country in region_statuses reads draft.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The name of the template.
"Acme Receipts"
What the template is used for. Defaults to transactional.
transactional, marketing The channels the template should be delivered over.
sms, rcs, whatsapp, viber, zalo, telegram The wording of the message, one entry per locale.
The locale used when the recipient's own locale has no variant. Defaults to en.
"en"
The countries the template should work in.
Response
Created
The identifier of the template, to pass as template_id when sending a message.
"template_01k8ap1btqf5r9fq2c8ax5fhc9"
What the template is used for. Possible values are:
transactional- A message triggered by an action of the recipient.marketing- A promotional message, subject to marketing rules.
transactional, marketing The name of the template.
"Acme Receipts"
Where the template stands in the approval flow. Possible values are:
draft- Yours to edit. Nothing is sent with it yet.pending- Submitted, and waiting on our review and on the per-country registrations.ready- Approved and usable in every country you asked for.rejected- Refused. Contact support for the reason.
draft, pending, ready, rejected The channels the template can be delivered over.
sms, rcs, whatsapp, viber, zalo, telegram The placeholder names found in the variants, to fill in when sending.
The wording of the message, one entry per locale.
The locale used when the recipient's own locale has no variant.
"en"
The countries the template works in, with the monthly volume recorded for each.
The readiness of the template per country, keyed by ISO 3166-1 alpha-2 country code.
The date and time when the template was created.
"2024-01-01T12:00:00Z"