Skip to main content
POST
/
api
/
auth
/
send-otp
Send OTP
curl --request POST \
  --url http://localhost:8080/api/auth/send-otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "identifier": "[email protected]",
  "type": "EMAIL",
  "device_id": "web-client-id",
  "trace_id": "abc-123"
}
'
{
  "success": true,
  "error": true,
  "message": "<string>",
  "data": {
    "cooldown_seconds": 60,
    "trace_id": "trace-xyz"
  }
}

Body

application/json
identifier
string
required

Email or phone number

type
enum<string>
required
Available options:
EMAIL,
PHONE
Example:

"EMAIL"

device_id
string
Example:

"web-client-id"

trace_id
string
Example:

"abc-123"

Response

OTP sent successfully or failure message

success
boolean
error
boolean
message
string
data
object