---
title: "Post upload"
method: POST
path: "/upload"
---

# Post upload

`POST /upload`

Upload files to the specified upload path.

## Response `200`

OK

- UploadResponseBody
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `filePath` string, required — Path of the file
  - `ok` boolean, required — Indicates whether the files were uploaded successfully.

## Other responses

- `default` — Error

## Changes

- **2025-10-13** `e6147f7bdb93` — 1 breaking
  - the response property `errors` became nullable for the status `default`
- **2025-10-06** `930a69dcb987` — 1 info
  - endpoint added
- **2025-04-15** `d070058196c1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/coder/apis/agentapi/changes/upload/post.md)

---

[API](https://skmtc.dev/coder/apis/agentapi.md) · [All operations](https://skmtc.dev/coder/apis/agentapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/agentapi/revisions/b33e590af299/schema)
