Skip to main content

Uniphore Customer Portal

Get User Details from Auth0

This API lists the user details from Auth0.

Endpoint

Method: GET

URL: https://<Auth0 server IP>/userinfo

Request
curl --location 'https://dev-g2j5mu2z.us.auth0.com/userinfo' \--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkxYejBQYWVFRERuS3dfcjdkU2s2UyJ9.eyJodHRwczovL2FwaS51bmlwaG9yZS5jb20vZW1haWxfaWQiOiJhcGl0ZXN0aW5nLXVhc3Npc3RhZG1pbl8xMDAxQG10bWUxLmNvbSIsImh0dHBzOi8vYXBpLnVuaXBob3JlLmNvbS9hdXRoMF9uYW1lIjoiQVBJVGVzdGluZy11YXNzaXN0QWRtaW5fMTAwMSIsImh0dHBzOi8vYXBpLnVuaXBob3JlLmNvbS91c2VyX2lkIjoiYXV0aDB8NjQxYzA1ZjQ3MGE4ZDc1Y2YwOTVhMzgyIiwiaHR0cHM6Ly9hcGkudW5pcGhvcmUuY29tL3JvbGVzIjpbInVfYWRtaW5pc3RyYXRvciJdLCJodHRwczovL2FwaS51bmlwaG9yZS5jb20vdXNlcl9tZXRhZGF0YSI6e30sImh0dHBzOi8vYXBpLnVuaXBob3JlLmNvbS90ZW5hbnQiOiI5NTMyMmUyMi1hMDI0LTRhZGItYWNjYy1lM2ZmMmI4ODVhMjAiLCJpc3MiOiJodHRwczovL2Rldi1nMmo1bXUyei51cy5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NjQxYzA1ZjQ3MGE4ZDc1Y2YwOTVhMzgyIiwiYXVkIjpbInVhc3Npc3QudW5pcGhvcmUuY29tIiwiaHR0cHM6Ly9kZXYtZzJqNW11MnoudXMuYXV0aDAuY29tL3VzZXJpbmZvIl0sImlhdCI6MTY3OTk3Njg3MywiZXhwIjoxNjgwMDYzMjczLCJhenAiOiJEamNweG9JZGREZnVmSEZkUU41Qm40aVg2M1p4QWt1ZiIsInNjb3BlIjoib3BlbmlkIiwib3JnX2lkIjoib3JnXzZFVFVEdnF0Z3lTUEtRTXgifQ.giUmiXW1vo7Xc2hzC3nlSwioLzXpI516Mop7-r2obuLR0Wvbk8KbDmixMLu7bpL4SJsdxXRR0CrYZSuO4JaJTgShITjT1GtRlZ_LeLCJ7Jt1mssjOFLC-Bv3C4-EaoxEnuvU3F3ABrwU5PNdILmUYXG-rAqPvF7JIy2xVKxl2qkoLIeHd_LwUkhnUYdaoAoZQF8ZEil53oak_eYj3CfAdZEMDesyCmzOOqZeBwS8PavCxOiESu7LOMR--DlZEIw-nqBNFL6pozRQAw2I0GBZUgSdpWbl40mspJ3hIS5n3SI1MVcHC_KmvJOQbqnC6i8tl6E4aF4GbluqUHDzZ2wK1g'
Header Parameter

Parameter Name

Description

Data Type

Value

Authorization

Access token should be sent with all client requests. The access token helps the platform services to get the user information from auth0.

You can pass user authorization token which is generated from auth0.

String

Bearer <token>

Example Response
{    
"sub": "auth0|641c05f470a8d75cf095a382",
"https://api.uniphore.com/email_id": "apitesting-uassistadmin_1001@mtme1.com",
"https://api.uniphore.com/auth0_name": "APITesting-uassistAdmin_1001",
"https://api.uniphore.com/user_id": "auth0|641c05f470a8d75cf095a382",
"https://api.uniphore.com/roles": [
"u_administrator"
],
"https://api.uniphore.com/user_metadata": {},
"https://api.uniphore.com/tenant":"95322e22-a024-4adb-accc-e3ff2b885a20",
"org_id": "org_6ETUDvqtgySPKQMx"
}
Response and Error Codes

Code

Response

200

OK – Returns the user information.

401

Authentication failed. This response code will be shown if any of the following scenarios occur:

  • The provided token is not a valid JWT token.

  • The access_token provided is not a valid token or has already expired.

  • The user for whom the access_token was generated is not eligible (incorrect role) to use the API.

403

Forbidden. If you use the access token of other role, this response code will be shown.

500

Internal Server Error.