Send a message
Send a message
Goal: send a WhatsApp/Messenger message to a chat. Time: ~5 min.
You need
- An admin login JWT.
updatepermission on the provider (see Authorization).- A chat slug — from
GET /messaging/chats/all.
Do it
BASE=https://<workspace>.corteksa.com/api/v1
curl -X POST "$BASE/messaging/messages/send/$CHAT_SLUG/text" \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{ "body": "Hi 👋", "front_id": "tmp-1" }'Response (the provider send is async):
{ "message": "Message sent successfully",
"data": { "success": true, "front_id": "tmp-1", "created_at": 1739450000000 } }Then
- Watch the
message-ackWebSocket event for delivery status. - Send media instead → Messaging › Examples.