Messaging API
Add SMS, RCS and OTP to your product with a few lines of code. Full API keys and documentation are available in your dashboard after sign-up.
Authentication
Create an API key in the dashboard and send it in the Authorization header. Keep keys secret and restrict them to your server IP addresses.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Send an SMS
curl -X POST https://api.intellectus.in/v1/sms \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{
"sender": "INTLCT",
"to": ["919876543210"],
"template_id": "1207XXXXXXXXXXXXXXX",
"message": "Your order 4821 has been shipped. - INTLCT"
}'
The response contains a message ID per recipient. The text must match the registered DLT template.
Send an RCS rich card
POST /v1/rcs
{
"to": "919876543210",
"template": "festive_offer",
"variables": { "name": "Priya" },
"fallback_sms": true
}
OTP
POST /v1/otp/send { "to": "919876543210", "template_id": "1207..." }
POST /v1/otp/verify { "to": "919876543210", "code": "482913" }
Delivery-report webhooks
Add a webhook URL in the dashboard. We POST a JSON event for each status change (submitted, delivered, read, failed) and for incoming replies. Each request is signed with an HMAC-SHA256 signature header so you can verify it came from us.
Good practice
- Send only to customers who have given consent, and honour opt-outs immediately.
- Use transactional templates only for genuine transactional content.
- Retry on network errors with exponential back-off; message IDs make retries safe.
- Never put passwords, full card numbers or other sensitive data in messages.
The endpoints above show the shape of the API. Exact base URL, field names and limits for your account are in the API documentation inside your dashboard.