Add a domain

Registers a first-party tracking subdomain and returns the CNAME record to create; the hostname must be globally unique across all workspaces.

Authentication

X-Workspace-Idstring
API Key authentication via header

Request

This endpoint expects an object.
hostnamestringRequired

Response

Successful Response
idstringformat: "uuid"
hostnamestring
statusenum

Lifecycle of a customer first-party tracking domain.

cname_targetstring
last_errorstring or null
created_atdatetime
verified_atdatetime or null

Errors

422
Unprocessable Entity Error