Get user by ID
GET
/users/{id}
const url = 'https://api.occulights.com/api/v1/users/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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.occulights.com/api/v1/users/example \ --header 'Authorization: <Authorization>'Retrieves a specific user by ID for the authenticated tenant
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
User ID
Responses
Section titled “Responses”OK
Media typeapplication/json
object
email
string
firstName
string
id
string
lastLoginAt
Set by SetUserLastLogin on every successful login. Zero value means this user has never logged in.
object
time.Time
string
lastName
string
orgId
string
username
string
Example generated
{ "email": "example", "firstName": "example", "id": "example", "lastLoginAt": { "time.Time": "example" }, "lastName": "example", "orgId": "example", "username": "example"}Invalid user ID format
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Unauthorized
Media typeapplication/json
string
Example generated
exampleUser not found
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Internal Server Error
Media typeapplication/json