POST
/
v1
/
userinfo
curl --location --request POST 'https://auth.otpless.app/auth/v1/userinfo' 	
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
{
"name": "Ashwin",
"phone_number": "+917042507646",
"phone_number_without_code": "7042507646",
"country_code": "+91",
"auth_time": "1697202873"
}

You can skip this endpoint if you are using the id_token to decode the user information without hitting the API.

Authorizations

Authorization
string
header
required

For accessing the secured endpoints a valid JWT token must be passed in all the requests.

Response

200
application/json

Successful retrieval of user information.

The response is of type object.