Skip to main content

What is the Groups API?

The Groups API allows you to manage user-defined groups within your organization. These groups can represent teams, departments, or any custom segmentation of users, and are useful for assigning policies, budgets, or approval rules.This API enables you to:
  • Create and update groups
  • Retrieve details of individual or all groups
  • Delete groups when no longer needed

Available Endpoints


Retrieve All Groups

List all groups defined in your organization.

Endpoint

GET /v2/groups

cURL Request

cURL

Sample JSON Response

JSON

Retrieve Group by UUID

Get full details of a specific group by its UUID.

Endpoint

GET /v2/groups/{uuid}

cURL Request

cURL

Sample JSON Response

JSON

Create a Group

Create a new user group by specifying a name and optional description.

Endpoint

POST /v2/groups

cURL Request

cURL

Sample JSON Response

JSON

Update a Group

Edit the name or description of an existing group.

Endpoint

PATCH /v2/groups/{uuid}

cURL Request

cURL

Delete a Group

Remove a group from your organization by UUID. Use with caution, as this may impact user-role associations or policy rules.

Endpoint

DELETE /v2/groups/{uuid}

cURL Request

cURL

**💡 Tip: ** Groups can be used to assign policies, budgets, or approval flows in a centralized way.**⚠️ Note: ** Deleting a group does not affect users, but it may disrupt processes tied to that group such as approval chains or spend limits.

Endpoint Reference

GET /api/v2/groups

Find all groupsParameters:

PUT /api/v2/groups

Update group details

POST /api/v2/groups

Create Group

GET /api/v2/groups/{uuid}

Find group by UUIDParameters:

DELETE /api/v2/groups/{uuid}

Delete a single group by UUIDParameters: