provider Discovery POST
/v1/b2b/discovery/organizations @utdk/stytch
/v1/b2b/discovery/organizations List
List all possible organization relationships connected to a [Member Session](https://stytch.com/docs/b2b/api/session-object) or Intermediate Session.
When a Member Session is passed in, relationships with a type of `active_member`, `pending_member`, or `invited_member`
will be returned, and any membership can be assumed by calling the [Exchange Session](https://stytch.com/docs/b2b/api/exchange-session) endpoint.
When an Intermediate Session is passed in, all relationship types - `active_member`, `pending_member`, `invited_member`,
`eligible_to_join_by_email_domain`, and `eligible_to_join_by_oauth_tenant` - will be returned,
and any membership can be assumed by calling the [Exchange Intermediate Session](https://stytch.com/docs/b2b/api/exchange-intermediate-session) endpoint.
This endpoint requires either an `intermediate_session_token`, `session_jwt` or `session_token` be included in the request.
It will return an error if multiple are present.
This operation does not consume the Intermediate Session or Session Token passed in.
Try it
Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiDiscoveryV1DiscoveryOrganizationsList()