---
title: "Generate upload url"
method: POST
path: "/attachments/v1/files/generate-upload-url"
tags: ["Attachments:v1:Files"]
---

# Generate upload url

`POST /attachments/v1/files/generate-upload-url`

Generates a pre-signed URL that can be used to securely upload an attachment to the cloud. The pre-signed URL ensures temporary access for the upload (300 seconds), and it will be associated with a specific feature within the application.

## Request body

- FileURLCreateRequest
  - `fileName` string, required — The name of the attachment you want to upload
  - `fileTypeHint` string — The MIME type or format of the attachment (e.g. image/jpeg, application/pdf)
  - `featureType` 'chat' | 'shiftscheduler' | 'users' | 'quicktasks', required — An enumeration.

## Response `200`

Successful Response

- APIResponseFileURLResponse
  - `requestId` string
  - `data` FileURLResponse, required
    - `fileId` string, required — The unique identifier for the file
    - `uploadFileUrl` string, uri, required — The pre-signed URL for uploading the file to the cloud storage

## Other responses

- `422` — Validation Error

---

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