Authorizations
Path Parameters
ID of the user to get.
Response
Found user
A user of your application. An object with editable user fields.
import { TrophyApiClient } from '@trophyso/node';
const trophy = new TrophyApiClient({
apiKey: 'YOUR_API_KEY'
});
const response = await trophy.users.get("user-id");
{
"id": "user-id",
"email": "user@example.com",
"tz": "Europe/London",
"subscribedToEmails": true,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z",
"attributes": {
"department": "engineering",
"role": "developer"
}
}
Get a single user.
import { TrophyApiClient } from '@trophyso/node';
const trophy = new TrophyApiClient({
apiKey: 'YOUR_API_KEY'
});
const response = await trophy.users.get("user-id");
{
"id": "user-id",
"email": "user@example.com",
"tz": "Europe/London",
"subscribedToEmails": true,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z",
"attributes": {
"department": "engineering",
"role": "developer"
}
}
ID of the user to get.
Found user
A user of your application. An object with editable user fields.
Was this page helpful?