curl --request GET \
--url https://api.example.com/api/get-stats.php{
"success": true,
"stats": {
"conversations": {
"total": 123,
"active": 123,
"archived": 123,
"total_messages": 123
},
"documents": {
"total": 123,
"by_type": {},
"total_size_mb": 123
},
"vectors": 123
},
"error": "<string>"
}Retrieve dashboard statistics including conversations, documents, and vector embeddings
curl --request GET \
--url https://api.example.com/api/get-stats.php{
"success": true,
"stats": {
"conversations": {
"total": 123,
"active": 123,
"archived": 123,
"total_messages": 123
},
"documents": {
"total": 123,
"by_type": {},
"total_size_mb": 123
},
"vectors": 123
},
"error": "<string>"
}GET /api/get-stats.php
success is false)200 OK: Statistics retrieved successfully500 Internal Server Error: Error retrieving statistics{
"success": true,
"stats": {
"conversations": {
"total": 156,
"active": 42,
"archived": 114,
"total_messages": 3240
},
"documents": {
"total": 87,
"by_type": {
"pdf": 45,
"docx": 28,
"txt": 14
},
"total_size_mb": 234.5
},
"vectors": 12847
}
}
api/get-stats.php:24getConversationStats()api/get-stats.php:25getDocumentStats()api/get-stats.php:26countVectors()uploads.path: Document storage locationuploads.allowed_types: Permitted file typesuploads.max_size: Maximum upload sizerag.similarity_method: Vector similarity calculation method