/
Send magic link email
Send a magic link email for passwordless authentication. Rate limited to 3 requests per email per 10 minutes.
Security
projectKey
URL to redirect to after successful authentication
Example:"https://app.example.com/dashboard"
- Mock serverhttps://docs.pers.ninja/_mock/swagger/auth/magic-link/send
- https://api.pers.ninja/v2https://api.pers.ninja/v2/auth/magic-link/send
curl -i -X POST \
https://docs.pers.ninja/_mock/swagger/auth/magic-link/send \
-H 'Content-Type: application/json' \
-H 'x-project-key: YOUR_API_KEY_HERE' \
-d '{
"email": "user@example.com",
"redirectUrl": "https://app.example.com/dashboard",
"language": "en",
"params": {
"returnPath": "/dashboard",
"campaign": "signup"
}
}'Magic link sent successfully
Response
{ "success": true, "message": "Magic link sent successfully", "errorCode": "MAGIC_LINK_EMAIL_SEND_FAILED" }