Message APIs
Send Message
This endpoint is used to send a message to a chat
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header
Example:
"{{orgPhone}}"
Body
application/json
Response
200 - application/json
Text Message / Media Message / Reply Message / Poll Message
The response object contains the queue_id
and the position
in the queue
You can check the status of the sent message in the queue using the /queue/jobs
endpoint
The queue_id
can also be mapped in the message object against the sent_message_id