Link a WhatsApp template to a workflow
Changed onLink a WhatsApp template to a workflow or action: a transactional message, a one-time send, an automation action, or an API-triggered broadcast. The workflow or action needs to send WhatsApp messages.
Linking copies the template's current content, recipient, and sender to the workflow right away. You can link a template before you submit it to Meta. After you submit the template, publish it to push it to the workflow, and wait until its status is APPROVED before you start sending.
You can only link a template to one workflow or action at a time. If you try to link a template to a workflow or action that's already linked to a different message, the request fails with a 409 unless you pass "force": true. The force parameter replaces (and unlinks) the other message.
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/design_studio/whatsapp/{id}/link
- Authnone declared
Path parameters
The UUID of the WhatsApp template.
Request body
Example request
{
"target": {
"type": "campaign_action",
"action_id": 42
},
"force": false
}Response
WhatsApp template linked
Example response
{
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"template_id": 987654,
"target": {
"type": "campaign_action",
"action_id": 42
}
}Changes
- info
endpoint added
- info