get__user_{userId}
TypeScript Client Library
public getUserById = async (userId: string): Promise<UserRoleResponse> => {
return this.makeRequest<UserRoleResponse>(`user/${userId}`, 'GET', null);
};Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/user/{userId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/user/{userId} 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/{userId}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
{
"success": true,
"data": {
"userId": "550e8400-e29b-41d4-a716-446655440000",
"orgRole": 2,
"orgRoleDescription": "WORKSPACES",
"orgRoles": [0, 1, 2]
}
}Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Parameter
Value
Description
Last updated
Was this helpful?