Skip to main content

Consume Sign-In Link

POST 

/api/supplier-portal/auth/magic-link

Exchange the token from an emailed sign-in link for a session. The link works once and expires 15 minutes after it was requested. Opening it from a different network than the one that requested it still works, but is recorded in the supplier's audit trail.

Body: token (required, string).

Successful sign-in returns {access_token, token_type, user}. When the email has logins under several suppliers, the response is instead {requires_account_selection: true, selection_token, accounts: [{id, supplier_name}]} — finish with Select Account within 10 minutes.

Request​

Responses​

OK

Response Headers
    Content-Type