Members

Send a magic login link email

Generates a magic login link and sends it to the member's email address. This sends a real email — it does NOT return the link URL (for security reasons).

Optionally specify a redirectPath in the request body to redirect the member to a specific page after they click the login link (e.g., '/premium-content').

Rate limited to 5 requests per minute per member and 50 requests per minute per site. Returns 429 Too Many Requests if the rate limit is exceeded.

POST /members/{memberId}/login-links

Send a magic login link email

curl --request POST \
  --url 'https://api.sotion.so/api/v1/members/{MEMBERID}/login-links' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "value"
}'
{
  "data": {
    "memberId": "<uuid>",
    "status": "sent"
  }
}

Login link sent.