curl --request POST \
--url https://api.hubmessage.io/v1/channels/{channelId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": {
"identifier": "5511999999999"
},
"content": {
"type": "INTERACTIVE_BUTTON",
"body": {
"message": "How would you rate our service?"
},
"attachments": [
{
"id": "1",
"title": "Excellent"
},
{
"id": "2",
"title": "Good"
},
{
"id": "3",
"title": "Average"
}
]
}
}
'{
"messageId": "wamid.HBgNNTU0NDk3MDUwNzg1FQIAERgSM0"
}{
"error": 401,
"message": "Unauthorized"
}Free messages
Send text with buttons
Send text messages with quick reply buttons
POST
/
v1
/
channels
/
{channelId}
/
messages
curl --request POST \
--url https://api.hubmessage.io/v1/channels/{channelId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": {
"identifier": "5511999999999"
},
"content": {
"type": "INTERACTIVE_BUTTON",
"body": {
"message": "How would you rate our service?"
},
"attachments": [
{
"id": "1",
"title": "Excellent"
},
{
"id": "2",
"title": "Good"
},
{
"id": "3",
"title": "Average"
}
]
}
}
'{
"messageId": "wamid.HBgNNTU0NDk3MDUwNzg1FQIAERgSM0"
}{
"error": 401,
"message": "Unauthorized"
}Overview
Sends a text message with quick reply buttons. Thecontent.type field must be INTERACTIVE_BUTTON. The recipient can choose from the presented options.
Optionally, you can include an image or video with the message using the thumbnail and mimeType fields inside body.
This endpoint only works when the conversation window is open (24 hours).
Authorizations
Secret Key generated in the Hub Message Security panel
Path Parameters
Channel ID
Example:
"YOUR_CHANNEL_ID"
Body
application/json
Response
Message sent successfully
Sent message ID