---
title: "GET /vector_stores/{vectorStoreId}/files"
method: GET
path: "/vector_stores/{vectorStoreId}/files"
---

# GET /vector_stores/{vectorStoreId}/files

`GET /vector_stores/{vectorStoreId}/files`

Returns a list of vector store files.

## Path parameters

- `vectorStoreId` string, required

## Query parameters

- `filter` 'in_progress' | 'completed' | 'failed' | 'cancelled'
- `api-version` string, required
- `limit` integer
- `order` 'asc' | 'desc'
- `after` string
- `before` string

## Response `200`

The request has succeeded.

- object — The response data for a requested list of items.
  - `data` VectorStoreFile[], required — The requested list of items.
    - `id` string, required — The identifier, which can be referenced in API endpoints.
    - `object` 'vector_store.file', required — The object type, which is always `vector_store.file`.
    - `usage_bytes` integer, required — The total vector store usage in bytes. Note that this may be different from the original file size.
    - `created_at` integer, required — The Unix timestamp (in seconds) for when the vector store file was created.
    - `vector_store_id` string, required — The ID of the vector store that the file is attached to.
    - `status` 'in_progress' | 'completed' | 'failed' | 'cancelled', required — Vector store file status
    - `last_error` VectorStoreFileError, required — Details on the error that may have occurred while processing a file for this vector store
      - `code` 'server_error' | 'invalid_file' | 'unsupported_file', required — Error code variants for vector store file processing
      - `message` string, required — A human-readable description of the error.
    - `chunking_strategy` VectorStoreChunkingStrategyResponse, required — An abstract representation of a vector store chunking strategy configuration.
      - `type` 'other' | 'static', required — Type of chunking strategy
  - `last_id` string — The last ID represented in this list.
  - `has_more` boolean, required — A value indicating whether there are additional values available not captured in this list.

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