Skip to main content
POST
Verify a magic link (token in body) and start a session
This is the preferred form of magic-link verification. The token travels in the JSON body rather than the query string, so it is not written to Referer headers, browser history, or access logs. The GET form is kept for links opened directly from email clients.

Request Body

Example Request

Response

The 7-day session is delivered only as the httpOnly portal_session cookie (plus a readable portal_csrf double-submit cookie) — it is never in the JSON body. Send subsequent portal requests with credentials: "include".
Magic link tokens are single-use and expire after 15 minutes. An invalid or expired token returns 401 with the canonical error envelope.

Authorizations

Authorization
string
header
required

Body

application/json
token
string
required

Response

Session created.

message
string