SMSLocal
API & Integrations

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.

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

  1. 01Developers → API keys → Create key.
  2. 02Pick the environment (live or sandbox) and an optional label.
  3. 03Copy the key — it's shown only once. Store it in your secrets manager.
  4. 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" }
  }'

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.