Categories
Overview
The Categories API allows for the management and retrieval of user categories and the users within them. Categories can be created, updated, deleted, and queried. Users can be added to or removed from specific categories.
Endpoints
Get Users in Category
GET /api/v1/categories/:id/usersDescription: Retrieves a list of users (actors) belonging to a specific category, optionally filtered by search text.
Authentication Required: No
Parameters
Path Parameters
id
number
The ID of the category.
Query Parameters
{
searchText?: string; // Optional: Filter users by name or username
limit?: number; // Optional: Pagination limit (default 50, max 100)
offset?: number; // Optional: Pagination offset (default 0)
}searchText
string
No
-
Filter users by displayName or username.
limit
number
No
50
Maximum number of users to return (max 100).
offset
number
No
0
Number of users to skip for pagination.
Responses
Success Response
Code: 200 OK
Error Responses
Code: 400 Bad Request (Example: Invalid pagination or ID)
Code: 404 Not Found (Potentially, if category ID does not exist - needs testing confirmation)
Example
Request
Response
Notes
Retrieves users belonging to a specific category ID.
The structure of the returned user object includes basic user info, status, userkeys, and when they were added to the category.
Last updated