---
title: "Upload File"
method: POST
path: "/api/files/"
tags: ["openAiBatch"]
---

# Upload File

`POST /api/files/`

Upload a file to the provider.

Required fields:
- file: The file to upload (multipart/form-data)
- purpose: The purpose of the file (e.g., "batch", "assistants")
- provider_id: The provider to upload to (e.g., "openai", "parasail")

## Headers

- `Authorization` string, required

## Response `200`

No response body

- OpenAIBatchUploadFileResponse200 — Empty response body

## Changes

- **2026-07-31** `c26d550029f8` — 3 breaking, 6 warning, 2 info
  - removed the request body
  - removed the required property `id` from the response with the `200` status
  - removed the required property `object` from the response with the `200` status
  - removed the optional property `bytes` from the response with the `200` status
  - …7 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/files/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c26d550029f8/schema)
