---
title: "Upload a file"
method: POST
path: "/api/v1/file"
---

# Upload a file

`POST /api/v1/file`

Upload a file that will be used in a task.

## Cookies

- `apikey` string

## Response `200`

Successful Response

- ApiResponseUploadFileResponse
  - `r` UploadFileResponse, required — Response model for uploading a file.
    - `id` string, required — The ID assigned to the uploaded file.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/smooth/apis/circlemind-zero.md) · [All operations](https://skmtc.dev/smooth/apis/circlemind-zero/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smooth/circlemind-zero/revisions/472956a12adf/schema)
