Bearer token and are scoped to the caller’s organization.
Get KB analytics
Returns the analytics dashboard for a knowledge base. Pass asection to fetch a specific view; omit it for the default dashboard (usage stats + top chunks).
Query parameters
string
Which view to return. One of:
trends— query volume + average relevance over time (&days=N)agents— per-agent usage breakdowngaps— low-relevance / never-used queriescontent— per-document utilizationcosts— embedding + vector-store cost attribution (&days=N)resource-performance— per-document impressions, thumbs up/down, helpfulness tier (outcome attribution)feedback-gaps— queries that retrieved from the KB but earned a thumbs down, ranked by failure countfunnel— impression → click → conversion funnel with CTR / conversion ratelearning— learning-loop readiness: weighted signal score, per-source breakdown, stage unlocks, prior state
integer
default:"30"
Look-back window for time-scoped sections (
trends, costs, resource-performance, feedback-gaps, funnel).integer
default:"10"
Number of top chunks in the default dashboard.
Response (200) — section=learning
object
resourcePerformance, feedbackGaps, conversionFunnel, queryTrends, agentUsageBreakdown, knowledgeGaps, contentUtilization, costAttribution.
Toggle the learned ranking prior
Turn the engagement-based ranking boost on or off for a knowledge base. On by default. Requiresedit access to the knowledge base.
boolean
required
true to apply learning to ranking; false to keep manual control (semantic + keyword relevance + content weights only).Response (200)
boolean
The new state.
Recompute the engagement prior
Recompute the engagement prior for this knowledge base’s organization on demand (it otherwise refreshes on a schedule). Requiresedit access.
Response (200)
integer
Number of documents whose prior was recomputed.

