Skip to main content
POST
/
v1
/
vector_stores
/
{vector_store_id}
/
files
Create Vector Store File
curl --request POST \
  --url https://documents.absconsulting.com/v1/vector_stores/{vector_store_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_id": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "vector_store_id": "<string>",
  "created_at": 123,
  "status": "<string>",
  "last_error": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Path Parameters

vector_store_id
string
required

The ID of the vector store.

Body

application/json
file_id
string
required

The ID of the file to attach to the vector store.

metadata
Metadata · object

A set of up to 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. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

fast
boolean
default:false

If true, skip OCR and advanced table recognition when converting the file to markdown. The file will process faster, but the content may not be as accurate.

Response

Successful Response

id
string
required

The ID of the vector store file.

object
string
required

The type of object.

vector_store_id
string
required

The ID of the vector store to list the files from.

created_at
integer
required

The timestamp when the vector store file was created.

status
string
required

The status of the vector store file.

last_error
string | null

The last error message.

metadata
Metadata · object

The metadata of the vector store file.