Retrieves a vector store file.
Path Parameters
The ID of the vector store that the file belongs to.
Example:vs_abc123
The ID of the file being retrieved.
Example:file-abc123
Response
200 application/json
Response
OK
Vector store files
A list 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.
Allowed values:vector_store.file
The total vector store usage in bytes. Note that this may be different from the original file size.
The Unix timestamp (in seconds) for when the vector store file was created.
The ID of the vector store that the File is attached to.
The status of the vector store file, which can be either in_progress, completed, cancelled, or failed. The status completed indicates that the vector store file is ready for use.
Allowed values:in_progresscompletedcancelledfailed
The last error associated with this vector store file. Will be null if there are no errors.
Show Child Parameters
One OfThe strategy used to chunk the file.
Show Child Parameters
Authentication
Path Parameters
Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.
Path Parameters
The ID of the vector store that the file belongs to.
The ID of the file to delete.
Response
200 application/json
Response
OK
DeleteVectorStoreFileResponse
Allowed values:vector_store.file.deleted
Authentication
Path Parameters
AddUploadPartRequest
objectThe chunk of bytes for this Part.
AdminApiKey
objectExample:organization.admin_api_key
Example:key_abc
Example:Administration Key
Example:sk-admin...def
Example:sk-admin-1234abcd
Example:1711471533
Show Child Parameters
ApiKeyList
objectExample:list
Show Child Parameters
Example:key_abc
Example:key_xyz