---
title: "Changes to Upload a file"
method: POST
path: "/v1/upload_file"
---

# Changes to Upload a file

`POST /v1/upload_file`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 86 revisions.

- **2026-08-19** `830020b643cd` — 3 info
- **2026-06-08** `3a3616091b66` — 1 breaking, 5 info
- **2026-02-04** `a8899e7707c4` — 1 info

## Changes

- **2026-08-19** `830020b643cd` — 3 info
  - added the new optional request property `retention_days`
  - added the optional property `expires_at` to the response with the `200` status
  - added the optional property `file_id` to the response with the `200` status
- **2026-06-08** `3a3616091b66` — 1 breaking, 5 info
  - the `file` request property contentMediaType changed from `` to `application/octet-stream`
  - `header` request parameter `x-api-key` list-of-types was widened by adding types `null`
  - for the `header` request parameter `x-api-key`, the type was generalized from `string` to no type
  - the `file` request property format was generalized from `binary` to no format
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-02-04** `a8899e7707c4` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/docs/v1/upload_file/post.md) · [API](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2.md) · [Page](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/changes/v1/upload_file/post)
