Skip to content

Page through a RUM session's events: page views and their updates, actions, errors, requests, resources, console lines, long frames, custom events and recording status, oldest first, in the shapes of the ingest kinds.

GET
/rum/{app_id}/sessions/{session_id}/events
curl --request GET \
--url https://api.siteqwality.com/rum/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events \
--header 'Authorization: Bearer <token>'

counts gives rows per kind for the whole session (honouring q and collapse) on every page. Bodies, headers, console messages, breadcrumbs and console-handled error messages need body access: API keys and M2M clients need the read:rum_replay scope, people the account’s body access level; connected apps never get them. Without it they are left out and bodies_withheld is true. A page that shows them is audited as rum.network_body.viewed.

app_id
required
string format: uuid

RUM application identifier

session_id
required
string format: uuid

Session identifier

kinds
string

Comma-separated kinds to return: view, view_end, custom, action, error, network, resource, console, long_frame, status. Default: all.

from_ms
integer format: int64

Lower bound, inclusive, in milliseconds from the session’s start.

to_ms
integer format: int64

Upper bound, inclusive, in milliseconds from the session’s start.

q
string

Case-insensitive substring of a URL, route, request URL, error type or message, action name or selector, custom event name or console message (console messages need body access).

collapse
boolean

true folds repeated successful requests, resources and identical console lines of one page view into their first row, with group saying how many it stands for.

cursor
string

next_cursor of the previous page; the other parameters must be the same.

limit
integer format: int32

Page size, default 500, at most 1,000. A page also stops at about 2.5 MB of JSON.

A page of events

Media type application/json
object
events
required

Oldest first, then by id.

Array

One event of the session, in the shape of the ingest kinds (design 6.3).

object
One of:
object
url
required
string
route
required
string
loading_type

initial_load, route_change or bfcache_restore.

string | null
navigation_type
string | null
referrer_host
string | null
referrer_path
string | null
utm
object | null
channel
string | null
kind
required
string
Allowed values: view
id
required

The event id, or a stable id derived from the row for kinds stored without one.

string
t
required
string
offset_ms
required

Milliseconds from the session’s start.

integer format: int64
view_id
required
string
window_id

Null when the SDK sent no window.

string | null
page_load_id
string | null
page_url
required

The page the event happened on; empty when unknown.

string
page_route
required
string
group
One of:
null
next_cursor

Pass as cursor for the next page; absent on the last page.

string | null
counts
required

Rows per kind over the whole session for this q and collapse, whatever kinds, from_ms, to_ms and cursor say. Kinds without rows are absent.

object
key
additional properties
integer format: int64
bodies_withheld
required

True when the caller lacks body access: request and response bodies and headers and console messages are left out.

boolean
Example
{
"events": [
{
"kind": "view"
}
]
}

Invalid query parameter or cursor

Missing or invalid authentication

Unknown application or session

Internal server error

Query time limit exceeded; narrow the range or filters