Skip to main content
POST
/
api
/
v1
/
auth
/
resend-otp
Resend OTP after cooldown
curl --request POST \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/auth/resend-otp \
  --header 'Content-Type: application/json' \
  --header 'x-device-id: <x-device-id>' \
  --data '
{
  "phone": "9876543210"
}
'
{
  "success": true,
  "data": {
    "message": "<string>"
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "requestId": "<string>"
  }
}
Sends another OTP after the cooldown window expires (default 60 seconds). Requires the same headers and body format as /api/v1/auth/send-otp.

Headers

HeaderRequiredDescription
x-device-idYesUnique device identifier
x-platformNoPlatform type: ios, android, or web

Request Body

{
  "phone": "+919876543210"
}

Response

{
  "success": true,
  "data": {
    "message": "OTP resent successfully"
  },
  "meta": {
    "timestamp": "2025-12-02T08:00:00.000Z",
    "request_id": "uuid"
  }
}

Error Codes

StatusDescription
400Invalid phone format or validation error
429Cooldown period not met (wait before resending)
502Exotel API failure

Headers

x-device-id
string
required

Unique identifier for the calling device or installation.

Minimum string length: 1
x-platform
enum<string>

Client platform (ios, android, web).

Available options:
ios,
android,
web

Body

application/json
phone
string
required

Phone number. Accepts 10-digit numbers (9876543210), numbers with country code (919876543210), or E.164 format (+919876543210). The +91 prefix is automatically added for 10-digit numbers.

Example:

"9876543210"

Response

OTP resent

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required