Messages API
Allows you to send messages containing text, image, audio, video or file to Contacts in the platform.
Requests
POST /v1/message/sendContent/{contactId}Sample POST Text Request
curl -X POST \
https://app.heyx.io/api/v1/message/sendContent/{contactId} \
-H 'Authorization: Bearer {channel_token}' \
-H 'Content-Type: application/json' \
-d '{
"body": [
{
"type" : "text",
"text" : "Hi there"
}
]
}'Response - Success (HTTP status → 200)
Send Attachment Request
Sample POST Send Image Request
Response - Success (HTTP status → 200)
Sample POST Send Video Request
Response - Success (HTTP status → 200)
Sample POST Send Audio Request
Response - Success (HTTP status → 200)
Sample POST Send File Request
Response - Success (HTTP status → 200)
Send Text with Quick Replies Request
Response - Success (HTTP status → 200)
Error Codes
Unauthorized (HTTP Status → 401)
Too Many Requests (HTTP Status → 429)
Method Not Allowed (HTTP Status → 405)
General (HTTP Status → 403)
Unmatched File Type (HTTP Status → 403)
Limitations
Last updated