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'
{
  "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": true,
  "auth_time": "<string>",
  "authentication_details": {
    "phone": {
      "mode": "<string>",
      "phone_number": "<string>",
      "country_code": "<string>",
      "auth_state": "<string>"
    },
    "email": {
      "email": "<string>",
      "mode": "<string>",
      "auth_state": "<string>"
    }
  }
}

Body

application/x-www-form-urlencoded
Payload containing the token received from otpless authentication and client credentials for verification.

The body is of type object.

Response

200
application/json
The user's information was successfully retrieved.

The response is of type object.