---
title: "Upload a file"
method: POST
path: "/v2/files"
tags: ["File"]
---

# Upload a file

`POST /v2/files`

Upload a file.

## Response `200`

File uploaded successfully

- FileUploadResult
  - `id` string — File ID
  - `createdAt` string, date-time — The time the file was uploaded
  - `fileName` string — The name of the uploaded file
  - `size` integer — The size of the uploaded file in bytes
  - `mimeType` string — The MIME type of the uploaded file

## Other responses

- `401` — Unauthorized
- `404` — Resource not found
- `500` — Internal Server Error

---

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