---
title: "Generate Magic Link"
method: POST
path: "/Auth/MagicLink"
tags: ["Auth"]
---

# Generate Magic Link

`POST /Auth/MagicLink`

**Auth:** Anonymous - no token required.

Generates a Magic Link for the user to login, and optionally returns the link

## Query parameters

- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Request body

- PostGenerateMagicLinkRequest
  - `email` string, nullable
  - `mobile` boolean
  - `returnLink` boolean

## Response `200`

Success Message - Either Null or the link

- PostGenerateMagicLinkResponse
  - `link` string, nullable
  - `meta` Meta
    - `page` integer
    - `pageSize` integer
    - `total` integer

## Other responses

- `400` — An Error Occurred - Could not generate Link

---

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