capabilities.work

B2B Email Magic Link Discovery and Organization Create

A 3-step recipe with Stytch. We can help you get access.

Recipe · 3 steps

B2B Email Magic Link Discovery and Organization Create

with Stytch · Identity & Access Management

Discovery magic link send, authenticate, then create an organization.

  1. Send a discovery email magic link to the address so the user can begin the organization discovery flow.
  2. Authenticate the discovery magic link token to obtain an intermediate session token and the list of organizations the email already belongs to.
  3. Create a new organization from the intermediate session token, logging the member into the freshly created tenant.
What you'll need to have ready
  • email_address: The email address to send the discovery magic link to.
  • discovery_redirect_url: The URL the user is redirected to after clicking the discovery link.
  • discovery_magic_links_token: The discovery magic link token captured from the clicked link.
  • organization_name: The name of the organization to create from the intermediate session.
  • session_duration_minutes: Optional session lifetime in minutes for the resulting member session.
For your developer

Arazzo workflow stytch:email-magic-link-discovery, 3 operations: api_b2b_magic_v1_b2b_magic_links_email_discovery_Send → api_b2b_magic_v1_b2b_magic_links_discovery_Authenticate → api_discovery_v1_discovery_organizations_Create. Specs on APIs.io.