v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2193427579.9 KB
VectorIO

Attach a file to a vector store (OpenAI-compatible).

Attach a file to a vector store (OpenAI-compatible).

post/v1/vector_stores/{vector_store_id}/files

Path parameters

vector_store_idstring required

The vector store identifier.

The vector store identifier.

Request body

file_idstring required

The ID of the file to attach.

attributesobject nullable

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, booleans, or numbers.

Response

The attached file.

idstring required
object'vector_store.file'
attributesobject nullable

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, booleans, or numbers.

created_atinteger required
status'in_progress' | 'completed' | 'cancelled' | 'failed' required
usage_bytesinteger
vector_store_idstring required