B2B Email OTP Discovery and Exchange
A 3-step recipe with Stytch. We can help you get access.
Recipe · 3 steps
B2B Email OTP Discovery and Exchange
with Stytch · Identity & Access Management
Send a discovery email OTP, authenticate the code, then exchange into an org.
- Send a discovery email one-time passcode to the address so the user can begin the organization discovery flow.
- Authenticate the discovery passcode to obtain an intermediate session token and the organizations the email already belongs to.
- Exchange the intermediate session token into the chosen organization to mint a full member session.
What you'll need to have ready
- email_address: The email address to send the discovery passcode to.
- code: The discovery one-time passcode the user received and entered.
- organization_id: The id of the discovered organization to exchange into.
- session_duration_minutes: Optional session lifetime in minutes for the resulting member session.
For your developer
Arazzo workflow stytch:email-otp-discovery, 3 operations: api_b2b_otp_v1_b2b_otp_email_discovery_Send → api_b2b_otp_v1_b2b_otp_email_discovery_Authenticate → api_discovery_v1_discovery_intermediate_sessions_Exchange. Specs on APIs.io.