Analytics
Per-item stats for a content type
GET
/analytics/summaryNeedsanalytics.viewItems with no events in the window are absent (treat as zeros).
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Query Parameters
type*stringContent type.
Value in
"tour""tooltip""banner""checklist""survey""announcement"days?integerTime window in days.
Default
30Value in
73090Response Body
OK
application/json- response
stats*Keyed by content id.
Shell
curl -X GET 'https://app.cueston.com/api/analytics/summary?type=tour'Example Response
JSON
{
"stats": {
"property1": {
"impressions": 1840,
"completions": 412,
"completionRate": 0.42
},
"property2": {
"impressions": 1840,
"completions": 412,
"completionRate": 0.42
}
}
}