Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size. Must be between 1 and 250. Defaults to 100 |
offset | integer | No | Number of groups to skip for pagination. Must be 0 or greater. Defaults to 0 |
only_active | boolean | No | Only return active groups. Defaults to true |
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
groups | array | List of groups matching the request. Each entry is a Group Object |
total_count | integer | Total number of groups matching the filters, ignoring pagination |
Group Object
Each object in thegroups array contains:
| Field | Type | Description |
|---|---|---|
group_id | integer | Unique identifier of the group |
name | string | Name of the group |
member_user_ids | array | Identifiers of the users who belong to the group |
created_at | string | ISO 8601 timestamp of when the group was created |
Error Responses
401 Unauthorized
Returned when authentication fails. See the authentication errors section for details.404 Not Found
Returned when the organization associated with the API key cannot be found.500 Internal Server Error
Returned when the groups could not be retrieved due to a server error.Notes
Use
total_count together with limit and offset to page through large result sets. The member_user_ids array maps directly to the user_id values returned by GET /users.Use Cases
This endpoint is useful for:- Group directory sync - Mirror your organization’s groups into an external system
- Membership auditing - Review which users belong to each group
- Access mapping - Resolve group memberships to user identifiers