Events

Returns the list of events (clicks, page visits, inputs, custom events, etc.) captured in a specific session. The session scope is enforced by the server — the sessionID path parameter is automatically added as an event filter.

POST

/public/:projectKey/sessions/:sessionId/events

NameTypeDescription
projectKeystringThe project key (required)
sessionIdstringThe ID of the session (required, max 256)
NameTypeDescription
startTimestampepoch (ms)Start of time window (required, min 946684800000)
endTimestampepoch (ms)End of time window (required, > startTimestamp)
limitintegerPage size, 1-200 (required)
pageintegerPage number, starts at 1 (required)
sortBystringEvent column to sort by (optional)
sortOrderstringasc or desc (optional)
filtersarrayAdditional event filters (optional) — see filter structure below
columnsarrayEvent columns to include in the response (optional)

Filter object:

NameTypeDescription
namestringFilter attribute name (required, max 256)
operatorstringComparison operator (e.g. is, contains)
valuestring[]Up to 10 values, each max 256 chars
isEventbooleanWhether the filter targets an event property
dataTypestringOne of string, number, boolean, integer, timestamp

Authorization: Bearer {YOUR_ORGANIZATION_API_KEY}

200: Response sent as JSON in body
400: Invalid body or invalid sessionID (empty or > 256 chars)

curl -X POST \
  {BASE_URL}/public/3sWXSsqHgSKnE87YkNJK/sessions/4813023023591169/events \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer {YOUR_ORGANIZATION_API_KEY}' \
  --data-raw '{
    "startTimestamp": 1623440000000,
    "endTimestamp":   1623441000000,
    "limit": 100,
    "page":  1,
    "sortOrder": "asc"
  }'
{
  "data": {
    "total": 3,
    "events": [
      {
        "event_id": "01H7Z...",
        "$event_name": "$pageview",
        "created_at": 1623440905732,
        "distinct_id": "mickael@openreplay.com",
        "session_id": "4813023023591169",
        "properties": { "path": "/my-account/" }
      },
      {
        "event_id": "01H7Z...",
        "$event_name": "$click",
        "created_at": 1623440915126,
        "distinct_id": "mickael@openreplay.com",
        "session_id": "4813023023591169",
        "$properties": { "label": "Shop" },
        "$auto_captured": true
      }
    ]
  }
}