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

# GET /files

`GET /files`

Gets a list of previously uploaded files.

## Query parameters

- `api-version` string, required
- `purpose` 'assistants' | 'assistants_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` FileInfo[], 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` 'assistants' | 'assistants_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.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/ai-azure-ai-agents.md) · [All operations](https://skmtc.net/azure/apis/ai-azure-ai-agents/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/ai-azure-ai-agents/versions/de4a99f09829/schema)
