Retrieve all document stores in your workspace. Document stores manage collections of documents with vector embeddings for retrieval.
Query Parameters
Page number for pagination. Default: 1
Number of results per page. Default: 50
Response
Total number of document stores
Array of document store objects
Document Store Object
Unique identifier for the document store
Name of the document store
Description of the document store
Array of document loaders configured for this store
JSON string of flows using this document store
Current status (e.g., SYNC, STALE, NEW)
Configuration for the vector store
Configuration for embeddings
Configuration for record management
When the document store was created
When the document store was last updated
ID of the workspace containing this store
Example Request
curl -X GET \
'https://your-flowise-instance.com/api/v1/document-store/store' \
-H 'Authorization: Bearer YOUR_API_KEY'
curl -X GET \
'https://your-flowise-instance.com/api/v1/document-store/store?page=1&limit=10' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Response
{
"total": 2,
"data": [
{
"id": "store-123",
"name": "Product Documentation",
"description": "All product documentation and guides",
"loaders": [
{
"id": "loader-001",
"loaderId": "pdfLoader",
"status": "SYNC",
"totalChunks": 150
}
],
"whereUsed": "[{\"id\":\"flow-1\",\"name\":\"Support Bot\"}]",
"status": "SYNC",
"vectorStoreConfig": {
"provider": "pinecone",
"indexName": "product-docs"
},
"embeddingConfig": {
"provider": "openai",
"model": "text-embedding-ada-002"
},
"createdDate": "2024-01-15T10:30:00Z",
"updatedDate": "2024-01-20T14:45:00Z",
"workspaceId": "workspace-123"
}
]
}
Document Store Status
- NEW - Newly created, no documents uploaded yet
- SYNC - All documents are synced to vector store
- STALE - Documents need to be re-synced
- SYNCING - Currently syncing documents
- ERROR - Error occurred during sync
Error Responses
Unauthorized - Invalid or missing API key
Forbidden - Insufficient permissions to view document stores
Not Found - Workspace not found
Precondition Failed - Workspace ID not provided
Internal Server Error - Error retrieving document stores