Skip to main content
Available on Enterprise plans. An organization without an Enterprise plan is refused with HTTP 402 and the error code enterprise_plan_required. Self-hosted deployments need an Enterprise license for the same endpoints. To enable it, reach out to enterprise@langwatch.ai.

Intro

The Groups API lets you manage LangWatch access groups via REST. Groups are collections of users that share the same role bindings — when you assign a role to a group, every member inherits that access. Groups can be created manually via the API or provisioned automatically from your identity provider via SCIM.

Authentication

The Groups API requires an organization-level API key with organization:manage permission (created in Settings > API Keys). Pass it as a Bearer token:

Endpoints

Groups

Members

Role Bindings

SCIM-Managed Groups

Groups provisioned from an identity provider via SCIM are marked with a scimSource field (e.g. "azure-ad", "okta"). SCIM-managed groups have restrictions:
  • Cannot be renamed via this API (the IdP is the source of truth)
  • Cannot have members added or removed manually (membership is managed by the IdP)
  • Role bindings can still be managed via this API

Typical Flow

  1. Create an admin API key in Settings > API Keys with organization:manage permission
  2. Create a group with initial members and role bindings:
  1. All members inherit the MEMBER role on the specified team and all its projects.

Role Binding Scopes

Bindings can target three scope levels: Available roles: ADMIN, MEMBER, VIEWER, CUSTOM (requires customRoleId).

Errors

Last modified on August 10, 2026