---
title: "Verify magic link token"
method: GET
path: "/magic-link/verify"
tags: ["Magic Link Plugin"]
---

# Verify magic link token

`GET /magic-link/verify`

Verifies a magic link token. If a callback_url is provided and trusted, redirects the user with an exchange token appended. Otherwise returns the exchange token in the JSON response.

## Query parameters

- `token` string, required
- `callback_url` string

## Response `200`

OK

- MagicLinkVerifyResponse
  - `message` string, required
  - `token` string

---

[API](https://skmtc.net/authula/apis/authula-api.md) · [All operations](https://skmtc.net/authula/apis/authula-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/authula/authula-api/revisions/ee28a7965ce5/schema)
