{ "opencollection": "1.0.0", "info": { "name": "Stytch B2B Authentication Application B2B Magic Links API", "version": "2.0.0" }, "items": [ { "info": { "name": "B2B Magic Links", "type": "folder" }, "items": [ { "info": { "name": "Authenticate", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/b2b/magic_links/authenticate", "body": { "type": "json", "data": "{}" } }, "docs": "Authenticate a Member with a Magic Link. This endpoint requires a Magic Link token that is not expired or previously used. If the Member's status is `pending` or `invited`, they will be updated to `active`.\nProvide the `session_duration_minutes` parameter to set the lifetime of the session. If the `session_duration_minutes` parameter is not specified, a Stytch session will be created with a 60 minute duration.\n\nIf the Member is required to complete MFA to log in to the Organization, the returned" }, { "info": { "name": "Loginorsignup", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/b2b/magic_links/email/login_or_signup", "body": { "type": "json", "data": "{}" } }, "docs": "Send either a login or signup magic link to a Member. A new, pending, or invited Member will receive a signup Email Magic Link. Members will have a `pending` status until they successfully authenticate. An active Member will receive a login Email Magic Link.\n\nThe magic link is valid for 60 minutes." }, { "info": { "name": "Invite", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/b2b/magic_links/email/invite", "headers": [ { "name": "X-Stytch-Member-Session", "value": "" }, { "name": "X-Stytch-Member-SessionJWT", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Send an invite email to a new Member to join an Organization. The Member will be created with an `invited` status until they successfully authenticate. Sending invites to `pending` Members will update their status to `invited`. Sending invites to already `active` Members will return an error.\n\nThe magic link invite will be valid for 1 week.\n\n## Revoke an invite\n\nTo revoke an existing invite, use the [Delete Member](https://stytch.com/docs/b2b/api/delete-member) endpoint. This will both delete th" }, { "info": { "name": "Authenticate", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/b2b/magic_links/discovery/authenticate", "body": { "type": "json", "data": "{}" } }, "docs": "Authenticates the Discovery Magic Link token and exchanges it for an Intermediate Session Token. Intermediate Session Tokens can be used for various Discovery login flows and are valid for 10 minutes." } ] } ], "bundled": true }