Get a user by ID in the user's organization
GET
/v1/users/{uuid}
const url = 'https://api.adversarial.com/api/v1/users/123e4567-e89b-12d3-a456-426614174000';const options = {method: 'GET'};
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://api.adversarial.com/api/v1/users/123e4567-e89b-12d3-a456-426614174000Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uuid
required
string format: uuid
User ID
Example
123e4567-e89b-12d3-a456-426614174000Responses
Section titled “Responses”Get a user by ID
Media typeapplication/json
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
email
required
string
first_name
required
string
icon
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
string | null
id
required
string format: uuid
last_name
required
string
Examplegenerated
{ "email": "example", "first_name": "example", "icon": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "last_name": "example"}