---
title: "Upload file"
method: POST
path: "/uploads/file"
tags: ["product:chat"]
---

# Upload file

`POST /uploads/file`

Uploads file

## Response `201`

Successful response

- FileUploadResponse, nullable
  - `duration` string, required — Duration of the request in milliseconds
  - `file` string — URL to the uploaded asset. Should be used to put to `asset_url` attachment field
  - `thumb_url` string — URL of the file thumbnail for supported file formats. Should be put to `thumb_url` attachment field

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

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