Key Takeaways
- android sms gateway webhooks setup is POST /webhooks, HTTPS URL, signature headers, and an idempotent handler.
- Prefer webhooks over polling GET /messages/{id} in production. DLR still depends on the carrier path.
- Verify X-SmsGateway-Signature as documented. Do not skip “just in staging” that later ships.
- message.delivered / message.failed / message.received / ussd.response — subscribe to what you handle.
- Priced by devices and SMS send volume. You use your own phone and operator SMS credit. Webhooks do not include operator airtime.
- Live event names: Developer Center OpenAPI webhooks key.
Register with POST /webhooks
Search intent for android sms gateway webhooks setup is wiring DLR and inbound events into your backend. Service pricing is based on device count and total SMS sent through the gateway. Register an HTTPS URL. Events are listed under the OpenAPI webhooks key — do not invent names.
A webhook you never signature-check is an unauthenticated write API you published to the internet.
Product: SMS webhook integration. Docs: docs.sms-gateway.app. Samples are REST, not a packaged SDK.
Events you actually need
| Event | Use | Skip if |
|---|---|---|
message.delivered | Mark OTP/order delivered in your app | You only poll and accept staleness |
message.failed | Page on-call; do not infinite-retry MMS | You ignore radio death |
message.received | Two-way inbox → ticket | No human owns replies |
ussd.response | Balance check finished | You never POST /ussd |
DLR depth: delivery reports. Inbox: two-way inbox. USSD: USSD overview.
Verify signatures
X-SmsGateway-Signature = v1=hex(HMAC-SHA256("{timestamp}.{body}", secret)). Timestamp header is unix seconds. Deduplicate on X-SmsGateway-Event-Id. Keep the secret in env — API keys in env. OWASP webhook verification notes are a useful floor (do not log secrets).
HTTPS callbacks only
Local-panel TLS: reverse proxy and HTTPS. Do not point production at an ngrok you forgot. Priced by devices and SMS send volume. You use your own phone and operator SMS credit.
Idempotency on event id
Carriers and retries will duplicate. Store event ids. Do not send a second OTP because delivered fired twice. OTP isolation: OTP verification. Setup phones: device setup.
Webhook setup checklist
- POST /webhooks with HTTPS URL.
- Signature + timestamp verified.
- Event-id dedupe.
- Handler fast; work async.
- Staff canary send → delivered/failed observed.
Next steps
Register, canary, then subscribe production events. Pricing. App: downloads.
Related product pages
Jump to the live product docs for this topic—not another long-form article.
- SMS webhook integrationInbound and status events
- SMS API documentationLive endpoint reference
- device and SMS volume pricingPlans and allowances
- device setup guidePair and go live




