cURL
curl --request POST \ --url https://ai-loop.alpeadria.com/api/v1/validate \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "token": "abc123token" } '
{ "message": "Login successful!", "redirectPath": "/ai-loop" }
Validates the magic link token and sets a JWT cookie if successful.
"[email protected]"
"abc123token"
Login successful.