Base URL
Authentication
All requests require a workspace API key:$API_KEY for your API key. The key determines the workspace; you do not supply a workspace ID. See Authentication.
Endpoints
Website Pixel object
Domain fields
Installation status is read-only and detected by 1eye. Overall
status is installed when installation is detected on at least one configured domain. Retrieving a script or adding a domain does not establish installation.
If no domains are configured, GET returns status: not_installed, the complete script, and domains: [].
1. Retrieve Website Pixel
GET /v1/website-pixel
2. Add a secondary domain
POST /v1/website-pixel/domains
Example response
201 Created — returns the new domain object directly.domain is required. excluded_urls is optional and defaults to an empty array. Duplicate domains are rejected rather than silently updated. Only domain and excluded_urls are accepted in POST.
Domain validation
Send a hostname such assnowbricks-demo.example or app.snowbricks.example. Do not include a URL scheme, path, query string, fragment, credentials, or wildcard. Hostname case is normalized.
3. Replace excluded URLs
PATCH /v1/website-pixel/domains/{domain}
Example response
200 OKexcluded_urls. It replaces the entire array; it does not append or merge entries. Send {"excluded_urls": []} to clear all exclusions.
You may update exclusions on the primary domain. Domain names, installation status, is_primary, and the script are read-only. PATCH never creates a missing domain.
Excluded URL validation
Every exclusion must have the selected domain’s hostname or a subdomain of it. Supported UI-style values includesnowbricks-demo.example/private and app.snowbricks-demo.example/. Custom wildcard and regular-expression rules are not supported.
A hostname containing the domain only as a substring, such as snowbricks-demo.example.other.example, is not a subdomain and is rejected. Equivalent duplicate exclusions and unrelated hostnames are rejected. The entire request is validated before any exclusions are changed.
4. Delete a secondary domain
DELETE /v1/website-pixel/domains/{domain}
Primary domain protection
The Workspace configuration determines the primary domain. This API cannot rename it, replace it, designate another primary domain, or delete it. Attempting to delete the primary domain returns 400:Errors
Errors use the standard error envelope. Use
request_id when contacting support.