Returns paginated raw engagement events (views and clicks) for the authenticated organization, filtered by date range and optional storyId / versionId / userEmail.
Plan
This endpoint is available on the Team plan only.
Date Range
Both dateFrom and dateTo are required ISO 8601 strings. The dateTo boundary is inclusive (events on the supplied day are returned). The maximum range is 92 days (3 months).
Pagination
Results are paginated with a fixed page size of 1000. Pages are 1-indexed. Use the pagination.hasMore flag to determine whether to request the next page.
Filtering by user
Pass userEmail to restrict results to events on versions created by that user. The email is resolved to a user in the authenticated organization before querying.
Query parameters
-
Inclusive start of the date range (ISO 8601, UTC)
-
Inclusive end of the date range (ISO 8601, UTC). Must be at most 92 days after dateFrom.
-
Restrict events to a single story
-
Restrict events to a single version
-
Restrict events to versions created by the user with this email. Must match a user in the authenticated organization.
-
1-indexed page number. Defaults to 1.
Minimum value is
1. Default value is1.
curl \
--request GET 'https://api.storydoc.com/v2/analytics/events?dateFrom=2026-01-01T00%3A00%3A00Z&dateTo=2026-03-31T23%3A59%3A59Z' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"data": [
{
"sessionId": "1c2f0c2c-9b7e-4f4a-9f8e-3a3a3a3a3a3a",
"eventId": "evt_8a1c0a16d2b14e9c",
"visitorId": "vis_aa11bb22cc33dd44",
"timestamp": "2026-04-15T14:32:11.000Z",
"storyId": "61b1e50223b713000a41ca74",
"storyTitle": "Sales Presentation Template",
"versionId": "65a1e50223b713000a41ca99",
"versionTitle": "ACME Corp - Q2 Pitch",
"versionCreatedAt": "2026-04-10T09:15:00.000Z",
"prospectName": "Jane Cooper",
"prospectEmail": "jane.cooper@acme.com",
"prospectPosition": "VP Marketing",
"eventName": "view_slide_3",
"eventCategory": "view",
"deviceType": "desktop",
"deviceTypeName": "Mac",
"eventUrl": "https://view.storydoc.com/abc123",
"locationCity": "New York",
"locationLatitude": 40.7128,
"locationLongitude": -74.006
}
],
"pagination": {
"page": 1,
"pageSize": 1000,
"total": 12453,
"totalPages": 13,
"hasMore": true
}
}
{
"error": "dateFrom and dateTo are required (ISO 8601, e.g. 2026-01-01 or 2026-01-01T00:00:00Z)"
}
{
"error": "Date range cannot exceed 3 months"
}
{
"error": "userEmail must be a valid email address"
}
{
"error": "Token has been revoked"
}
{
"error": "Access denied"
}
{
"error": "Analytics API is available on the Team plan only"
}
{
"error": "userEmail sender@company.com not found in this organization"
}
# Headers
x-rate-limit-counter: 42
x-rate-limit-maximum: 42
# Payload
{
"error": "Too many requests"
}
{
"error": "Error occured",
"errorId": "550e8400-e29b-41d4-a716-446655440000"
}