API
Sites endpoints
These endpoints read and change one site. Reading needs sites:read. Changing needs sites:write and an admin, an owner or an organization key.
Last updated . This guide belongs to API access and data export.
Which endpoints are there?
| Request | Result |
|---|---|
GET /sites/:siteId | The site with all its settings |
PUT /sites/:siteId/config | Changes the settings you send |
GET /sites/:siteId/usage | Events this month for the site and the organization |
GET /sites/:siteId/excluded-ips | One exclusion list. The same exists for -countries, -paths, -hostnames, -user-agents, -asns and -query-params |
DELETE /sites/:siteId | Deletes the site and its data |
:siteId can be the number or the 12-character ID.
Which settings can you change?
Send only the fields you want to change. A list replaces the stored list.
| Field | Type | Limits |
|---|---|---|
name | Text | 1 to 255 characters |
domain | Text | A valid domain |
public, saltUserIds, blockBots, firstPartyProxy, trackIp | True or false | |
sessionReplay | True or false | Needs Business or Agency |
webVitals, trackErrors, trackOutbound, trackUrlParams, trackInitialPageView, trackSpaNavigation, trackButtonClicks, trackCopy, trackFormInteractions | True or false | |
excludedIPs, excludedPaths, excludedHostnames, excludedUserAgents, excludedASNs, excludedQueryParams | List of text | Up to 100 entries each |
excludedCountries | List of text | Up to 250 two-letter codes |
tags | List of text | Up to 20 |
Filter traffic describes the format of each exclusion list.
What does usage return?
{ "periodStart": "2026-11-01", "daysInMonth": 30, "daysElapsed": 18.4, "siteEventsThisMonth": 61234, "orgEventsThisMonth": 88410, "orgEventLimit": 250000, "projectedSiteEvents": 99838, "projectedOrgEvents": 144147 }
The limit applies to the organization, not to one site. The projections are null on the first day of a month.