Skip to content

List User Groups

This endpoint returns a page of user groups in your account.

GET /v1/user-groups/user-groups

Include your API key in the x-api-key header. See Authentication.

user-groups:read
ParameterTypeRequiredDescription
pagenumberNoZero-based page index. Defaults to 0.
pageSizenumberNoNumber of groups per page. Defaults to 25.
qstringNoSearch text matched against the group name and description.
sortCol"name" | "createdAt" | "updatedAt"NoSort column. Applies only when sortDir is also sent.
sortDir"asc" | "desc"NoSort direction. Applies only when sortCol is also sent.

When no valid sort is sent, groups are sorted by updatedAt and then createdAt, newest first. See Pagination for paging and sorting rules.

This endpoint does not accept a request body.

Terminal window
curl "https://api.crewsum.com/v1/user-groups/user-groups?page=0&pageSize=25" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched user groups",
"data": {
"groups": [
{
"id": "36b735f8-4dd7-4c3c-836f-35d2fe84e872",
"name": "Operations",
"description": "Users who manage operations work.",
"userCount": 3,
"createdAt": "2026-05-27T18:00:00.000Z",
"updatedAt": null
}
],
"count": 1
}
}
  • count is the total number of groups that match q, not the number on this page.
  • userCount is the number of users in each group.
  • List items do not include members or assignments. Use Get User Group for those.
StatusMeaning
500"Error fetching user groups": the request failed.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.