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_ACTION",
"body": {
"message": "How can we help?"
},
"header": {
"message": "Hub Message"
},
"footer": {
"message": "Choose an option"
},
"attachments": [
{
"id": "1",
"title": "Visit our website",
"name": "URL",
"url": "https://www.hubmessage.io"
},
{
"id": "2",
"title": "Contact us",
"name": "CALL",
"phones": [
"5511999999999"
]
}
]
}
}
'{
"messageId": "wamid.HBgNNTU0NDk3MDUwNzg1FQIAERgSM0"
}{
"error": 401,
"message": "Unauthorized"
}Free messages
Send action buttons
Send messages with action buttons (URL and call)
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_ACTION",
"body": {
"message": "How can we help?"
},
"header": {
"message": "Hub Message"
},
"footer": {
"message": "Choose an option"
},
"attachments": [
{
"id": "1",
"title": "Visit our website",
"name": "URL",
"url": "https://www.hubmessage.io"
},
{
"id": "2",
"title": "Contact us",
"name": "CALL",
"phones": [
"5511999999999"
]
}
]
}
}
'{
"messageId": "wamid.HBgNNTU0NDk3MDUwNzg1FQIAERgSM0"
}{
"error": 401,
"message": "Unauthorized"
}Overview
Sends a message with action buttons to a contact. Thecontent.type field must be INTERACTIVE_ACTION.
Available button types:
- URL — Opens a link when clicked
- CALL — Calls a number when clicked
header and footer fields are optional.
This endpoint only works when the conversation window is open (24 hours).
Authorizations
Body
application/json