cURL
curl --request POST \ --url http://localhost:8080/api/auth/send-otp \ --header 'Content-Type: application/json' \ --data ' { "identifier": "user@example.com", "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" } }
Initiates the OTP flow for login or registration.
Email or phone number
"user@example.com"
EMAIL
PHONE
"EMAIL"
"web-client-id"
"abc-123"
OTP sent successfully or failure message
Show child attributes