Dashboard stats
curl --request GET \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "stats",
"knowledge_bases": 1,
"documents": 1,
"documents_by_status": {},
"vectors": 1,
"web_sources": 1,
"storage_used_bytes": 1
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Stats
Dashboard stats
Aggregate totals for the caller’s org scope (knowledge bases, documents by status, vectors, web sources, storage bytes).
GET
/
v1
/
stats
Dashboard stats
curl --request GET \
--url https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:storage/webhooks/v1/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "stats",
"knowledge_bases": 1,
"documents": 1,
"documents_by_status": {},
"vectors": 1,
"web_sources": 1,
"storage_used_bytes": 1
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Authorizations
User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.
Query Parameters
Comma-separated population selector - own, shared, all.
Response
Stats.
Dashboard aggregate for the caller's org scope. The
implementation also returns legacy-named superset fields
(totalStores, totalDocuments, storageUsedBytes, scope)
alongside those below - additive, safe to ignore.
Available options:
stats Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Real aggregate. (The legacy stats.storageUsedBytes was
dead code returning 0 - see 09 §B2 - fixed when porting.)
Required range:
x >= 0Was this page helpful?