# Analytics, activity, pages, and files

Use analytics for aggregate behavior, events for individual visitor actions, and activity for website operations.

| Data | HTTP | MCP |
| --- | --- | --- |
| Analytics | `GET /sites/{siteId}/analytics` | `get_analytics` |
| Activity | `GET /sites/{siteId}/activity` | `list_site_activity` |
| Visitor events | `GET /sites/{siteId}/events` | `list_site_events` |
| Events by kind | `GET /sites/{siteId}/events/kind/{kind}` | `list_site_events_by_kind` |
| Individual event | `GET /sites/{siteId}/events/{id}` | No dedicated tool |
| Lead journey | `GET /sites/{siteId}/events/{eventId}/journey` | No dedicated tool |
| Platform status | `GET /platform/status` | `get_platform_status` |
| Site status | `GET /sites/{siteId}/status` | `get_site_status` |

Activity requires a `level`; use its [operation schema](/reference/operations#site-activity-list) for supported values and filters. Paginated results can contain an empty `items` array and still return `next`. Continue until the cursor is absent.

## Inspect the published site

| Action | HTTP | MCP |
| --- | --- | --- |
| List pages | `GET /sites/{siteId}/pages` | `list_pages` |
| Read page text | `GET /sites/{siteId}/page?route=/contact` | `read_page` |
| Get screenshot | `GET /sites/{siteId}/page-screenshot?route=/contact&viewport=mobile` | `get_page_screenshot` |

Choose a route from the page list and URL-encode query values. Page text is returned with its source (`markdown` or `html-extract`). These operations inspect published artifacts; they are not an unpublished-draft preview API.

HTTP screenshots return metadata and a short-lived signed `url` to a JPEG. Fetch it promptly; it is not a permanent image URL. MCP returns the image as a content block with a caption. Both support `desktop` or `mobile` viewport, defaulting to desktop. Capture time belongs to the deployed release and can predate pending changes. `SCREENSHOTS_UNAVAILABLE` means the deployment predates screenshot capture; `SCREENSHOT_NOT_CAPTURED` means the selected route has no captured image.

## Uploaded files

`GET /sites/{siteId}/files` / `list_files` lists customer uploads and supports `limit` / `next`. `GET /sites/{siteId}/files/{id}` / `get_file` returns public metadata, optional extracted text, and a short-lived `signedUrl`.

Fetch or open the returned resource when inspecting the file itself. The external catalog supports reading existing uploads; it does not expose an upload-creation workflow. Files attached to tasks or messages must already belong to that site and satisfy the operation's readiness requirements.

## Diagnose delays

`get_platform_status` reports upstream service health and can be cached for five minutes. `get_site_status` describes one website, including a live HTTPS probe and build/delivery information. Individual dependency failures are reported separately. Check timestamps and availability fields; an unavailable source is not evidence that everything is healthy.
