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

# Changes to Upload a file

`POST /api/v1/file`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 23 revisions.

- **2026-06-18** `0d76e116afe5`: 1 info
- **2026-06-14** `6b73b947caab`: 1 breaking
- **2026-03-09** `3d43cee2622a`: 5 breaking, 7 info

## Changes

- **2026-06-18** `0d76e116afe5`: 1 info
  - endpoint added
- **2026-06-14** `6b73b947caab`: 1 breaking
  - api path removed without deprecation
- **2026-03-09** `3d43cee2622a`: 5 breaking, 7 info
  - the response property `message` became nullable for the status `200`
  - the response property `data` became optional for the status `200`
  - the response property `status` became optional for the status `200`
  - the `status` response property const value `ok` was removed for the status `200`
  - the `data` response's property type changed from no type to `object` for status `200`
  - api operation id `uploadOpenApiFile` removed and replaced with ``
  - the endpoint scheme security `ApiKeyHeader` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the optional property `data/attachment_id` to the response with the `200` status
  - added the optional property `data/filename` to the response with the `200` status
  - added the optional property `data/type` to the response with the `200` status

---

[Operation](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/docs/api/v1/file/post.md) - [API](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1.md) - [Page](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/file/post)
