# Email a one-time sign-in link

```http
POST /auth/magic-links
```

Email sign-in link.

## Request body

| Field          | Type   | Required | Description                                                                                                                                                                                              |
| -------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `email`        | string | Yes      | Recipient of a one-time sign-in link. The emailed link opens GET /auth/magiclink. Requests are limited per email address and client IP; redemption requires the device-binding cookie from this browser. |
| `redirect_url` | string |          | Trusted URL to open after sign-in. Untrusted URLs fall back to the default.                                                                                                                              |

## Responses

| Status | Description                                 |
| ------ | ------------------------------------------- |
| 201    | Link sent; the device-binding cookie is set |
| 400    | Bad request                                 |
| 429    | Rate limit exceeded                         |
| 500    | Server error                                |
| 503    | Service unavailable                         |
