SMS Webhooks
SMS Webhooks allow your application to receive real-time notifications about SMS events, such as delivery status updates or inbound messages. This enables automation, tracking, and instant processing of SMS activity.
How It Works
-
Register a webhook URL in your account.
-
Whenever an SMS is sent, delivered, failed, or received inbound, Zonitel sends a POST request to your webhook URL.
-
Your server must respond with HTTP 200 OK within 5 seconds to confirm receipt.
Important: Requests use Bearer Authentication. Include your access token in the
Authorizationheader.
Register a Webhook
Endpoint:
Request Body (JSON):
Notes:
-
URL must be HTTPS and publicly reachable.
-
Your server must respond within 5 seconds with HTTP 200 OK.
Example Success Response:
Retrieve Registered Webhook
Endpoint:
Example Response:
Webhook Notifications
Inbound SMS Notification
Outbound SMS Status Notification
Common Error Responses
-
401 Unauthorized
-
403 Forbidden
-
400 Bad Request
-
500 Internal Server Error
Best Practices
-
Always use HTTPS for webhook URLs.
-
Respond with HTTP 200 OK within 5 seconds.
-
Keep your Bearer token secure; never share it publicly.
-
Test webhook endpoints regularly to ensure reliable delivery.