Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WorkOS groups API

Organize and manage user groups within organizations.

WorkOS groups API is one of 41 APIs that WorkOS publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include groups. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a GitHub repository, a changelog, and pricing.

This API exposes 8 operations across 4 paths, and defines 7 schemas. It is described by OpenAPI 3.1.1, at version 1.0.

Requests are made against 2 base URLs: https://api.workos.com, https://api.workos-test.com.

8 operations 4 paths 7 schemas 2 DELETE3 GET1 PATCH2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.1
API Version
1.0
Base URL
https://api.workos.com
Authentication
HTTP Bearer, HTTP Bearer
Contact
License
Resource Areas
1

Authentication & Security 2

WorkOS groups API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearer). It accepts HTTP bearer tokens (JWT) (access_token). By default, every request must be authenticated.

  • bearer — Your WorkOS API key prefixed with sk. Pass it as a Bearer token: Authorization: Bearer skexample123456789.
  • access_token — An SSO access token returned from the Get a Profile and Token endpoint.

Paths & Operations 8

Across 4 paths, the API surfaces 8 operations — 2 DELETE, 3 GET, 1 PATCH, 2 POST. Each is listed below with its method, path, parameters, and response codes.

groups 8

Organize and manage user groups within organizations.

POST
/organizations/{organizationId}/groups
Create a Group
GroupsController_create 1 param body → 201400403404422
GET
/organizations/{organizationId}/groups
List Groups
GroupsController_list 5 params → 200403404
GET
/organizations/{organizationId}/groups/{groupId}
Get a Group
GroupsController_get 2 params → 200403404
PATCH
/organizations/{organizationId}/groups/{groupId}
Update a Group
GroupsController_update 2 params body → 200400403404422
DELETE
/organizations/{organizationId}/groups/{groupId}
Delete a Group
GroupsController_delete 2 params → 204403404
POST
/organizations/{organizationId}/groups/{groupId}/organization-memberships
Add a Member to a Group
GroupMembershipsController_addMember 2 params body → 200400403404422
GET
/organizations/{organizationId}/groups/{groupId}/organization-memberships
List Group Members
GroupMembershipsController_listMembers 6 params → 200403404
DELETE
/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}
Remove a Member from a Group
GroupMembershipsController_removeMember 3 params → 204403404

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Group (7 properties), GroupList (3 properties), UserlandUserOrganizationMembershipBaseList (3 properties), CreateGroupDto (2 properties). Each schema is shown below with its type and property counts.

CreateGroupMembershipDto
object
1 property 1 required
UserlandUserOrganizationMembershipBaseList
object
3 properties 3 required
PaginationOrder
string
UpdateGroupDto
object
2 properties
Group
object
7 properties 7 required
GroupList
object
3 properties 3 required
CreateGroupDto
object
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

workos-groups-api-openapi.yml Raw ↑

Other APIs WorkOS publishes across the network.

WorkOS admin-portal API
WorkOS api_keys API
WorkOS application.client-secrets API
WorkOS applications API
WorkOS audit-logs API
WorkOS authorization API
WorkOS connections API
WorkOS directories API
WorkOS directory-groups API
WorkOS directory-users API
WorkOS events API
WorkOS feature-flags API