---
title: "Generates a URL to upload a file to."
method: POST
path: "/files/generateuploadurl"
tags: ["fileUpload"]
---

# Generates a URL to upload a file to.

`POST /files/generateuploadurl`

Generates a URL that can be used to upload a file. Use the returned upload id to create a file entry. See <see cref="T:Awork.Files.Service.Feature.FileUpload.Endpoints.PostUploadByUploadId" /> for more information.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Headers

- `Authorization` string, required

## Response `200`

OK

- GenerateUploadUrlResponseModel
  - `uploadId` string, required — The id of the temporary container that the file will be uploaded to.
  - `uploadURL` string, required — The URL that the client should upload the file to.

---

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