Get organization IDs from the token or the first WorkOS membership page
Changed onAccepts only a WorkOS user access token: a Factory API key, including a service account's, is answered 401, as is a request without a bearer credential or with a token whose signature does not verify. For a token that carries a WorkOS organization, returns that organization alone; otherwise returns organization IDs from only the first page of WorkOS memberships for the token's user (active ones, up to 10, under WorkOS's current defaults), without following or returning a pagination cursor. A 429 passes on WorkOS rate limiting of that list. A 503 means WorkOS could not serve the request: its signing keys could not be fetched to check the token, or the list answered a server error or bad JSON, or was unreachable.
Request
- Base URLhttps://api.factory.ai
- AuthHTTP bearer
Headers
Ignored: the answer depends only on the bearer token.
Response
Response for status 200
Changes
- info
endpoint added
- info