Skip to main content

Overview

The service provider adds this route to your app’s api group:
Add it as the webhook URL of your SMS instance in the Hypersender dashboard. The URL must be public, so use a tunnel such as ngrok in development. If you set an Authorization Secret on the webhook, put the same value in .env, and requests without it get a 401:
.env
To change the path, set HYPERSENDER_SMS_WEBHOOK_ROUTE. It stays under /api.

Events

Each webhook becomes an event in hypersender_laravel::events. The payload field holds the full body: event and data. Each event’s fields are in the SMS webhooks reference.

Handle incoming SMS

src/listeners/incoming_sms.rs

Track delivery

request_id in data is the ID you passed to send_message, so you can match a report to your own record:

Queued listeners

The webhook answers Hypersender right away and runs listeners in a background task, which isn’t retried. Use #[listener(queued)] for work that must finish. Every event derives Queueable.
Last modified on December 2, 2026