Users
Retrieve Users
Retrieve User
Get a single user using its id
.
List Users
Retrieve a list of users with comprehensive filtering, searching, and pagination capabilities. When you want to retrieve multiple users, your data property on the result will always be an array even if you don't have any users. The users are returned in alphabetical order by name. Two endpoint variations are available:
Standard List Endpoint
Provides detailed user information with pagination support.
Cached List Endpoint
Optimized for quick access to basic user data without pagination.
Query Parameters
Filtering
The API supports comprehensive filtering of users through query parameters. Multiple filters can be combined to refine your results.
Filtering Examples
- Filter by
role_id
orrole
- Filter by
email
Pagination
The response includes a pagination object with the following properties:
- has_more - Indicates if there are more users available
- page - Current page number (default: 1)
- limit - Number of results per page (default: 25)
- total_count - Total number of users in the database.
To retrieve the next page of results:
Sorting
Control the order of results using:
If no sorting parameter is specified, the system defaults to sorting by name
in ascending order asc
Example with sorting:
Search
The API provides advanced full-text search capabilities through the search parameter, allowing you to search users using fuzzy, typo-tolerant matching across multiple fields. The search functionality examines key user properties including:
name
email
Each user in the search results includes a special _search
object that provides detailed information about the match:
The _search
object includes highlighted matches using <mark>
tags, making it easy to emphasize matching text in user interfaces. It also provides a relevance score between 0 and 1, where higher values indicate better matches.
By default, search results are ordered by relevance score to show the best matches first. However, you can override this by specifying an order_by parameter to sort by other fields like created_at
, updated_at
, name
. The search functionality can be combined with other filter parameters to refine your results further.
List User Notifications
Retrieve a list of notifications.
Query Parameters
Filtering
Filtering Examples
- Filter by
location_id
orlocation
Pagination
The response includes a pagination object with the following properties:
- has_more - Indicates if there are more notifications available
- page - Current page number (default: 1)
- limit - Number of results per page (default: 25)
- total_count - Total number of notifications in the database.
To retrieve the next page of results:
Sorting
Control the order of results using:
If no sorting parameter is specified, the system defaults to sorting by created_at
in descending order desc
Example with sorting: