---
title: "Upload file"
method: POST
path: "/v1/files"
tags: ["files"]
---

# Upload file

`POST /v1/files`

Upload a new file.

Args:
    file: The file to upload.

Returns:
    FileResponse: The response containing the details of the uploaded file.

## Response `201`

The uploaded file details

- FileObject — A model representing a file object in the system. This model contains metadata about files stored in the system, including identifiers, size information, and timestamps.
  - `id` string, required — Unique identifier for the file
  - `filename` string, required — Name of the file including extension
  - `bytes` integer, required — Size of the file in bytes
  - `mime_type` string, required — MIME type of the file
  - `version` integer, required — Version of the file
  - `created_at` string, date-time, required — Timestamp when the file was created
  - `updated_at` string, date-time, required — Timestamp when the file was last updated

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/versions/2eece97b5ae5/schema)
