Skip to main content
The discovery.organizations.list method wraps the List Organizations API endpoint. Use it to list all possible organization given the current Member Session or . If there is a current Member Session, the SDK will call the endpoint with the session token. Otherwise, the SDK will use the intermediate session token. If neither a Member Session nor an intermediate session token is present, this method will fail.

Response

string
The email corresponding to the current intermediate_session_token, session_token, or session_jwt.
array[objects]
An array of Discovered Organizations.
string | null
The organization_id that the intermediate session token is associated with, if any. This field will be null if a session_token or session_jwt is passed in.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.