Skip to main content

Endpoint

Authentication

This endpoint requires an OAuth access token. Send it as a bearer token:
Required scope: users:write
The group is recorded as created by the access token’s user.

Request Body

The request body must be a JSON object with the following fields:

Required Fields

Optional Fields

Request Example

Response

Success Response

Status Code: 200 OK

Response Fields

Error Responses

400 Bad Request

Returned when the request is invalid - for example, a group name that already exists or an invalid user identifier - or when the access token has no user behind it. client_credentials tokens act as the admin who created the application, so this applies only to tokens issued before application creators were recorded.

401 Unauthorized

Returned when the access token is missing, unknown, revoked, or expired, or when an X-API-Key was sent instead of a bearer token. See OAuth error responses.

403 Forbidden

Returned when the token does not carry the required scope.

422 Unprocessable Entity

Returned when the request body fails validation - for example, an empty name.

429 Too Many Requests

Returned when your organization exceeds its per-minute request limit.

500 Internal Server Error

Returned when the group could not be created due to a server error.

Notes

The new group is always created in the organization the token is bound to. The users_ids you supply are returned as member_user_ids in the response. Retrieve valid user identifiers via GET /v2/users.

Use Cases

This endpoint is useful for:
  • Group provisioning - Programmatically create groups from an external system
  • Team setup - Seed a new group with its initial members in a single request
  • Access organization - Structure users into groups for downstream workflows