Send Login or Signup Email
Send a login or signup Email Magic Link to a member using the Stytch B2B API
status.
A new, pending, or invited Member will receive a signup Email Magic Link. The Member will then have a pending status until they successfully authenticate.
An active Member will receive a login Email Magic Link.
The magic link is valid and can be authenticated for 60 minutes, after which the Member will need to request a new magic link.Authorizations
Body
Request type
The URL that the Member clicks from the login Email Magic Link. This URL should be an endpoint in the backend server that verifies the request by querying Stytch's authenticate endpoint and finishes the login. If this value is not passed, the default login redirect URL that you set in your Dashboard is used. If you have not set a default login redirect URL, an error is returned.
The URL the Member clicks from the signup Email Magic Link. This URL should be an endpoint in the backend server that verifies the request by querying Stytch's authenticate endpoint and finishes the login. If this value is not passed, the default sign-up redirect URL that you set in your Dashboard is used. If you have not set a default sign-up redirect URL, an error is returned.
Use a custom template for login emails. By default, it will use your default email template. Templates can be added in the Stytch dashboard using our built-in customization options or custom HTML templates with type “Magic Links - Login”.
Used to determine which language to use when sending the user this delivery method. Parameter is an IETF BCP 47 language tag, e.g. "en".
If no value is provided, the copy defaults to English.
en, es, pt-br, fr Response
Successful response