---
title: "Consume Magic Link"
method: POST
path: "/api/auth/magic_link/consume"
tags: ["Authentication"]
---

# Consume Magic Link

`POST /api/auth/magic_link/consume`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/auth/magic_link/consume`
- Auth: none declared

Atomically exchange a link token or fallback code for the normal login flow.

## Request body

- BodyConsumeMagicLinkApiAuthMagicLinkConsumePost
  - `username` string, required
  - `credential` string, required
  - `cross_region_attempt` boolean
  - `redirect_only` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
