Send an approved WhatsApp template to a number. Customer and conversation will be created if not
already existing.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Number of WhatsApp user to send template to. Must be in E.164 format. Only required when not using the customer_id field.
4915224367929
Name of WhatsApp user. Customer will be created with that name if not already exists.
If you already have a customer ID, you can directly use it here instead of providing a phone number. This is useful when dealing with WhatsApp customers that have not shared a phone number yet. When you do not have the phone number, you would not be able to send a template to that customer. When customer ID is given, the phone number field is ignored.
ID of WhatsApp agent to use for sending the message.
Name of template to send.
Language of template to send.
"de"
Array of objects describing how to fill variables within the specified template.
If there are no variables, set this to an empty array.
Format is defined by WhatsApp. See components under https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates
Optional key-value object with the values for placeholders when used to fill variables from components.
Used as is, no delimiters are added.
Example: when you call this endpoint and one of your components contains a custom placeholder like $my_custom_placeholder$,
you can then fill this object with {"$my_custom_placeholder$": "my value"}.
Indicates if the message was sent by an automation. A "new-agent-message" webhook will be triggered if set to true.
Optional ID of bot which will be assigned to the conversation. Existing running bot will be stopped and a new one will be started.
Optional ID of user the conversation will be assigned to.
Optional ID of folder the conversation will be assigned to.
Optional ID of tag the profile will be assigned to.
Optional ID of tag the profile will be assigned to.
Response
Success
A message within a conversation.