Skip to content
English
  • There are no suggestions because the search field is empty.

Get user profile

GET /api/v1/protected/profile Select code sample Fetch cURL
const url = 'https://localhost:8080/api/v1/protected/profile';const options = {method: 'GET', headers: {Authorization: '
  
   '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
  
curl --request GET \  --url https://localhost:8080/api/v1/protected/profile \  --header 'Authorization: 
  
   '
  

Return the authenticated user’s profile and resolved IDP user ID from their JWT

Authorizations

Section titled “Authorizations ”

Responses

Section titled “ Responses ”

200

Section titled “200 ”

User profile information

Media type application/json object message string user userId string
Example
{  "message": "Profile retrieved",  "userId": "550e8400-e29b-41d4-a716-446655440000"}

401

Section titled “401 ”

Unauthorized - Invalid or missing credential

Media type application/json object error string error_description string
Example
{  "error": "Unauthorized",  "error_description": "Invalid token"}
Previous
Remove user from project
Next
List platform users