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 SMSLocal account, add INR credits to your wallet, complete DLT registration, and send your first compliant SMS, WhatsApp, or OTP 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
Complete guide to WhatsApp Business API — onboarding, Meta template approval, chatbot flow setup, shared team inbox, quality rating management, and conversation analytics.
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.