GET /gammas/{gammaId}/analytics/viewers/{userId}
Returns one viewer's engagement with a Gamma: display name, email, last-opened time, cards viewed, and per-card view time as a percentage of that viewer's total.
API key for authentication
The ID of the Gamma — accepts a gamma (file) ID or a page/doc ID (the ID in a gamma.app/docs/ URL).
abc123xyzThe viewer's user ID — the viewerId returned by the viewers list endpoint for authenticated viewers.
user_abc123Viewer analytics retrieved successfully
Which viewers are addressable: all — any viewer of the Gamma
(the API key's user has manage permission); self — only the API key
user's own activity (edit permission).
allPossible values: The Gamma (file) ID
abc123xyzThe viewer's user ID
user_abc123Display name of the viewer
Jane DoeEmail of the viewer
jane@example.comISO-8601 timestamp of the viewer's most recent Gamma open/view, or null if unknown
2026-06-28T14:30:00.000ZNumber of cards this viewer has viewed, counting only cards currently in the Gamma
8Total number of cards in the Gamma (the denominator for cardsViewed)
12Invalid request parameters
Invalid or missing API key
Access denied — at least edit permission required; manage permission required to address viewers other than yourself
Gamma not found, or no viewer with this user ID
GET /v1.0/gammas/{gammaId}/analytics/viewers/{userId} HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"scope": "all",
"gammaId": "abc123xyz",
"userId": "user_abc123",
"displayName": "Jane Doe",
"email": "jane@example.com",
"lastOpened": "2026-06-28T14:30:00.000Z",
"cardsViewed": 8,
"cardCount": 12,
"perCardTimeSpent": [
{
"cardId": "card_abc123",
"cardName": "Introduction",
"cardPosition": 1,
"viewTimePercent": 34
}
]
}Related
Last updated
Was this helpful?