get__user_profile
TypeScript Client Library
public getUserProfile = async (): Promise<UserProfileResponse> => {
return this.makeRequest<UserProfileResponse>('user/profile', 'GET', null);
};Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/user/profile \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/user/profile HTTP/1.1
Host: localhost:3000
Accept: application/json
Authorization: Bearer {access-token}const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/user/profile',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"orgId": "123e4567-e89b-12d3-a456-426614174000",
"orgRole": 2,
"orgRoleDescription": "WORKSPACES",
"orgRoles": [0, 1, 2],
"validated": true,
"mfaRequired": false
}
}Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Parameter
Value
Description
Last updated
Was this helpful?