# Verify a magic link

```http
GET /auth/magiclink
```

Verify a magic link.

## Parameters

| Name           | In    | Required | Description                                                                                                         |
| -------------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------- |
| `token`        | query | Yes      | One-time JWT from the sign-in email. Redeem it in the browser with the device-binding cookie from the link request. |
| `redirect_url` | query |          | URL to redirect after verification                                                                                  |
| `redirectUrl`  | query |          |                                                                                                                     |

## Responses

| Status | Description                                                                                                             |
| ------ | ----------------------------------------------------------------------------------------------------------------------- |
| 302    | Redirect to the application with an auth cookie set, or to the sign-in page with a typed magic\_link\_\* failure reason |
| 400    | Malformed request rejected by query validation before the handler runs                                                  |
| 429    | Too many verification attempts                                                                                          |
| 500    | Unexpected verification failure                                                                                         |
| 503    | Token consumption could not be confirmed; retry the request                                                             |
