← All docsGet Started

HEADER Authorization: Bearer otp_live_...

Authentication

Every OTP API call uses a Bearer API key from your dashboard.

Create a key in Dashboard → API keys. The full secret is shown only once.

Header

Send the key on every request:

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Example

curl -X POST http://31.97.184.139:3016/api/otp/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipient":"+9647500000000","channel":"whatsapp","purpose":"login"}'

If the key is missing or invalid you get HTTP 401.