Verify OTP and return tokens
Auth service
Verify OTP
POST
Verify OTP and return tokens
Validates the submitted OTP code, creates/updates the user in Auth0 and MongoDB, and returns Auth0 tokens so the client can treat OTP users like any other session.Documentation Index
Fetch the complete documentation index at: https://docs.handauncle.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
| Header | Required | Description |
|---|---|---|
x-device-id | Yes | Unique device identifier |
x-platform | No | Platform type: ios, android, or web |
Request Body
Response
Error Codes
| Status | Description |
|---|---|
400 | Invalid or expired OTP |
401 | Maximum verification attempts exceeded |
502 | Auth0 or Exotel service failure |
Notes
- The
accessTokenis an Auth0 JWT that can be used with all authenticated endpoints - The
refreshTokencan be used with/api/v1/auth/refreshto get new tokens - The synthetic email (
phone@sms.handauncle.app) is used internally for Auth0 database connection
Headers
Unique identifier for the calling device or installation.
Minimum string length:
1Client platform (ios, android, web).
Available options:
ios, android, web Body
application/json
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"
6-digit verification code.
Pattern:
^\d{6}$Example:
"123456"