Upload files to a Vector Store
Upload file content to Vector Store with batch operations
post
Upload files to a vector store.
Path parameters
vector-store-idstringRequired
The ID of the vector store.
Header parameters
x-api-keystringRequired
The API key for authentication.
Body
filesstring · binary[]Optional
The files to upload.
Responses
201
Files uploaded successfully.
application/json
207
Some files failed to upload.
post
/vector-stores/{vector-store-id}/documents/uploadExample Requests
curl -X POST \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/upload \
-H "x-api-key: YOUR_API_KEY" \
-F "files=@/path/to/document1.pdf" \
-F "files=@/path/to/document2.docx"const uploadFiles = async (vectorStoreId, files) => {
const formData = new FormData();
// Add multiple files to the form data
for (const file of files) {
formData.append('files', file);
}
const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents/upload`, {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY'
// Note: Do not set Content-Type header, it will be set automatically with the correct boundary
},
body: formData
});
const data = await response.json();
console.log(data);
};
// Example usage with file input element
const fileInput = document.getElementById('fileInput');
uploadFiles('vs_abc123', fileInput.files);Path Parameters
Parameter
Type
Description
Request Body
Response Format
Authentication
Supported File Formats
File Size Limits
Error Responses
Status Code
Description
Processing Status
Batch Operations
Batch Upload Implementation
Batch Upload Best Practices
Last updated