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

# GET /files

`GET /files`

Gets a list of previously uploaded files.

## Query parameters

- `purpose` 'fine-tune' | 'fine-tune-results' | 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'vision'

## Response `200`

The requested list of files.

- FileListResponse — The response data from a file list operation.
  - `object` 'list', required — The object type, which is always 'list'.
  - `data` OpenAIFile[], required — The files returned for the request.
    - `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/versions/453a64f820f0/schema)
