Endpoints

Websites

Operations around Website management and statistics.

Endpoints


GET /api/websites#

Returns all user websites.

Parameters

ParameterTypeDescription
includeTeamsbooleanSet to true to include websites where you are the team owner.
searchstring(optional) Search text.
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional) Determines how many results to return.

Sample response


POST /api/websites#

Creates a website.

Parameters

ParameterTypeDescription
namestringThe name of the website in Umami.
domainstringThe full domain of the tracked website.
shareIdstring(optional) A unique string to enable a share URL. Set null to unshare.
teamIdstring(optional) The ID of the team the website will be created under.
idstring(optional) Force a UUID assignment to the website.

Request body

Sample response


GET /api/websites/:websiteId#

Gets a website by ID.

Sample response


POST /api/websites/:websiteId#

Updates a website.

Parameters

ParameterTypeDescription
namestringThe name of the website in Umami.
domainstringThe full domain of the tracked website.
shareIdstring(optional) A unique string to enable a share URL. Set null to unshare.
replayConfigobject(optional) Session recording and heatmap configuration.

replayConfig fields

FieldTypeDescription
replayEnabledbooleanEnable or disable session replay recording.
heatmapEnabledbooleanEnable or disable heatmap data collection.
sampleRatenumberFraction of sessions to record for replay (0–1).
heatmapSampleRatenumberFraction of sessions to record for heatmaps (0–1).
maskLevelstringPII masking level: strict or moderate.
maxDurationnumberMaximum recording duration in seconds.
blockSelectorstringCSS selector for elements to exclude from recording.

Request body

Sample response


DELETE /api/websites/:websiteId#

Deletes a website.

Sample response


POST /api/websites/:websiteId/reset#

Resets a website by removing all data related to the website.

Sample response


GET /api/websites/:websiteId/recorder#

Returns the recorder configuration for a website. Used by the tracker to initialize session replay and heatmap collection. This endpoint requires no authentication and is publicly accessible.

If the website does not exist or recording is disabled, returns { "enabled": false }.

Sample response