---
title: "Create auth magic link"
method: POST
path: "/services/widgets/api/magic-link/users/{leafUserId}/authentication"
tags: ["Magic Link > Authentication"]
---

# Create auth magic link

`POST /services/widgets/api/magic-link/users/{leafUserId}/authentication`

## Path parameters

- `leafUserId` string, required

## Request body

- object
  - `expiresIn` integer
  - `provider` string
  - `settings` object

## Response `201`

Created

---

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