---
title: "Get events for a specific session"
method: GET
path: "/sessions/{session_id}/events"
tags: ["Events"]
---

# Get events for a specific session

`GET /sessions/{session_id}/events`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/sessions/{session_id}/events`
- Auth: HTTP bearer

## Path parameters

- `session_id` string, required

## Query parameters

- `environment_id` integer

## Response `200`

Successfully retrieved session events

- AnalyticsSessionEventsResponse
  - `events` SessionEvent[], required
    - `event_data` unknown, required
    - `event_name` string, required
    - `id` integer, required
    - `occurred_at` string, date-time, required
    - `request_path` string, required
    - `request_query` string, nullable
  - `session_id` string, required
  - `total_events` integer, required

## Other responses

- `401`: Unauthorized
- `404`: Session not found
- `500`: Internal server error

## Changes

- **2026-09-07** `2b95ed4ff1d2`: 1 breaking, 3 warning, 5 info
  - removed the required property `events/items/timestamp` from the response with the `200` status
  - removed the optional property `events/items/event_type` from the response with the `200` status
  - removed the optional property `events/items/page_title` from the response with the `200` status
  - removed the optional property `events/items/page_url` from the response with the `200` status
  - …5 more
- **2026-09-07** `f7404eb7ac98`: 5 breaking, 1 warning, 4 info
  - the response property `events/items/event_name` became nullable for the status `200`
  - the response property `events/items/event_data` became optional for the status `200`
  - the response property `events/items/event_name` became optional for the status `200`
  - removed the required property `events/items/occurred_at` from the response with the `200` status
  - …6 more
- **2026-08-14** `5b69d84f67d1`: 1 breaking, 3 warning, 5 info
  - removed the required property `events/items/timestamp` from the response with the `200` status
  - removed the optional property `events/items/event_type` from the response with the `200` status
  - removed the optional property `events/items/page_title` from the response with the `200` status
  - removed the optional property `events/items/page_url` from the response with the `200` status
  - …5 more

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/sessions/:session_id/events/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
