Get user profile
GET /api/v1/protected/profile Select code sample Fetch cURL
Remove user from project Next
List platform users
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 stringExample
{ "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 stringExample
{ "error": "Unauthorized", "error_description": "Invalid token"}
Previous Remove user from project Next
List platform users