API reference

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.

  1. In Postman click Import and drop in both files.
  2. Pick the QuickAuth — Production environment and fill in clientId, clientSecret, phone (and publishableKey, smsTemplateId if you need them).
  3. 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.

FromSend these headersWhere to find them
Your server
all endpoints except /v1/sdk/auth/* and /v1/sdk/attribution/*
X-Client-Id
X-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

Keep it in an environment variable or secret manager on your server. Never put it in a mobile app, website JavaScript, or a Git repository. If it leaks, click Regenerate secret in Settings — the old secret stops working at once, so update your servers straight away.

Requests and responses

  • Send Content-Type: application/json on 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:

Error response
{
  "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

WhatLimitWhen exceeded
New OTPs to the same phone number10 per rolling hour (adjustable per account)429 RATE_LIMIT_EXCEEDED
Calls with one publishable key, per platform1,000 per hour; 300 per hour from browsers429 RATE_LIMIT_EXCEEDED
WhatsApp messagesNo QuickAuth limit. WhatsApp limits how many new customers each number can message per day — see dailyLimit in Check number healthMessage 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. (429 is the exception: retry later.)
  • 5xx — retry with backoff. For SMS, send the same idempotencyKey so 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/initiateSend an OTP
POST/v1/auth/verifyVerify an OTP
GET/v1/auth/statusGet verification status
POST/v1/auth/verify-codeConfirm a verification

SDK & sessions

POST/v1/sdk/sessionCreate a session token
POST/v1/sdk/session/refreshRefresh a session token
POST/v1/sdk/auth/initiateSend an OTP (from your app)
POST/v1/sdk/auth/verifyVerify an OTP (from your app)
POST/v1/sdk/attribution/launchRecord an app launch
POST/v1/sdk/attribution/conversionRecord a conversion

Transactional SMS

POST/v1/sms/sendSend an SMS
GET/v1/sms/sendSend an SMS (URL form)

WhatsApp messaging

POST/v1/whatsapp/templatesCreate a template
GET/v1/whatsapp/templatesList templates
GET/v1/whatsapp/templates/{templateId}Get a template
POST/v1/whatsapp/messagesSend a template message
GET/v1/whatsapp/messages/{messageId}/statusGet message status
POST/v1/whatsapp/messages/sessionReply in a conversation
POST/v1/whatsapp/campaignsSend a campaign
GET/v1/marketing/status/{campaignId}Get campaign status
GET/v1/whatsapp/healthCheck number health

Leads (team inbox)

GET/v1/whatsapp/leadsList leads
GET/v1/whatsapp/leads/agentsList agents
GET/v1/whatsapp/leads/teamsList teams
POST/v1/whatsapp/leads/{leadId}/assignAssign a lead
POST/v1/whatsapp/leads/assignAssign a lead by phone number
POST/v1/whatsapp/leads/{leadId}/teamMove a lead to a team
POST/v1/whatsapp/leads/teamMove a lead to a team by phone number

Ecommerce plugins

GET/v1/templatesList templates with approval status
GET/v1/templates/{templateId}Get a template’s approval status
POST/v1/messages/sendSend by template id (asynchronous)

Account

GET/v1/accountGet your account

Outbound events (delivery receipts, replies, OTP results) are pushed to you — see Webhooks.

Get your account

GET/v1/account

Returns 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

  • clientIdstring
    Your client id.
  • namestring
    Business name.
  • emailstring
    Account email.
  • statusenum
    ACTIVEINACTIVE
  • billingTypeenum
    PREPAID — pay before you send (wallet or credits)POSTPAID — invoiced after
  • planTypeenum
    STANDARDCUSTOMIZED
  • currencystring
    ISO currency code, e.g. INR.

Errors

Request
curl -X GET "https://api.quickauth.in/v1/account" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"
Response200
{
  "clientId": "YOUR_CLIENT_ID",
  "name": "Acme Retail Pvt Ltd",
  "email": "dev@acme.in",
  "status": "ACTIVE",
  "billingType": "PREPAID",
  "planType": "STANDARD",
  "currency": "INR"
}
Chat with us