API & Integrations
Authenticating API requests
One API key per environment. Pass it as a Bearer token on every request.
3 min readUpdated 27 Mar 2026
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 credits, and send your first message in under fifteen minutes.
SMS campaigns
Templates, DLT routing, sender IDs, delivery reports, scheduling, and retries.
WhatsApp Business API
Onboarding, template approval, chatbot flows, team inbox, quality rating, and analytics.
AI WhatsApp Agents
Train your agent, sync your catalogue, set handoff rules, and go multilingual.
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.