WorkOS: API Design โ SSO, Directory Sync & AuthKit
Docs-backedREST API at api.workos.com. SSO: GET /sso/authorize initiates SAML/OIDC flow, POST /sso/token exchanges code for profile. Directory Sync: GET /directories lists connected directories, GET /directory_users lists synced users, webhooks deliver user/group change events. AuthKit: GET /user_management/authorize initiates auth, POST /user_management/authenticate completes it. The SSO flow abstracts SAML complexity โ agents handle OAuth-style redirects regardless of whether the underlying protocol is SAML or OIDC. Organization management: POST /organizations creates customer organizations, each with their own SSO/directory connections. The Admin Portal is launched via a portal link for customer self-service. Events API provides audit log functionality. The API design successfully abstracts enterprise identity complexity behind familiar OAuth patterns.