Rest API
Get top questions
GET /api/v1/visitors/grouped_questions
The questions visitors ask most often, the ones the AI most often could not answer, and the ones most often downvoted. Similar questions are clustered, so each entry represents a group of near-identical phrasings, with message showing the most common one. These are the lists on the dashboard’s performance page.
Notes
- All three lists come back in one
resultsarray. Split them ontype:commonlyAskedQuestions,commonlyUnansweredQuestionsorcommonlyDownvotedQuestions - Each list holds up to 100 entries, sorted by
frequency, highest first startTimeandendTimeare Unix timestamps in milliseconds, notYYYY-MM-DDdays, and both are inclusive. Leave them out to cover the whole historyconversationslists up to 10 of the most recent conversations in the range the question was asked in, newest first. Conversations deleted since are left out- Computed live rather than read from a query cache, so there is no
statusorforceRefresh
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Your API key from account settings.
The email address of your user.
The ID of your account. You can find this in the account settings.
The ID of the workspace you want to use.
Query Parameters
Section titled “Query Parameters ”Start of the range as a Unix timestamp in milliseconds, inclusive. Defaults to the beginning of the history.
End of the range as a Unix timestamp in milliseconds, inclusive. Defaults to now.
Restrict the lists to one channel. Leave it out to cover every channel. all-ai-assistants covers every AI assistant on your website and excludes API traffic. API channels include api, api-summarization, api-team-assistant, api-team-assistant-summarization, api-dashboard, api-report, api-ticket-analysis and api-resource-optimization. Use comma-separated values to combine channels.
Restrict the lists to one segment. Leave it out for the lists across all segments.
Responses
Section titled “ Responses ”The three question lists, combined into one array.
object
object
Identifies the question group.
The most common phrasing in the group.
How often a question in the group was asked in the range.
Which list the entry belongs to.
Up to 10 of the most recent conversations in the range the question was asked in, newest first.
object
Title from the conversation analysis, when the conversation has been analyzed.
Unix timestamp (ms) when the conversation started.
Example
{ "results": [ { "id": 48213, "message": "How do I reset my password?", "frequency": 142, "type": "commonlyAskedQuestions", "conversations": [ { "conversationId": "7f3c2a90-1b4e-4d2a-9c61-2f0e8b7a5d13", "sessionId": "0b9d4e6f-8a21-4c7e-b3f5-6e2d1a9c8b47", "title": "Password reset", "createdAt": 1759831200000 } ] }, { "id": 51877, "message": "Can I pay by invoice?", "frequency": 37, "type": "commonlyUnansweredQuestions", "conversations": [] } ]}The workspace could not be determined from the headers.
Unauthorized - invalid API key.