Pre-Built Codes
Production-ready code snippets for the most common Sendexa integration scenarios. Each snippet is self-contained, covers error handling, and works with your dashboard API token.
How to use these snippets
Replace YOUR_DASHBOARD_BASE64_TOKEN with the pre-computed token from Dashboard → Settings → API Keys. Every snippet is runnable as-is — no SDK or extra setup required.
Full phone-number authentication — request, verify, and handle errors including rate limits and active OTP detection.
Transactional SMS for order confirmations, delivery alerts, and account events with delivery status handling.
Send personalized messages to thousands of recipients — with batching, rate management, and per-recipient results.
Send text, media, interactive buttons, list menus, and template messages over the WhatsApp Business API.
Verify HMAC-SHA256 signatures, parse delivery receipts, and respond to inbound events — production-ready.
Multi-level USSD menu with session management, input routing, and CON/END response handling.