POST
/
userInfo
curl --location 'https://auth.otpless.app/auth/userInfo' 
--header 'Content-Type: application/x-www-form-urlencoded' 
--data-urlencode 'token=RECEIVED_TOKEN_FROM_OTPLESS' 
--data-urlencode 'client_id=YOUR_CLIENT_ID' 
--data-urlencode 'client_secret=YOUR_CLIENT_SECRET'

Body

application/x-www-form-urlencoded
client_id
string
required

Client ID for verification.

client_secret
string
required

Client Secret for verification.

token
string
required

Token received from otplessUser object.

Response

200 - application/json
name
string
email
string
first_name
string
last_name
string
family_name
string
phone_number
string
national_phone_number
string
country_code
string
email_verified
boolean
auth_time
string
authentication_details
object