Skip to main content
Retrieve your installation script and tracking domains. Add secondary domains, replace their excluded URLs, and remove secondary domains.

Base URL

Authentication

All requests require a workspace API key:
The examples use $API_KEY for your API key. The key determines the workspace; you do not supply a workspace ID. See Authentication.

Endpoints

Website Pixel object

All names, domains, identifiers, amounts, URLs, and timestamps in these examples are illustrative.

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
200 OK — returns the complete Website Pixel object above. No query parameters, sorting, or pagination are supported. Install the returned script using the Website Pixel guide. The script is workspace-specific and cannot be modified through this API.

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 as snowbricks-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 OK
PATCH accepts exactly excluded_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 include snowbricks-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}
204 No Content — the body is empty. The domain disappears from subsequent GET responses. A nonexistent or inaccessible domain returns 404.

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:
Domain configuration changes affect future tracking. They do not delete historical Buyers, Signals, or attribution. Use Signal Settings to configure Website trigger flags and daily Buyer limits.

Errors

Errors use the standard error envelope. Use request_id when contacting support.