Tracking domains
More ways to use this page
List the tracking domains
GET/v1/
TypeScript account
Python account
PHP $account->trackingDomains->list()
Java account
Key ak_… an account key
Responses
Every field of a response is always present. A field that can be null says so in its type.
200Every tracking domain of the account.
Example
{
"trackingDomains": [
{
"trackingDomainId": "3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09",
"host": "links.example.se",
"sendingDomainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"state": "pending",
"createdAt": "2026-11-05T12:00:00.000Z",
"lastCheckedAt": null,
"certificateReadyAt": null,
"failingSince": null,
"expiresAt": "2026-11-12T12:00:00.000Z",
"cname": {
"type": "CNAME",
"host": "links.example.se",
"value": "track.sendora.se",
"check": null
},
"caa": {
"check": null,
"record": null
}
}
]
}trackingDomainsarray of objecttrackingDomainIdstring (uuid)hoststringThe host, lower-cased and IDNA-encoded.
sendingDomainIdstring (uuid) or nullThe sending domain whose new mail will use the host; null once that domain is deleted.
state"pending" | "waiting_for_ certificate" | "ready" | "failing" | "stopped" | "sending_ domain_ lost" pending: the records have not been right yet, and the host goes at expiresAt. waiting_for_certificate: the records are right. ready: new mail from the sending domain uses the host. failing: a check found the records wrong, and new mail keeps using a host that was ready until 24 hours after failingSince. stopped: those 24 hours have passed. sending_domain_lost: the sending domain is deleted or has lost its verification, so new mail does not use the host.
createdAtstring (date-time)lastCheckedAtstring (date-time) or nullWhen the records were last looked up.
certificateReadyAtstring (date-time) or nullWhen the certificate was proved to work; null before that.
failingSincestring (date-time) or nullWhen a check first found the records wrong on a host whose records have been right. Null unless it is in that warning or past it.
expiresAtstring (date-time) or nullWhen a host whose records have never been right goes; null once they have been.
cnameobjectThe CNAME record to add.
type"CNAME"hoststringThe name to create the record under.
valuestringThe value the record must hold.
check"ok" | "missing" | "mismatch" | "proxied" | "dns_error" or null What the last check found; null before the first. mismatch is a record that points elsewhere, an A record included. proxied is a proxy in front of the name, such as Cloudflare’s, which must be switched off. dns_error is a resolver failure, not an absent record, and changes nothing.
caaobjectWhether CAA records let Let’s Encrypt issue the certificate.
check"ok" | "no_lets_ encrypt" | "other_ account" | "no_ http_ 01" | "dns_ error" or null What the last check of the CAA records on the host and its parents found; null before the first. dns_error is a resolver failure and changes nothing.
recordobject or nullWhat lets the certificate be issued; null unless the check found a problem.
type"CAA"hoststringThe name that holds the CAA records in the way.
valuestringThe record to add beside them.
Errors
Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.
| Code | Status | Meaning |
|---|---|---|
unauthorized | 401 | The key is missing, malformed or revoked. |
wrong_ | 403 | The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes. |
not_ | 403 | A connected app called an operation that no tool of the MCP server calls. An API key can. |
read_ | 403 | A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting. |
test_ | 403 | A connected app may create a secret, or do what cannot be undone, on a test server only. |
WWW-Authenticateheader on 401"Bearer"Always Bearer: send the key as Authorization: Bearer <key>.