Webhooks
Configure a webhook endpoint
POST
https://api.hello24.in/prod/v1/setWebhookRegisters a webhook URL to receive WhatsApp webhook events.
Once configured, Hello24 will send HTTP POST requests to this endpoint whenever a subscribed WhatsApp event occurs, including:
- Incoming customer messages
- Message sent
- Message delivered
- Message read
- Message failed
The webhook URL must:
- Use HTTPS.
- Be publicly accessible.
- Respond with HTTP 200 OK after successfully processing each webhook event.
Request
Headers
HELLO24_API_KEYstringrequired- Your Hello24 API key. See Authentication.
Content-Typestringrequiredapplication/json
Body
urlstringrequired- Public HTTPS endpoint that will receive webhook events from Hello24.
Examples
cURL
curl -X POST 'https://api.hello24.in/prod/v1/setWebhook' \
-H 'HELLO24_API_KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/webhook"
}'Responses
200 OK
Webhook configuration request processed successfully.
Response fields
When code is SUCCESS
codestring (SUCCESS)requireddatastringrequired
When code is FAILURE
codestring (FAILURE)requirederrorstringrequired
200 OK · Webhook configured
{
"code": "SUCCESS",
"data": "Webhook has been setup succesfully"
}200 OK · Invalid HTTPS URL
{
"code": "FAILURE",
"error": "We accept only url which starts with https (secured)."
}403 Forbidden
Invalid API key or unauthorized request.