Skip to main content
POST
/
auth
/
magic-link
/
verify
Verify magic link token and return auth tokens
curl --request POST \
  --url https://api.example.com/auth/magic-link/verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "magic-link-token-uuid"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "user": {
    "id": "uuid",
    "email": "user@example.com",
    "roles": [
      "user"
    ],
    "firstName": "John",
    "lastName": "Doe",
    "image": "https://example.com/image.jpg"
  }
}

Body

application/json
token
string
required
Example:

"magic-link-token-uuid"

Response

Sign-in successful

access_token
string
required
refresh_token
string
required
user
object
required
Example:
{
"id": "uuid",
"email": "user@example.com",
"roles": ["user"],
"firstName": "John",
"lastName": "Doe",
"image": "https://example.com/image.jpg"
}