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

# Changes to Upload a file

`POST /files`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 303 revisions.

- **2026-07-29** `6968addaaf97` — 9 breaking, 4 info

## Changes

- **2026-07-29** `6968addaaf97` — 9 breaking, 4 info
  - added `#/components/schemas/OpenRouterFile, #/components/schemas/OpenAIFile, #/components/schemas/AnthropicFile` to the response body `oneOf` list for the response status `200`
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `downloadable` from the response with the `200` status
  - removed the required property `filename` from the response with the `200` status
  - removed the required property `id` from the response with the `200` status
  - removed the required property `mime_type` from the response with the `200` status
  - removed the required property `size_bytes` from the response with the `200` status
  - removed the required property `type` from the response with the `200` status
  - added the new optional `query` request parameter `provider`
  - added response discriminator for the response status `200`
  - added the non-success response with the status `502`
  - added the non-success response with the status `503`

---

[Operation](https://skmtc.dev/openrouterteam/apis/openrouter-api/docs/files/post.md) · [API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) · [Page](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/files/post)
