Skip to Content
Sign in

Redeem a Magic link

Exchange the token from the email for a session. Works only in the browser that asked (ql_link cookie), once, within 15 minutes. Creates the Member on first sign-in.

POST
/auth/magic-links/redeem

Exchange the token from the email for a session. Works only in the browser that asked (ql_link cookie), once, within 15 minutes. Creates the Member on first sign-in.

Request Body

application/json
  1. body
token*string

Response Body

Signed in; sets ql_session

application/json
  1. response
member_id*string
email*string
name?string|null
accounts*array<>
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/auth/magic-links/redeem' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "member_id": "string",  "email": "string",  "name": "string",  "accounts": [    {      "id": "string",      "name": "string",      "role": "owner"    }  ]}