Authenticating API requests
Generate live or sandbox API keys from the Developers section, store them securely in your secrets manager, and pass them as Bearer tokens on every API request.
Every API request needs an Authorization header with a Bearer token. Keys come in live and sandbox variants — same API surface, separate balances.
Getting a key
- 01Developers → API keys → Create key.
- 02Pick the environment (live or sandbox) and an optional label.
- 03Copy the key — it's shown only once. Store it in your secrets manager.
- 04Rotate keys anytime. Deleting an old key takes effect immediately.
curl -X POST https://api.smslocal.in/v2/sms/send \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"sender": "SMSLCL",
"template_id": "1234567890123456789",
"variables": { "name": "Priya", "otp": "482915" }
}'Related articles in API & Integrations
Browse other help categories
Getting started
Create your account, add INR credits, complete DLT registration and send your first compliant SMS, WhatsApp message or OTP — all in under fifteen minutes.
SMS campaigns
SMS content templates, DLT routing, sender ID setup, delivery report statuses, bulk campaign scheduling, throttle controls, and automatic retry logic for India.
WhatsApp Business API
Business API onboarding, template approval and categories, broadcast consent rules, quality rating and tiers, and setting up a shared WhatsApp team inbox.
AI WhatsApp Agents
Train your AI WhatsApp agent on your own knowledge, sync your product catalogue, configure handoff triggers, and serve customers across twelve Indian languages.
Did this article help?
If something isn't clear or the steps don't match what you're seeing, tell us and we'll fix the doc the same day.