---
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

---

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