Returns a list of vector stores.
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.
Response
200 application/json
Response
OK
ListVectorStoresResponse
Example:list
A vector store is a collection of processed files can be used by the file_search tool.
Show Child Parameters
Example:vs_abc123
Example:vs_abc456
Example:false
Authentication
Query Parameters
Create a vector store.
Body
application/json
Body
CreateVectorStoreRequest
A list of File IDs that the vector store should use. Useful for tools like file_search that can access files.
<= 500 items
The name of the vector store.
The expiration policy for a vector store.
Show Child Parameters
One OfThe chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty.
The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.
Show Child Parameters
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Response
200 application/json
Response
OK
Vector store
A vector store is a collection of processed files can be used by the file_search tool.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.
Allowed values:vector_store
The Unix timestamp (in seconds) for when the vector store was created.
The name of the vector store.
The total number of bytes used by the files in the vector store.
Show Child Parameters
The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.
Allowed values:expiredin_progresscompleted
The expiration policy for a vector store.
Show Child Parameters
The Unix timestamp (in seconds) for when the vector store will expire.
The Unix timestamp (in seconds) for when the vector store was last active.
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Authentication
Body
Retrieves a vector store.
Path Parameters
The ID of the vector store to retrieve.
Response
200 application/json
Response
OK
Vector store
A vector store is a collection of processed files can be used by the file_search tool.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.
Allowed values:vector_store
The Unix timestamp (in seconds) for when the vector store was created.
The name of the vector store.
The total number of bytes used by the files in the vector store.
Show Child Parameters
The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.
Allowed values:expiredin_progresscompleted
The expiration policy for a vector store.
Show Child Parameters
The Unix timestamp (in seconds) for when the vector store will expire.
The Unix timestamp (in seconds) for when the vector store was last active.
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Authentication
Path Parameters
Modifies a vector store.
Path Parameters
The ID of the vector store to modify.
Body
application/json
Body
UpdateVectorStoreRequest
The name of the vector store.
The expiration policy for a vector store.
Show Child Parameters
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Response
200 application/json
Response
OK
Vector store
A vector store is a collection of processed files can be used by the file_search tool.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.
Allowed values:vector_store
The Unix timestamp (in seconds) for when the vector store was created.
The name of the vector store.
The total number of bytes used by the files in the vector store.
Show Child Parameters
The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.
Allowed values:expiredin_progresscompleted
The expiration policy for a vector store.
Show Child Parameters
The Unix timestamp (in seconds) for when the vector store will expire.
The Unix timestamp (in seconds) for when the vector store was last active.
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Authentication
Path Parameters
Body
Delete a vector store.
Path Parameters
The ID of the vector store to delete.
Response
200 application/json
Response
OK
DeleteVectorStoreResponse
Allowed values:vector_store.deleted