Get AI Insights
AI assistant analytics: query volume, confidence, satisfaction, topics, sources, trends, and unresolved intents.
Returns analytics for the project's AI assistant — query volume, answer confidence, visitor satisfaction, per-topic confidence, how often answers cite your docs, a daily series, changes against the previous window, and the questions the AI couldn't answer well.
Session JWT and org membership required. Any role can read it — an API key gets 401, a non-member 403. Any plan.
Path Parameters
projectIdQuery Parameters
period24h, 7d, or 30d. Takes precedence over days.daysperiod is not provided).30Response Fields
data.avgConfidencedata.satisfactionRatedata.topTopicsGeneral when there was none). rising: true marks a topic with 5 or more questions in this window that grew by at least half against the previous window, or had none before; the field is absent otherwise.data.unresolvedIntentsdata.daily{ date, count }, oldest first. Days with no questions are left out.data.answeredWithSourcesnull when there were no questions.data.confidencehigh (3 or more), medium (1–2), low (none). null when there were no questions. These buckets count cited sources, unlike avgConfidence, the assistant's own confidence in its answers.data.changesquestions (percent) and answeredWithSources (points) against the previous window of the same length. A key is left out when there is nothing to compare with.topTopics[].rising, daily, answeredWithSources, confidence and changes are optional — see trend fields. If the analytics query itself fails, the response is 200 with every figure 0 and empty lists.
Error Responses
401 Unauthorized
Missing, invalid or expired session JWT, or an API key.
403 Forbidden
You are not a member of the organization that owns the project.
404 Not Found
The project does not exist or has been deleted.