Skip to main content

Verify

GET 

/auth/verify

Consume a verification magic link and issue tokens (SCRIFT-79).

Returns the same shape the pre-SCRIFT-79 register used to return: accessToken, refreshToken, apiKey, user. The raw API key is surfaced here - the registration-time key is rotated away so the caller receives exactly one persistent key.

Errors:

  • 400 invalid_token - hash not found
  • 400 token_expired - past expires_at
  • 400 token_already_used - second click on the same link
  • 403 cross_site_request_refused - sent from a page outside the CORS allow-list

With X-Scrift-Web-Session, the refresh token is set as the web session cookie and left out of the body (Batch A2).

On success, one "account active" email is scheduled after the response. Every error above raises before that line, so an invalid, expired or repeated link sends nothing.

Request​

Responses​

Successful Response