API Reference
Create a vector store file
Upload a document with multipart field file (optional JSON string field attributes), or send JSON { "file_id", "attributes" } to attach an existing document. Provide exactly one of file or file_id. Files may be up to 512 MB.
POST
/
v1
/
vector_stores
/
{vector_store_id}
/
files
Create a vector store file
curl --request POST \
--url https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form 'attributes=<string>'import requests
url = "https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "attributes": "<string>" }
response = requests.post(url, data=payload, files=files)
print(response.text){
"id": "<string>",
"object": "vector_store.file",
"vector_store_id": "<string>",
"status": "in_progress",
"created_at": 123,
"usage_bytes": 123,
"attributes": {},
"chunking_strategy": {},
"last_error": {
"code": "<string>",
"message": "<string>"
}
}Body
multipart/form-dataapplication/json
Response
Vector store file
⌘I
Create a vector store file
curl --request POST \
--url https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form 'attributes=<string>'import requests
url = "https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "attributes": "<string>" }
response = requests.post(url, data=payload, files=files)
print(response.text){
"id": "<string>",
"object": "vector_store.file",
"vector_store_id": "<string>",
"status": "in_progress",
"created_at": 123,
"usage_bytes": 123,
"attributes": {},
"chunking_strategy": {},
"last_error": {
"code": "<string>",
"message": "<string>"
}
}