Skip to content

Get all users

GET
/users/
curl --request GET \
--url https://api.occulights.com/api/v1/users/ \
--header 'Authorization: <Authorization>'

Retrieves all users (including pending invites) for the authenticated tenant

OK

Media typeapplication/json
Array<object>
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
pending
boolean
username
string

Example generated

[
{
"email": "example",
"firstName": "example",
"id": "example",
"lastLoginAt": {
"time.Time": "example"
},
"lastName": "example",
"orgId": "example",
"pending": true,
"username": "example"
}
]

Unauthorized

Media typeapplication/json
string

Example generated

example

Internal Server Error

Media typeapplication/json