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

# GET /vector_stores/{vectorStoreId}/files/{fileId}

`GET /vector_stores/{vectorStoreId}/files/{fileId}`

Retrieves a vector store file.

## Path parameters

- `vectorStoreId` string, required
- `fileId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- VectorStoreFile — Description of a file attached to a vector store.
  - `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

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