/v1/whatsapp/messagesStart sending whatsapp messages through the Elora messaging API. You can send using plain text. To get the sender's mobile number after completing onboarding, navigate to the dashboard and select:WhatsApp Onboarding → Onboarding Status → Phone Number
Sender mobile number. This is the business mobile number. Starts with mandatory +, then 7 to 15 digits. eg '+2547xxxxxxxx'.
Recipient mobile number. This is the customer mobile number. Starts with mandatory +, then 7 to 15 digits. eg '+2547xxxxxxxx'.
The plain text version of the message. Min 1. Max 1024.
The Elora messaging API will acknowledge the request by returning the following HTTP status code:
curl -X POST "https://api.eloratechnology.com/v1/whatsapp/messages" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
--data-urlencode "From=+2547xxx" \
--data-urlencode "To=+2547xxx" \
--data-urlencode "Body=hello world"
{
"messageId": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}