The ID of the vector store to delete.
Delete a vector store.
Path Parameters
Response
200 application/json
Response
OK
DeleteVectorStoreResponse
Allowed values:vector_store.deleted
Authentication
Path Parameters
Create a vector store file batch.
Path Parameters
The ID of the vector store for which to create a File Batch.
Example:vs_abc123
Body
application/json
Body
CreateVectorStoreFileBatchRequest
A list of File IDs that the vector store should use. Useful for tools like file_search that can access files.
>= 1 items<= 500 items
One OfThe chunking strategy used to chunk the file(s). If not set, will use the auto strategy.
The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.
Show Child Parameters
Response
200 application/json
Response
OK
Vector store file batch
A batch of files attached to a vector store.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.file_batch.
Allowed values:vector_store.files_batch
The Unix timestamp (in seconds) for when the vector store files batch was created.
The ID of the vector store that the File is attached to.
The status of the vector store files batch, which can be either in_progress, completed, cancelled or failed.
Allowed values:in_progresscompletedcancelledfailed
Show Child Parameters
Authentication
Path Parameters
Body
Retrieves a vector store file batch.
Path Parameters
The ID of the vector store that the file batch belongs to.
Example:vs_abc123
The ID of the file batch being retrieved.
Example:vsfb_abc123
Response
200 application/json
Response
OK
Vector store file batch
A batch of files attached to a vector store.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.file_batch.
Allowed values:vector_store.files_batch
The Unix timestamp (in seconds) for when the vector store files batch was created.
The ID of the vector store that the File is attached to.
The status of the vector store files batch, which can be either in_progress, completed, cancelled or failed.
Allowed values:in_progresscompletedcancelledfailed
Show Child Parameters
Authentication
Path Parameters
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Path Parameters
The ID of the vector store that the file batch belongs to.
The ID of the file batch to cancel.
Response
200 application/json
Response
OK
Vector store file batch
A batch of files attached to a vector store.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.file_batch.
Allowed values:vector_store.files_batch
The Unix timestamp (in seconds) for when the vector store files batch was created.
The ID of the vector store that the File is attached to.
The status of the vector store files batch, which can be either in_progress, completed, cancelled or failed.
Allowed values:in_progresscompletedcancelledfailed
Show Child Parameters
Authentication
Path Parameters
Returns a list of vector store files in a batch.
Query Parameters
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Default:20
Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
Allowed values:ascdesc
Default:desc
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Filter by file status. One of in_progress, completed, failed, cancelled.
Allowed values:in_progresscompletedfailedcancelled
Path Parameters
The ID of the vector store that the files belong to.
The ID of the file batch that the files belong to.
Response
200 application/json
Response
OK
ListVectorStoreFilesResponse
Example:list
A list of files attached to a vector store.
Show Child Parameters
Example:file-abc123
Example:file-abc456
Example:false