Rest API
Get most used sources
GET /api/v1/visitors/common_sources
The knowledge sources the AI cited most often in its answers. This is the most used sources list on the dashboard’s performance page.
Notes
- Returns at most 10 sources, sorted by
count, highest first startTimeandendTimeare Unix timestamps in milliseconds, notYYYY-MM-DDdays. Leave them out to cover the whole historystableIdidentifies the source in the content library. A source that has been removed since keeps its count, with<Source is removed>as itstitle- 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. Defaults to the beginning of the history.
End of the range as a Unix timestamp in milliseconds. Defaults to now.
Restrict the list 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.
Restrict the list to one segment. Leave it out for the list across all segments.
Responses
Section titled “ Responses ”The most cited sources.
object
object
Identifies the source in the content library.
Title of the source, or <Source is removed> when it no longer exists.
How many answers in the range cited the source.
Example
{ "results": [ { "stableId": "3c1f9a7e2b", "title": "Resetting your password", "count": 318 }, { "stableId": "8d4e2b6a1f", "title": "Payment methods", "count": 204 } ]}The workspace could not be determined from the headers.
Unauthorized - invalid API key.