v3

latestSwagger 2.02026-07-1342207288.7 KB

Create a vector store file by attaching a file to a vector store.

post/vector_stores/{vectorStoreId}/files

Path parameters

vectorStoreIdstring required

Identifier of the vector store.

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

file_idstring

Identifier of the file.

Response

The request has succeeded.

idstring required

The identifier, which can be referenced in API endpoints.

object'vector_store.file' required

The object type, which is always vector_store.file.

usage_bytesinteger required

The total vector store usage in bytes. Note that this may be different from the original file size.

created_atinteger required

The Unix timestamp (in seconds) for when the vector store file was created.

vector_store_idstring required

The ID of the vector store that the file is attached to.

status'in_progress' | 'completed' | 'failed' | 'cancelled' required

Vector store file status