Open App

Organizations

API endpoints for organizations

List organizations (stub until wired)

GET /api/v1/organizations

Example request

curl -X GET \
"https://api.example.com/api/v1/organizations" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Other statuses: 401.

Response body type


Get organization by WorkOS id

GET /api/v1/organizations/{id}

Parameters

NameInTypeRequiredDescription
idpathstringYes

Example request

curl -X GET \
"https://api.example.com/api/v1/organizations/<id>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Other statuses: 401.

Response body type