Messages
Send a message
You can send a message from a Conversation app to a contact associated with that app. If the recipient is not associated with an existing contact, a new contact will be created.
The message is added to the active conversation with the contact if a conversation already exists. If no active conversation exists a new one is started automatically.
You can find all of your IDs and authentication credentials on the Sinch Customer Dashboard.
post/v1/projects/{project_id}/messages:send
Request body
Example request
{
"app_id": "{APP_ID}",
"channel_priority_order": [
"WHATSAPP"
],
"message": {
"card_message": {
"choices": [
{
"call_message": {
"phone_number": "+15551231234",
"title": "Message text"
}
}
]
}
},
"queue": "NORMAL_PRIORITY",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "WHATSAPP"
}
]
}
}
}