The users listing endpoint returns every user in the workspace together with their identifiers, contact details, organizational placement, and status. It supports pagination, status filtering, and optional expansion of related records such as location, department, and public holidays.
Endpoint and authorization
Query parameters
All query parameters are optional. The table below summarizes each one; the exact schema definitions live in protected modules schema0001 through schema0007 and schema0008 through schema0014.
How limit and filters interact
The limit parameter sets how many users the endpoint pulls before any filtering happens, not how many records come back. Filters are applied after that pull, so a request with limit=300 and a narrow status, location, department, or label filter can return far fewer than 300 records even when more matching users exist in the workspace. For example, a call with limit=300 and status=INACTIVE may return a handful of users while many more inactive users remain unfetched. To page through a filtered set reliably, keep the limit stable across calls and follow the nextToken returned in each response until it is absent.
Response body
A successful call returns a JSON object with a status field, an optional nextToken for pagination, and a data array of user objects. Each user object carries id, name, email, isAdmin, locationId, departmentId, labels, status, employeeId, startDate, and endDate. When the expand parameter is used, the user object also includes nested location, department, and holidays records. The exact response schema, including field types and formats, is delivered in protected module schema0015; the example payload is in code0002.
Field map for a user record
Use this map to decide which fields to read and which to request via expand.
Error responses
The endpoint documents five error statuses. A 400 returns a standard error body with a status of error and a human-readable message; the example shown is a validation message about a required startDate. A 403 returns a gateway-style body with a single message field, used when the API key is missing or unrecognized. A 404 returns either a gateway-style body or the standard error body, used when the key is not authorized for the resource. A 500 returns the standard error body with a message such as Failed to list users. The exact error schemas are in protected modules schema0016 through schema0019, and the example bodies are in code0003 through code0006.
Telling the two authorization failures apart
A 403 with a Forbidden message means the request did not carry a usable API key. A 404 with a Not Found message means the key was recognized but is not permitted to reach this resource. Treating both as a single auth failure hides whether the fix is to supply a key or to change the key's permissions. Log the status code and the message field separately so the two cases stay distinguishable.
Pre-flight checklist
Query parameter summary
Parameter
Type
Required
Notes
nextToken
string
No
The nextToken returned by the previous API call.
limit
string
No
Number of users to return, between 25 and 500, default 300. Filters apply after the limit; returned count may be less than the limit.
status
string
No
Filter by status. Allowed values: ACTIVE, INACTIVE, DELETED. Default is ACTIVE.
locations
string
No
Comma-separated list of locations. Filters users to those in one of the provided locations. Default includes any location.
departments
string
No
Comma-separated list of departments. Filters users to those in one of the provided departments. Default includes any department.
labels
string
No
Comma-separated list of labels. Filters users to those with one of the provided labels. Default includes users with or without labels.
expand
string
No
Expand related records. Allowed values: location, department, holidays.
Parameter descriptions follow the endpoint's own documentation. The source text for locations, departments, and labels refers to "leaves by users"; in this endpoint those parameters filter the returned users, not leaves. The exact schema definitions are in protected modules schema0001 through schema0014.
User record field map
Field
Type
Notes
id
string (UUID)
user ID
name
string
user name
email
string
user email
isAdmin
boolean
whether the user is an admin
locationId
string
the ID of the user's location
departmentId
string
the ID of the user's department
labels
array of strings
labels
status
string
users status, one of ACTIVE, INACTIVE, DELETED
employeeId
string
an employee ID if it is set on the user profile page
startDate
string (ISO 8601)
a timestamp in the ISO 8601 format
endDate
string (ISO 8601)
a timestamp in the ISO 8601 format, if the end date is set on the user profile page
location
object
location ID, name, timezone, isDefault, createdAt
department
object
department ID, name, isDefault, createdAt
holidays
array
public holidays for the user's location, grouped by year (only when expand=holidays)
Field types and descriptions are taken from the endpoint's response schema, delivered in protected module schema0015.
Error status map
Status
Body shape
Example message
Meaning
400
status + message
"startDate" is required
Validation error on the request.
403
message only
Forbidden
Missing or unrecognized API key.
404
message only or status + message
Not Found
API key not authorized for this resource.
500
status + message
Failed to list users
Server-side failure while listing users.
Error bodies and status meanings are taken from the endpoint's own documentation; exact schemas are in protected modules schema0016 through schema0019.
Frequently asked questions
What is the default status filter?
The status parameter defaults to ACTIVE. To include inactive or deleted users, set status explicitly to INACTIVE or DELETED.
How do I get location, department, or holiday details in the response?
Set the expand parameter to location, department, or holidays. The corresponding nested object or array is then included in each user record. Without expand, only the ID fields locationId and departmentId are present.
What is the difference between a 403 and a 404 from this endpoint?
A 403 with a Forbidden message means the API key is missing or unrecognized. A 404 with a Not Found message means the key was recognized but is not authorized for this resource. The two cases point to different fixes.
curl -X GET "$API_BASE_URL/v1/users" \
-H "x-api-key: "
{
"status": "error",
"message": "\"startDate\" is required"
}
{
"message": "Forbidden"
}
{
"message": "Not Found"
}
{
"status": "error",
"message": "Failed to list users"
}
nextToken
Field
Type
Required
Description
Constraints
nextToken
string
No
The nextToken returned by the previous API call.
limit
Field
Type
Required
Description
Constraints
limit
string
No
a number of users to return, between 25 and 500, default is 300. If the filters are provided, they'll be applied after the limit. The number of returned users might be less than the provided limit.
status
Field
Type
Required
Description
Constraints
status
string
No
filter users by status, default is 'ACTIVE'
Allowed values: "ACTIVE" | "INACTIVE" | "DELETED"
locations
Field
Type
Required
Description
Constraints
locations
string
No
a comma-sparated list of locations. Used for filtering, if provided, the API method will return leaves by users in one of the provided locations. By default, the API method returns leaves by users in any location.
departments
Field
Type
Required
Description
Constraints
departments
string
No
a comma-sparated list of departments. Used for filtering, if provided, the API method will return leaves by users in one of the provided departments. By default, the API method returns leaves by users in any department.
labels
Field
Type
Required
Description
Constraints
labels
string
No
a comma-sparated list of labels. Used for filtering, if provided, the API method will return leaves by users with one of the provided labels. By default, the API method returns leaves by users with or without labels.