---
title: "Api Files Create 2"
method: POST
path: "/api/files/{file_id}/"
tags: ["exports"]
---

# Api Files Create 2

`POST /api/files/{file_id}/`

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

## Path parameters

- `file_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

No response body

- ExportsApiFilesCreate2Response200 — 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/versions/c26d550029f8/schema)
