Create a file batch to add multiple files to a vector store at once. All files will be asynchronously indexed. A maximum of 50 files can be added per batch.
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
application/jsonRequiredfile_idsRequiredarray<string>
List of file IDs to add (max 50 per batch).
chunking_strategyobject
Only {"type": "auto"} is supported.
attributesobject
Key-value attributes applied to all files in the batch (max 16 keys, key max 64 chars, values: string max 512 chars, number, or boolean).
Path Parameters
vector_store_idRequiredstring
The ID of the vector store.
Example
Request
Response
Remove file from vector store
Remove a file and its vectors from a vector store. Covers the path parameters, the deletion confirmation object (id, object, deleted), and an example request and 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.