List all websites
Array of website objects
Query Parameters
Number of websites to return (1-100)
Website ID to paginate from (from previous response’s
pagination.cursor)Response Example
Create a website
Request Body
Website display name (must not be empty)
Website domain. Must be:
Invalid:
- A valid hostname without scheme, port, path, or credentials
- A registrable domain (not a public suffix like
.com) - Lowercase, normalized automatically
example.com, blog.example.com, localhost, 192.168.1.1Invalid:
https://example.com, example.com:3000, com, co.ukIANA timezone identifier (e.g.,
America/New_York, Europe/London)Response (201 Created)
Response Example
Get a website
Path Parameters
Website ID (format:
site_*)Response (200 OK)
Website object (same structure as in list endpoint)
Response Example
Error Responses
404 Not Found
Update a website
Path Parameters
Website ID (format:
site_*)Request Body
All fields are optional. Only provided fields will be updated.New website display name
New domain (must pass same validation as create endpoint)
New IANA timezone identifier
Response (200 OK)
Response Example
Error Responses
404 Not Found
Website does not exist
400 Bad Request
Invalid domain format (same validation as create endpoint)
Delete a website
Path Parameters
Website ID (format:
site_*)Response (204 No Content)
Empty response body on successful deletion.Error Responses
404 Not Found
Website ID Format
All website IDs follow the format:site_a1b2c3d4e5, site_x9y8z7w6v5
This ID is used:
- In API endpoints as the
:idpath parameter - In the tracking snippet as
data-website-id - In query endpoints to scope analytics data