---
title: "Create file upload magic link"
method: POST
path: "/services/widgets/api/magic-link/users/{leafUserId}/file-upload"
tags: ["Magic Link > File Upload"]
---

# Create file upload magic link

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

## Path parameters

- `leafUserId` string, required

## Request body

- object
  - `expiresIn` integer
  - `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/revisions/996a726d9e69/schema)
