QuickAuth API
One REST API for phone verification, transactional SMS and WhatsApp messaging in India. Every endpoint takes and returns JSON over HTTPS, and every error has the same shape.
New here? Start with Quickstart, then come back to look things up.
Base URL
https://api.quickauth.in
There is one environment. Every call is live and billed, so test with your own phone number and a small balance. All endpoints are versioned under /v1; we add fields without notice but never remove or rename them within a version.
Developer tools
Postman collection
All 29 endpoints, ready to send. Ids from one call (requestId, templateId, messageId…) are saved automatically for the next.
- In Postman click Import and drop in both files.
- Pick the QuickAuth — Production environment and fill in
clientId,clientSecret,phone(andpublishableKey,smsTemplateIdif you need them). - Run Start here → Get your account to check your keys. Every other call is live and billed.
Authentication
Which credentials you use depends on where the call comes from.
| From | Send these headers | Where to find them |
|---|---|---|
| Your server all endpoints except /v1/sdk/auth/* and /v1/sdk/attribution/* | X-Client-IdX-Client-Secret | Dashboard → Settings → API credentials (click Reveal to copy the secret). |
Your app or website/v1/sdk/auth/*, /v1/sdk/attribution/* | X-QuickAuth-Key: pk_live_…or Authorization: Bearer <sessionToken> | Dashboard → Settings → SDK publishable key, or a token from Create a session token. |
Your client secret is a password
Requests and responses
- Send
Content-Type: application/jsonon every request with a body. - Enum values are upper case (
MOBILE,SMS) unless a field says otherwise. - Times are ISO-8601 in UTC (
2026-10-16T07:31:12Z); a few fields use Unix seconds and say so. - Fields with no value are returned as
null, not left out. Ignore fields you don’t recognise — we add new ones. - Phone numbers: country code + number, digits only (
919876543210). Send them the same way every time.
Request ids
Every response carries an X-Request-Id header, and every error body repeats it as requestId. Include it when you contact support. You can send your own X-Request-Id (up to 64 characters) to tie our logs to yours.
Do not confuse it with the requestId returned by Send an OTP, which identifies a verification.
Errors
Every error, on every endpoint, has the same body and a matching HTTP status:
{
"errorCode": "OTP_EXPIRED",
"message": "OTP has expired. Please initiate a new request.",
"requestId": "9b2f0c7e1a6d4c3b8e5f2a1d0c9b8a7e"
}Branch on errorCode, never on message — messages are for humans and may change. See the full list with what to do for each in Error codes.
Rate limits
| What | Limit | When exceeded |
|---|---|---|
| New OTPs to the same phone number | 10 per rolling hour (adjustable per account) | 429 RATE_LIMIT_EXCEEDED |
| Calls with one publishable key, per platform | 1,000 per hour; 300 per hour from browsers | 429 RATE_LIMIT_EXCEEDED |
| WhatsApp messages | No QuickAuth limit. WhatsApp limits how many new customers each number can message per day — see dailyLimit in Check number health | Message FAILED |
On a 429, wait and retry with exponential backoff (for example 1s, 2s, 4s…). There is no Retry-After header.
Retrying safely
- 4xx — fix the request first; retrying the same call gives the same error. (
429is the exception: retry later.) - 5xx — retry with backoff. For SMS, send the same
idempotencyKeyso a retry cannot send twice. - Timeouts — the call may have succeeded. Check with the matching status endpoint before resending.
All endpoints
OTP verification
| POST | /v1/auth/initiate | Send an OTP |
| POST | /v1/auth/verify | Verify an OTP |
| GET | /v1/auth/status | Get verification status |
| POST | /v1/auth/verify-code | Confirm a verification |
SDK & sessions
| POST | /v1/sdk/session | Create a session token |
| POST | /v1/sdk/session/refresh | Refresh a session token |
| POST | /v1/sdk/auth/initiate | Send an OTP (from your app) |
| POST | /v1/sdk/auth/verify | Verify an OTP (from your app) |
| POST | /v1/sdk/attribution/launch | Record an app launch |
| POST | /v1/sdk/attribution/conversion | Record a conversion |
Transactional SMS
| POST | /v1/sms/send | Send an SMS |
| GET | /v1/sms/send | Send an SMS (URL form) |
WhatsApp messaging
| POST | /v1/whatsapp/templates | Create a template |
| GET | /v1/whatsapp/templates | List templates |
| GET | /v1/whatsapp/templates/{templateId} | Get a template |
| POST | /v1/whatsapp/messages | Send a template message |
| GET | /v1/whatsapp/messages/{messageId}/status | Get message status |
| POST | /v1/whatsapp/messages/session | Reply in a conversation |
| POST | /v1/whatsapp/campaigns | Send a campaign |
| GET | /v1/marketing/status/{campaignId} | Get campaign status |
| GET | /v1/whatsapp/health | Check number health |
Leads (team inbox)
| GET | /v1/whatsapp/leads | List leads |
| GET | /v1/whatsapp/leads/agents | List agents |
| GET | /v1/whatsapp/leads/teams | List teams |
| POST | /v1/whatsapp/leads/{leadId}/assign | Assign a lead |
| POST | /v1/whatsapp/leads/assign | Assign a lead by phone number |
| POST | /v1/whatsapp/leads/{leadId}/team | Move a lead to a team |
| POST | /v1/whatsapp/leads/team | Move a lead to a team by phone number |
Ecommerce plugins
| GET | /v1/templates | List templates with approval status |
| GET | /v1/templates/{templateId} | Get a template’s approval status |
| POST | /v1/messages/send | Send by template id (asynchronous) |
Account
| GET | /v1/account | Get your account |
Outbound events (delivery receipts, replies, OTP results) are pushed to you — see Webhooks.
Get your account
/v1/accountReturns the account your credentials belong to. Handy as a first call to check your keys work, and to confirm you are pointing at the right account.
AuthServer keyX-Client-Id + X-Client-Secret
Response · 200
clientIdstringYour client id.namestringBusiness name.emailstringAccount email.statusenumACTIVEINACTIVEbillingTypeenumPREPAID— pay before you send (wallet or credits)POSTPAID— invoiced afterplanTypeenumSTANDARDCUSTOMIZEDcurrencystringISO currency code, e.g.INR.
Errors
- 401INVALID_CLIENT_CREDENTIALSX-Client-Id or X-Client-Secret is missing, unknown or wrong.
- 401CLIENT_INACTIVEYour account has been deactivated.
curl -X GET "https://api.quickauth.in/v1/account" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"{
"clientId": "YOUR_CLIENT_ID",
"name": "Acme Retail Pvt Ltd",
"email": "dev@acme.in",
"status": "ACTIVE",
"billingType": "PREPAID",
"planType": "STANDARD",
"currency": "INR"
}