---
title: "Create magic link"
method: POST
path: "/magic-link"
tags: ["magicLink"]
---

# Create magic link

`POST /magic-link`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/magic-link`
- Auth: HTTP bearer

**Restricted access.** This endpoint requires a completed Customer Due Diligence (CDD) check and allowlisting for your organization. Without them, requests return `403 Forbidden`. Contact your Deel representative to request access.

Generates a time-limited magic link for password-free worker authentication. The link and its expiry timestamp are returned in the response.

 **Token scopes**: `worker:read`

## Request body

- object
  - `data` MagicLinkPostRequestBodyContentApplicationJsonSchemaData
    - `redirect_path` string: Path to redirect the user to after successful authentication.

## Response `201`

Magic link generated successfully

- MagicLinkCreateMagicLinkResponse201
  - `data` MagicLinkPostResponsesContentApplicationJsonSchemaData, required
    - `expires_at` string, date-time, required: When the magic link expires (ISO 8601 format)
    - `magic_link` string, required: The magic link URL that users can click and log in to deel automatically.

## Other responses

- `400`: Operation failed.
- `401`: Unauthorized - Invalid or missing authentication token
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/deel/apis/endpoints.md) - [All operations](https://skmtc.dev/deel/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints/revisions/0c7142fd9f93?raw)
