Exchange a magic-link code (received via email) for an API key.

Single-use; 15-minute TTL. New-account path requires the original request to have included acceptTerms: true.

post/auth/magic-link/consume

Request

  • Base URL: https://stremai.com/api/v1
  • URL: https://stremai.com/api/v1/auth/magic-link/consume
  • Auth: none required

Request body

codestring required

The code from the email body, e.g. MAGK-AB12-CD34-EF56-GH78. Whitespace and casing are tolerated.

Response

Existing user signed in. Body contains apiKey + userId.

Changes

No recorded changes to this operation across all 1 revision of this API.