Live engagement and site engagement tracking
Three things for an event site that shows what is happening in the rooms and counts how its content is used:
- What is on now, per room: the session, the devices following it, its questions and the open poll (
GET /v1/events/{event_id}/live/now). - A session's live Q&A and polls on a clock, to replay an ended session's live page from real data (
GET /v1/events/{event_id}/sessions/{session_id}/live/timeline). - Anonymous engagement events your site records (views, downloads, shares, Ask citations, logo impressions, photo views) and their counts (
POST /v1/events/{event_id}/engagement,GET /v1/events/{event_id}/engagement/stats).
Read endpoints take your organisation's API key or a signed-in user with read access (read scope). Posting engagement takes the API key only, with prep_manage when the key is scoped. None of these depends on your plan. The figures exist only where the live page is used. event_id may be the full id or the short id fragment; session_id must be the full id. Errors: 403 FORBIDDEN without the permission, 404 NOT_FOUND for an unknown event or a session of another event, 422 for a malformed id or time.
1. What is on now
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/live/now" -H "Authorization: Bearer $API_KEY"{
"event_id": "…", "as_of": "2026-05-15T09:15:00Z", "replay": false,
"stream_connections_now": 212,
"rooms": [
{
"room_id": "…", "room": "Main stage", "session_id": "…",
"session": {
"session_id": "…", "title": "Building products people trust", "starts_at": "…", "ends_at": "…",
"capture_status": "live",
"devices_now": 148, "devices_peak": 163, "devices_total": 190,
"questions": {"total": 12, "pending": 3, "live": 7, "answered": 2, "upvotes": 96},
"open_poll": {"poll_id": "…", "question": "What matters most to you?", "kind": "single",
"options": ["Quality", "Evidence", "Cost"], "opened_at": "…",
"votes": 116, "counts": [44, 21, 51]}
},
"next": {"session_id": "…", "title": "Packaging that travels well", "starts_at": "…"}
}
]
}- Rooms are the event's locations; a session on now without a room is listed with
room_id: null.sessionis null when nothing is on in that room. A session with no end time is on from its start until the next session in its room starts, or for 60 minutes when nothing follows sooner; while its live capture is running (capture_statuslive,pausedorreconnecting, started within the last 12 hours) it stays on however long it runs, and once the capture has ended it ends there. In a replay (as_of) the capture's own start and end times are used. If two sessions are on in a room at once, the one whose live capture is running is shown, otherwise the one that started last.ends_atis always the stored value (null when none is set). - Devices are browsers following the session's live captions or spoken translation on the attendee live page. Each device keeps a random id it made up itself; these are counts of devices, never of people.
devices_nowcounts devices in that room whose last caption minute was at most two minutes ago, so just after a changeover it can still include listeners of the previous talk;devices_peakis the most devices following the session at the same time (each device from its first to its last minute);devices_totalis every device that followed it. Delegates sitting in the room without the live page are not counted. - Questions: dismissed questions are left out;
upvotesis the sum over the rest. - Open poll: the poll open now with its
votesand per-optioncounts(rating polls: per score 1–5).countsis null when the moderator hides results. capture_statusis the live capture's state for the session (live,paused,reconnecting,ended, …) or null.stream_connections_now: the event's open caption streams this moment, in all languages. Null in a replay or when it cannot be read.
Replay. Add as_of=2026-05-15T09:15:00Z to see a past moment: the session on then, devices active then, questions asked by then, the poll open then with the votes cast by then (replay: true). Which questions count is as of then, but their status and upvotes are as they stand now; a poll that was reopened replays from its latest opening. A time without a zone is read as UTC.
Poll it every 15–30 seconds; it reads stored rows only. For the live page itself (captions, questions and votes as they happen), use the public live endpoints below.
How the public live page updates
The attendee live page does not poll for Q&A and polls. It holds one Server-Sent Events stream, GET /v1/public/live/{slug}/stream?lang=…&session_id=…, which carries captions and, as named events, changes to the session's Q&A (event: qa), polls (event: poll) and snapshot (event: snapshot). Those frames carry ids, statuses and counts, never question text; on one, refetch the details from GET /v1/public/live/{slug}/sessions/{session_id}/qa or GET /v1/public/live/{slug}/sessions/{session_id}/polls. GET /v1/public/live/{slug}/interactive says which talks have Q&A and polls switched on. The live translation guide has the stream's parameters.
2. A session's live Q&A and polls on a clock
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/sessions/$SESSION_ID/live/timeline" \
-H "Authorization: Bearer $API_KEY"Returns the session's moderated questions (live or answered) and its polls (not drafts), timed in seconds from the session's scheduled start:
questions[]:question_id,text,language,status,at_sec(when it was asked),votes,vote_secs[](when each upvote arrived);polls[]in their order on the session:poll_id,question,kind,options,status,opened_at_sec,closed_at_sec,answers[](at_sec,choices: option indexes from 0, or the score 1–5 for rating polls; empty when results are hidden),show_results.
The response also has the session's session_id, title, starts_at and ends_at. Seconds are to 0.1 s and negative before the scheduled start; they are all null when the session has no start time.
With the session's transcript (GET /v1/events/{event_id}/sessions/{session_id}/transcript), this replays the live page at speaking pace from what really happened: questions arriving and gathering upvotes, a poll opening, filling and closing. It never says who asked or voted.
3. Engagement tracking
Record events
curl -sX POST "https://api.audiobly.com/v1/events/$EVENT_ID/engagement" \
-H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
-d '{"events": [
{"type": "session_view", "surface": "session_page", "anon_id": "b6f1c2", "session_id": "…"},
{"type": "logo_impression", "surface": "partners", "anon_id": "b6f1c2", "sponsor_id": "…",
"at": "2026-05-15T09:16:02Z"}
]}'Up to 500 events per call. Each event:
| Field | Required | Notes |
|---|---|---|
type |
yes | session_view, report_download, quote_share, ask_citation, logo_impression, photo_view |
surface |
yes | Where on your site, up to 64 characters (session_page, partners, ask, …) |
anon_id |
yes | The browser's own random id, up to 64 characters. Never an email, name or account id. |
at |
no | When it happened; default now. At most 7 days old and at most an hour ahead. |
session_id |
no | A session of this event |
sponsor_id |
no | A sponsor of this event (for logo_impression) |
delegate_account_id |
no | Only for a signed-in delegate who consented; requires consented: true |
consented |
no | Your site's record that the delegate agreed to be identified |
The response (202) is {"accepted": n, "rejected": [{"index": 3, "code": "CONSENT_REQUIRED"}]}. Events that fail these checks are rejected one by one and the rest are stored. A malformed request fails as a whole with 422: an empty or over-500 list, a missing or over-long type (32 characters), surface (64) or anon_id (64), or a malformed id or time (a time without a zone is UTC). consented: true without delegate_account_id is ignored; UNKNOWN_ACCOUNT means the account is not in your organisation. Events are stored as sent (a retried batch is stored twice), but the counts below count each visitor once per type and session or sponsor, so a retry or a reload does not raise them. Codes: UNKNOWN_TYPE, OUT_OF_RANGE, UNKNOWN_SESSION, UNKNOWN_SPONSOR, CONSENT_REQUIRED (a delegate_account_id without consented: true), UNKNOWN_ACCOUNT. More than 500 events is a 422; more than 600 batches in 10 minutes per organisation is a 429 RATE_LIMITED. A signed-in Audiobly user cannot post (403 API_KEY_REQUIRED).
Send from your site's server, batched every few seconds or minutes. Answers from Audiobly's own Ask endpoints are added to sponsor analytics' ask_citations without you posting them (they do not appear in /engagement/stats); post ask_citation only for citations your site shows from elsewhere, or they are counted twice.
Read counts
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/engagement/stats?group_by=session&type=session_view" \
-H "Authorization: Bearer $API_KEY"group_by is session, sponsor or type (default type); type limits to one kind; as_of counts only events up to that moment. Returns event_id, as_of, group_by, type, total and data[], highest count first, of key (the session id, sponsor id or type), name (the session title or sponsor name), count (distinct interactions: each visitor once per type, session and sponsor, however often you sent it) and visitors (distinct visitors: the signed-in delegate's account when you sent delegate_account_id, else the browser's anon_id). total counts interactions the same way. With group_by=session or sponsor, interactions without a session or sponsor count in total but not in data. Only the events your site posts here count: a signed-in delegate's own activity capture never does (see "How engagement is counted" in the sponsor analytics guide). An unknown type is 422 UNKNOWN_TYPE. Counts only: no rows, ids or people.
Sponsor analytics read these counts too, by the same rule (distinct visitors): sessions[].views and sessions[].ask_citations (events that carry session_id) and kpis.logo_impressions (events that carry sponsor_id) in the sponsor analytics guide.
Privacy
- Anonymous by default. An event is stored with the browser's random id, the event, the session or sponsor, the surface and the time. No IP address, user agent, name or email is stored.
- Identified only with consent. A
delegate_account_idis kept only withconsented: true, which is your site's statement that the signed-in delegate agreed. If their account is erased, those events are deleted with it. - Not part of engagement scores. These events never link to an attendee or contact record and are left out of the engagement score.
- Your notice. Tell visitors in your privacy notice that you record anonymous usage counts with Audiobly, and ask before sending a delegate's account id.
- Retention. Events are kept with the event's other data and deleted with the event. There is no shorter automatic expiry yet.