Retrieve vector store file

GEThttps:/api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}

Retrieves a vector store file.

Path parameters

  • vector_store_id
    string
    Required
    The ID of the vector store that the file belongs to.
  • file_id
    string
    Required
    The ID of the file being retrieved.

Response

The vector store file object.

Example request
1
curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \
2
-H "Authorization: Bearer $OPENAI_API_KEY" \
3
-H "Content-Type: application/json" \
4
-H "OpenAI-Beta: assistants=v2"
Example response
1
{
2
"id": "file-abc123",
3
"object": "vector_store.file",
4
"created_at": 1699061776,
5
"vector_store_id": "vs_abcd",
6
"status": "completed",
7
"last_error": null
8
}
Built with