Skip to main content
POST
/
api
/
v1
/
validate
Validate magic link
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.

Body

application/json
email
string
required
token
string
required
Example:

"abc123token"

Response

Login successful.

message
string
redirectPath
string