Get session detail and activity
umami_get_sessionRetrieve session details and chronological page/event trail to trace an individual visitor's journey from entry to exit.
Instructions
Get details for one visitor session, optionally including the full page-by-page activity trail.
Use this to trace an individual journey through the site: entry page, path taken, events fired, exit point. Get session IDs from umami_list_sessions with response_format='json'.
Args:
website (string, optional): Website ID, name, or domain.
session_id (string, required): Session UUID.
include_activity (boolean): Include the chronological page and event trail (default: true).
range (string): Date range to search for activity, default '30d'. Activity outside this range is not returned.
response_format ('markdown' | 'json'): Output format (default: 'markdown').
Returns: JSON shape: { "session": { "id": string, "country": string, "device": string, "browser": string, "os": string, "first_at": string, "last_at": string, "visits": number, "views": number, "events": number, "totaltime": number }, "activity": [ { "created_at": string, "url_path": string, "referrer_domain": string, "event_name": string } ] }
Examples:
"What did session abc123 do on the site?" -> session_id="abc123...", include_activity=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Date range to search for activity, default '30d'. | |
| website | No | Website ID (UUID), name, or domain. Optional if UMAMI_DEFAULT_WEBSITE is set. Use umami_list_websites to discover values. | |
| session_id | Yes | Session UUID, from umami_list_sessions. | |
| response_format | No | Output format: 'markdown' for a readable summary, 'json' for raw structured data. | markdown |
| include_activity | No | Include the chronological page and event trail. |