Magic Links
Loginorcreate
Changed onSend either a login or signup Magic Link to the User based on if the email is associated with a User already. A new or pending User will receive a signup Magic Link. An active User will receive a login Magic Link. For more information on how to control the status your Users are created in see the create_user_as_pending flag.
Next steps
The User is emailed a Magic Link which redirects them to the provided redirect URL. Collect the token from the URL query parameters and call Authenticate Magic Link to complete authentication.
post/v1/magic_links/email/login_or_create
Request
- Base URLhttps://api.stytch.com
- AuthHTTP basic
Request body
Response
Successful response
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking