Skip to content

Verify Magic Link

POST
/api/v1/auth/magic-link/verify
curl --request POST \
--url https://api.qeychain.xyz/api/v1/auth/magic-link/verify \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'

Verify a magic link token, create/find user, link wallet, set auth cookies.

Called by the frontend when the user lands on /magic-login?token=xxx. Returns user info + wallet_address for the frontend to redirect to the dashboard.

Media typeapplication/json
VerifyEmailRequest
object
token
required
Token
string
>= 1 characters
Examplegenerated
{
"token": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}