Overview
The service provider adds this route to your app’sapi group:
.env, and requests without it get a 401:
.env
HYPERSENDER_SMS_WEBHOOK_ROUTE. It stays under /api.
Events
Each webhook becomes an event inhypersender_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.