How to hit the WorkOS API

WorkOS's API at https://api.workos.com powers enterprise SSO, directory sync, and user management.

Authentication

Create a token at WorkOS dashboard → API Keys. Send it as Authorization: Bearer <token>. In the examples it's written {{WORKOS_API_KEY}}.

Full reference: https://workos.com/docs/reference

List organizations

curl https://api.workos.com/organizations \
  -H "Authorization: Bearer {{WORKOS_API_KEY}}"
Run in PostTaco

List users

curl https://api.workos.com/user_management/users \
  -H "Authorization: Bearer {{WORKOS_API_KEY}}"
Run in PostTaco

List SSO connections

curl https://api.workos.com/connections \
  -H "Authorization: Bearer {{WORKOS_API_KEY}}"
Run in PostTaco