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 organizations API

Manage organizations.

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

Tagged areas include organizations. 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 7 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.

7 operations 4 paths 7 schemas 1 DELETE4 GET1 POST1 PUT

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 organizations 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 7

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

organizations 7

Manage organizations.

GET
/organizations
List Organizations
OrganizationsController_list 6 params → 200422
POST
/organizations
Create an Organization
OrganizationsController_create body → 201400409422
GET
/organizations/external_id/{external_id}
Get an Organization by External ID
OrganizationsController_getByExternalId 1 param → 200404
GET
/organizations/{id}
Get an Organization
OrganizationsController_find 1 param → 200404
PUT
/organizations/{id}
Update an Organization
OrganizationsController_updateOrganization 1 param body → 200400403404409422
DELETE
/organizations/{id}
Delete an Organization
OrganizationsController_deleteOrganization 1 param → 200202403
GET
/organizations/{id}/audit_log_configuration
Get Audit Log Configuration
OrganizationsController_getAuditLogConfiguration 1 param → 200404

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Organization (10 properties), UpdateOrganizationDto (7 properties), OrganizationDto (6 properties), AuditLogConfiguration (4 properties). Each schema is shown below with its type and property counts.

PaginationOrder
string
AuditLogConfiguration
object
4 properties 3 required
OrganizationDomainDataDto
object
2 properties 2 required
Organization
object
10 properties 8 required
OrganizationDto
object
6 properties 1 required
OrganizationList
object
3 properties 4 required
UpdateOrganizationDto
object
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

workos-organizations-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