---
title: "Magic Login"
method: POST
path: "/api/public/magic-login"
tags: ["public", "public"]
---

# Magic Login

`POST /api/public/magic-login`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/public/magic-login`
- Auth: none declared

Authenticate a prospect via magic link.

Looks up the prospect by token, verifies eligibility, creates a Clerk
user if needed, and returns a sign-in ticket for frontend authentication.

Refuses requests from email link-scanner bots (Outlook SafeLink, Gmail
image proxy, etc.). These pre-fetch URLs from emails before the human
clicks and would otherwise create premature Clerk users and pollute the
first-click timestamp.

## Request body

- MagicLoginRequest: Request body for magic link authentication.
  - `t` string, required: Magic link token

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
