Add Tracking Domain
Register your own subdomain for open and click tracking.
https://api.foxreach.io/api/v1/tracking-domainsRequires an API key with the write scope.
Create the domain, then add a CNAME record at your DNS provider pointing the subdomain at cnameTarget. Once DNS resolves, call Verify Tracking Domain until status is active. Sending keeps using the shared tracking domain until then. A workspace can have one tracking domain at a time (a failed one does not count).
Body Parameters#
domainstringbodyrequiredA subdomain such as track.yourcompany.com. A leading https://, a path, a port and a trailing dot are stripped. A root domain such as yourcompany.com is rejected.
Response#
dataobjectThe new tracking domain. status starts as pending, or verifying once the certificate is requested.
Show data
idstringdomainstringstatusstringpending, verifying, active or failed.cnameTargetstringsslStatusstringpending_validation or active. null until provisioning has run.failureReasonstringnull.verifiedAtstringnull.lastCheckedAtstringnull.createdAtstringErrors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
400 | Enter a valid subdomain, e.g. track.yourcompany.com, Use a subdomain (track.yourcompany.com), not the root domain. or That domain is reserved. |
409 | A tracking domain already exists. Remove it before adding another. or That domain is already registered. |
422 | domain is missing |
501 | Custom tracking domains are not enabled on this environment. |
Rate Limit#
- 100 requests per minute, per API key. Fixed 60-second window.
- Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset(unix epoch seconds). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns (Retry-After, exponential backoff, monitoring X-RateLimit-Remaining), see Rate Limiting.