---
title: "POST /files"
method: POST
path: "/files"
---

# POST /files

`POST /files`

Uploads a file for use by other operations.

## Response `200`

A representation of the uploaded file.

- OpenAIFile — Represents an assistant that can call the model and use tools.
  - `object` 'file', required — The object type, which is always 'file'.
  - `id` string, required — The identifier, which can be referenced in API endpoints.
  - `bytes` integer, required — The size of the file, in bytes.
  - `filename` string, required — The name of the file.
  - `created_at` integer, required — The Unix timestamp, in seconds, representing when this object was created.
  - `purpose` 'fine-tune' | 'fine-tune-results' | 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'vision', required — The possible values denoting the intended usage of a file.
  - `status` 'uploaded' | 'pending' | 'running' | 'processed' | 'error' | 'deleting' | 'deleted' — The state of the file.
  - `status_details` string — The error message with details in case processing of this file failed. This field is available in Azure OpenAI only.

---

[API](https://skmtc.net/azure/apis/ai-openai-assistants-openapiv2.md) · [All operations](https://skmtc.net/azure/apis/ai-openai-assistants-openapiv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/ai-openai-assistants-openapiv2/revisions/453a64f820f0/schema)
