SendMessagingMessageRequest

A reply on a conversation, to its number: free text (body), on WhatsApp an approved template
(contentSid + contentVariables), or a practice text template (templateCode),
exactly one. The annotations are the Messaging Service's own, so a bad request is refused before it
is sent.

Properties

Name Type Description
channelenum

Sms WhatsApp

Sms WhatsApp

bodystring

The text: required unless a template is sent, and empty when one is. At most 1,600 characters
for SMS and 4,000 for WhatsApp.

The text: required unless a template is sent, and empty when one is. At most 1,600 characters
for SMS and 4,000 for WhatsApp.

contentSidstring

WhatsApp only: the template to send (HX followed by 32 hex digits, from the WhatsApp templates
list). A template may be sent at any time; free text only within 24 hours of the recipient's
last WhatsApp message.

WhatsApp only: the template to send (HX followed by 32 hex digits, from the WhatsApp templates
list). A template may be sent at any time; free text only within 24 hours of the recipient's
last WhatsApp message.

contentVariablesobject

The template's variables by name ({"1": "Friday"}); any left out take the template's
defaults. Only with contentSid.

The template's variables by name ({"1": "Friday"}); any left out take the template's
defaults. Only with contentSid.

templateCodestring

A practice text template's code (from the templates list): its body is rendered on the server for
this recipient with the client's details as they are now, and sent as free text, so on WhatsApp only
within the 24-hour window. The template must allow the channel.

A practice text template's code (from the templates list): its body is rendered on the server for
this recipient with the client's details as they are now, and sent as free text, so on WhatsApp only
within the 24-hour window. The template must allow the channel.

JSON Example

{
  "channel": "Sms",
  "body": "string",
  "contentSid": "string",
  "contentVariables": {},
  "templateCode": "string"
}

Used By Operations