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
- 200
- 422
- 429
OK
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.