Add a domain
Register a domain asset for the authenticated organization. Strix probes HTTPS reachability and checks the allowlist, existing verified domains, the DNS TXT record, the verification file, and the meta tag. The ownership checks share one deadline of 4 seconds and run at the same time as the 5 second reachability probe. When no record is found, verified is false and detail names the DNS TXT record to add. Add the record, then call verifyDomain.
Authorizations
API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.
Body
Hostname to add, for example app.example.com. Do not include a scheme or path.
Kind of asset the domain is. Use web_app for browser applications, api for HTTP APIs, and attack_surface for external discovery.
web_app, api, attack_surface Free-text background about the domain that the agent uses on every scan. Send null to clear it.
Enterprise asset labels for RBAC scoping. Requires the Enterprise plan.
Enterprise asset label for RBAC scoping. Requires the Enterprise plan.
Response
Domain already exists.
The stored domain plus its ownership state. Read verified before you start a scan. Strix rejects a scan against a domain that is not verified, unless the organization is on the Enterprise plan or has a configured verification bypass.
added when this call created the domain. exists when the organization already had it.
added, exists True when an HTTPS HEAD request to the domain got a response within 5 seconds. Informational only.
True only when Strix confirmed ownership of the domain.
Human-readable ownership state. When the domain is not verified, this names the DNS TXT record to add and the retry command.
The method that verified the domain during this call. trusted_access means the caller has trusted access and no ownership proof was required. Present only when this call verified the domain.
allowlist, existing, dns, file, meta_tag, email, trusted_access One instruction per verification method, the retry command, and a reachability note when the HTTPS probe failed. Present only when verified is false.