Skip to content

Get user by ID

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

id
required
string format: uuid

User ID

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

example

User not found

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Internal Server Error

Media typeapplication/json