Messages
Send a message
Envoie un message au destinataire via l’API Shortext
POST
/
messages
/
send
Copy
curl --request POST \
--url https://shortext.ny-corp.io/api/messages/send \
--header 'Content-Type: application/json' \
--data '{
"channel": "whatsapp",
"contact": {
"phone": "1234567890",
"profile": {
"lastname": "Yoan",
"firstname": "André",
"email": "celia@home.io",
"address": "Place to be",
"preferred_language": "en"
}
},
"from": "1234567890",
"message": {
"type": "text",
"content": {
"text": "Ceci est un message texte.",
"preview_url": true
}
}
}'
Copy
{
"status": "success",
"message_id": "abc123",
"recipient": {
"phone_number": "1234567890"
},
"data": {
"sent_at": "2024-10-05T10:01:00Z",
"delivered_at": "2024-10-05T10:05:00Z",
"read_at": "2024-10-05T10:07:00Z"
}
}
Body
application/json
Response
200 - application/json
ButtonReplyMessage sent successfully
The response is of type object
.
Copy
curl --request POST \
--url https://shortext.ny-corp.io/api/messages/send \
--header 'Content-Type: application/json' \
--data '{
"channel": "whatsapp",
"contact": {
"phone": "1234567890",
"profile": {
"lastname": "Yoan",
"firstname": "André",
"email": "celia@home.io",
"address": "Place to be",
"preferred_language": "en"
}
},
"from": "1234567890",
"message": {
"type": "text",
"content": {
"text": "Ceci est un message texte.",
"preview_url": true
}
}
}'
Copy
{
"status": "success",
"message_id": "abc123",
"recipient": {
"phone_number": "1234567890"
},
"data": {
"sent_at": "2024-10-05T10:01:00Z",
"delivered_at": "2024-10-05T10:05:00Z",
"read_at": "2024-10-05T10:07:00Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.