Send Message
Send message to customer on a specific channel
Authorizations
Authentication is done via apikey
provided for your account
Include the following in your request header
apikey: "your_apikey_here"
Body
SendMessage model used as request body for sending messages
whatsapp
For channel whatsapp -> E.164 format without leading +
text
, image
, document
, audio
, video
, location
, sticker
, contacts
, template
, richTemplate
, buttonTemplate
Content of the message.
type text
- contains text content of the message
type image
,document
, audio
, video
, sticker
- contains the file URL
type location
- contains latitude and longitude in the format <latitude>:<longitude>
type template
, richTemplate
, buttonTemplate
, contacts
- field is NOT used
1 - 4096
Describes the specified image
, video
or document
media. Do not use with audio
media.
1 - 1024
Template ID
mandatory for message type template
, richTemplate
and buttonTemplate
Template placeholder values in the same order as in the template.
mandatory for message type template
, richTemplate
and buttonTemplate
Template Language
Language is defaulted to en
(English), if not provided
mandatory for message type template
, richTemplate
and buttonTemplate
only if the template is not in default language en
If the customer (recipient) needs to be assigned to an agent
Contacts array for message type contacts