Rest API
Get content library event totals
GET /api/v1/insights/wiki/events
GET
/api/v1/insights/wiki/events
How many content library (wiki) updates the AI made in the range, and the tokens it spent doing so.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” x-api-key
required
string
Your API key from account settings.
x-user-email
required
string
The email address of your user.
x-account-id
required
string
The ID of your account. You can find this in the account settings.
x-website-id
required
string
The ID of the workspace you want to use.
Query Parameters
Section titled “Query Parameters ” startTime
required
string format: date
First day of the range, inclusive, as YYYY-MM-DD.
endTime
required
string format: date
Last day of the range, inclusive, as YYYY-MM-DD.
forceRefresh
boolean
Recompute instead of reading the query cache. Slow - only worth it when you know the cache is stale.
Responses
Section titled “ Responses ”Totals for the range.
object
status
string
lastUpdate
number
total
object
updates
number
tokensInput
number
tokensOutput
number
Unauthorized - invalid API key.
StartTime or endTime was missing.