GET
/
vector_stores
/
{vector_store_id}
/
files
/
{file_id}
curl --request GET \
  --url https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "vector_store.file",
  "usage_bytes": 123,
  "created_at": 123,
  "vector_store_id": "<string>",
  "status": "in_progress",
  "last_error": {
    "code": "server_error",
    "message": "<string>"
  },
  "chunking_strategy": {
    "type": "static",
    "static": {
      "max_chunk_size_tokens": 2098,
      "chunk_overlap_tokens": 123
    }
  },
  "attributes": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vector_store_id
string
required

The ID of the vector store that the file belongs to.

Example:

"vs_abc123"

file_id
string
required

The ID of the file being retrieved.

Example:

"file-abc123"

Response

200 - application/json

OK

A list of files attached to a vector store.