---
title: "Request registration magic link"
method: POST
path: "/v1/auth/magic-link/request"
tags: ["Auth"]
---

# Request registration magic link

`POST /v1/auth/magic-link/request`

Creates a pending email verification and sends magic link email via Postmark. When EMAIL_VERIFICATION_REQUIRED is disabled, auto-verifies and returns a Firebase custom token.

## Headers

- `origin` string, required
- `accept-language` string, required

## Request body

- RequestMagicLinkDto
  - `email` string, required
  - `firebaseUid` string
  - `redirectPath` string — Relative path to redirect the user to after email confirmation
  - `locale` string — UI locale for the email copy (bare code or BCP-47); falls back to Accept-Language, then English

## Response `200`

Magic link sent (empty body) or email auto-verified (body with firebaseCustomToken)

- RequestMagicLinkResponseDto
  - `firebaseCustomToken` string — Present when email verification is disabled — use to sign in directly
  - `firebaseUid` string

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
