Documentation menuAPI: Sites

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?

RequestResult
GET /sites/:siteIdThe site with all its settings
PUT /sites/:siteId/configChanges the settings you send
GET /sites/:siteId/usageEvents this month for the site and the organization
GET /sites/:siteId/excluded-ipsOne exclusion list. The same exists for -countries, -paths, -hostnames, -user-agents, -asns and -query-params
DELETE /sites/:siteIdDeletes 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.

FieldTypeLimits
nameText1 to 255 characters
domainTextA valid domain
public, saltUserIds, blockBots, firstPartyProxy, trackIpTrue or false
sessionReplayTrue or falseNeeds Business or Agency
webVitals, trackErrors, trackOutbound, trackUrlParams, trackInitialPageView, trackSpaNavigation, trackButtonClicks, trackCopy, trackFormInteractionsTrue or false
excludedIPs, excludedPaths, excludedHostnames, excludedUserAgents, excludedASNs, excludedQueryParamsList of textUp to 100 entries each
excludedCountriesList of textUp to 250 two-letter codes
tagsList of textUp 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.