GET
/
users
/
{id}
JavaScript
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"
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

ID of the user to get.

Response

200
application/json

Found user

A user of your application. An object with editable user fields.