Returns a paginated list of files in a file batch.
GET
/vector_stores/{vector_store_id}/file_batches/{batch_id}/files
Authorization
AuthorizationRequiredBearer <token>
In: header
Path Parameters
vector_store_idRequiredstring
The ID of the vector store.
batch_idRequiredstring
The ID of the file batch.
Query Parameters
limitnumber
Number of results to return (1-100).
orderstring
Sort order: asc or desc.
afterstring
Cursor for forward pagination.
beforestring
Cursor for backward pagination.
filterstring
Filter by file status: in_progress, completed, failed, or cancelled.
Example
Request
Response
Retrieve file batch
Check a file batch by batch ID to see how indexing is progressing. Covers the path parameters, the file batch object returned (status, file_counts), and an example request and response.
Cancel file batch
Cancel a file batch that is still indexing; completed files are kept. Covers the path parameters, the cancelled file batch object returned, and an example request and response.