Templates
Create a new template
Creates a new message template with header, body, footer, and buttons. The template can be submitted for review immediately or saved as draft for later submission.
post/v3/templates
Headers
Idempotency-Keystring
Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
x-profile-idstring uuid
Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
Request body
Example request
{
"category": "MARKETING",
"language": "en_US",
"definition": {
"header": null,
"body": {
"multiChannel": {
"type": null,
"template": "Hello {{0:variable}}! Welcome to {{1:variable}}.",
"variables": [
{
"id": 0,
"name": "name",
"type": "variable",
"props": {
"variableType": "text",
"sample": "John",
"regex": null,
"url": null,
"shortUrl": null,
"alt": null,
"mediaType": null
}
},
{
"id": 1,
"name": "company",
"type": "variable",
"props": {
"variableType": "text",
"sample": "SentDM",
"regex": null,
"url": null,
"shortUrl": null,
"alt": null,
"mediaType": null
}
}
]
},
"sms": null,
"whatsapp": null,
"rcs": null
},
"footer": null,
"buttons": null,
"definitionVersion": "1.0",
"authenticationConfig": null
},
"creation_source": null,
"submit_for_review": false,
"sandbox": false
}Response
Template created successfully