WhatsApp
Create a WhatsApp template
Changed onThis endpoint creates a WhatsApp template in Design Studio. Creating a template doesn't send anything to Meta. Before you can send the template to your audience, you need to submit it to Meta for approval, and Meta needs to approve it.
You write the template's content as WhatsApp markup, a set of elements that match the components you can add in Design Studio. See WhatsApp building blocks for every element and the rules the markup follows.
Make sure the template's content, category, and language are right before you submit it. After you submit a template, you can't change those fields unless Meta rejects it.
post/v1/design_studio/whatsapp
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/design_studio/whatsapp
- Authnone declared
Request body
Example request
{
"name": "Order shipped",
"category": "UTILITY",
"language": "en_US",
"recipient": "{{customer.phone}}",
"sender_id": 4,
"content": "<x-whatsapp><x-wa-body>Hi {{customer.first_name}}, your order has shipped.</x-wa-body></x-whatsapp>"
}Response
WhatsApp template created
Example response
{
"whatsapp": {
"name": "Order shipped",
"category": "UTILITY",
"language": "en_US",
"status": "APPROVED",
"recipient": "{{customer.phone}}",
"sender_id": 4,
"content": "<x-whatsapp><x-wa-body>Hi {{customer.first_name}}, your order has shipped.</x-wa-body></x-whatsapp>",
"created": 1790000000,
"updated": 1790000000
}
}Changes
- info
endpoint added
- info