API reference
Domains
Monitored domains: expiry, certificate, DNS, reachability and uptime, and the verification of ownership.
Its operations need the scopes domains.edit, domains.view, domains.delete or security.edit.
The Domain object
Attributes
- uuidstring
The domain’s uuid.
- namestring
The domain name.
- domain_typestring or null
apex,subdomainorwildcard. - statusstring
One of
active,expired,pending(no expiry scan yet) andsuspended(switched off).Values:suspendedpendingexpiredactive(an open set: new values may be added) - health_statusstring
One of
unknown,healthy,warning,critical. - activeboolean
Whether monitoring is switched on.
- checksobject
Which reachability endpoints are checked.
- https_wwwboolean
Whether
https://www.is checked. - https_non_wwwboolean
Whether
https://on the bare domain is checked. - http_wwwboolean
Whether
http://www.is checked. - http_non_wwwboolean
Whether
http://on the bare domain is checked.
- scans_enabledobject
Which scan types are switched on.
- expiryboolean
Whether the registration expiry scan is on.
- dnsboolean
Whether the DNS change scan is on.
- sslboolean
Whether the SSL certificate expiry scan is on.
- whoisboolean
Whether the WHOIS change scan is on.
- reachabilityboolean
Whether the reachability scan is on.
- registrationobject or null
The latest completed expiry scan; null until one completes.
- registrarstring or null
The registrar of the domain; null when the registry does not publish it.
- registration_datestring or null
The registration date as
YYYY-MM-DD; null when unknown. - expiry_datestring or null
The registration expiry date as
YYYY-MM-DD; null when unknown. - updated_datestring or null
The date the registration was last updated, as
YYYY-MM-DD; null when unknown. - days_until_expiryinteger or null
Whole days left until the registration expires; negative once expired, null when unknown.
- is_expiredboolean
Whether the registration has expired.
- nameserversarray of strings
The domain’s name servers, one per item.
- status_codesarray of strings
The registry status codes of the domain, one per item.
- checked_atinteger or null
Epoch milliseconds. When the expiry scan completed; null when unknown.
An instant: epoch milliseconds, UTC.
- certificateobject or null
The latest completed certificate scan; null until one completes.
- common_namestring or null
The common name of the certificate; null when it has none.
- issuer_cnstring or null
The common name of the certificate’s issuer; null when unknown.
- issuer_orgstring or null
The organisation of the certificate’s issuer; null when unknown.
- valid_frominteger or null
Epoch milliseconds. When the certificate becomes valid; null when unknown.
An instant: epoch milliseconds, UTC. - valid_untilinteger or null
Epoch milliseconds. When the certificate stops being valid; null when unknown.
An instant: epoch milliseconds, UTC. - days_until_expiryinteger or null
Whole days left until the certificate expires; negative once expired, null when unknown.
- is_expiredboolean or null
Whether the certificate has expired; null when unknown.
- is_self_signedboolean or null
Whether the certificate is self-signed; null when unknown.
- chain_validboolean or null
Whether the certificate chain validates; null when unknown.
- ssl_statusstring or null
One of
valid,warn(30 days or fewer left),expired; null with no verdict.
- dnsobject or null
The newest completed DNS scan; null with none.
- checked_atinteger or null
Epoch milliseconds. When the DNS scan completed; null when unknown.
An instant: epoch milliseconds, UTC. - recordsobject
The DNS records of the scan, by record type.
- aarray of strings
The A records, as text lines.
- aaaaarray of strings
The AAAA records, as text lines.
- mxarray of strings
The MX records, as text lines.
- txtarray of strings
The TXT records, as text lines.
- cnamearray of strings
The CNAME records, as text lines.
- nsarray of strings
The NS records, as text lines.
- soaarray of strings
The SOA records, as text lines.
- caaarray of strings
The CAA records, as text lines.
- next_scansarray of anys
When each scan type runs next.
- tagsarray of objects
The tags attached to the domain.
- uuidstring
The tag’s uuid.
- namestring
The tag’s name.
- console_urlstring
The domain’s page in the console.
Create a domain
POST/v1/domains
Adds a domain to monitor under the organisation, with optional notes, monitoring switch, reachability endpoints, scan switches and tags; the hostname cannot be changed afterwards. Refuses a name already monitored by the organisation, an organisation over its domain limit, and an organisation that needs a payment method. Default alarms are created as in the console.
Needs the scope domains.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Body parameters
- namestringRequired
The hostname to monitor; an optional
*.wildcard prefix is allowed. It cannot be changed afterwards. - notesstring or nullOptional
Free-form notes about the domain; null or omitted stores none.
- activeboolean or nullOptional
Whether monitoring is switched on.
- checksobjectOptional
Which reachability endpoints are checked.
- http_wwwboolean or nullOptional
Whether
http://www.is checked for reachability. Omit to use the default. - http_non_wwwboolean or nullOptional
Whether
http://on the bare domain is checked for reachability. Omit to use the default. - https_wwwboolean or nullOptional
Whether
https://www.is checked for reachability. Omit to use the default. - https_non_wwwboolean or nullOptional
Whether
https://on the bare domain is checked for reachability. Omit to use the default.
- scans_enabledobjectOptional
Which scan types are switched on.
- expiryboolean or nullOptional
Whether the registration expiry scan is on. Omit to use the default.
- dnsboolean or nullOptional
Whether the DNS change scan is on. Omit to use the default.
- sslboolean or nullOptional
Whether the SSL certificate expiry scan is on. Omit to use the default.
- whoisboolean or nullOptional
Whether the WHOIS change scan is on. Omit to use the default.
- reachabilityboolean or nullOptional
Whether the reachability scan is on; at least one reachability endpoint must stay checked while it is. Omit to use the default. A wildcard domain never runs it.
- tag_uuidsarray of strings or nullOptional
The uuids of the tags the domain carries.
Returns
201 Created:
The domain that was created.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Update a domain
PUT/v1/domains/{domain_uuid}
Changes a domain’s monitoring switch, notes, reachability endpoints, scan switches and tags; the monitoring switch is required, and the other fields change only when sent. Alarm rules are not edited here. Answers the domain as the single-domain read does.
Needs the scope domains.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Body parameters
- notesstring or nullOptional
Free-form notes about the domain; send null to clear them. Omit to keep the current notes.
- activebooleanRequired
Whether monitoring is switched on.
- checksobjectOptional
Which reachability endpoints are checked.
- http_wwwboolean or nullOptional
Whether
http://www.is checked for reachability. Omit to keep the current value. - http_non_wwwboolean or nullOptional
Whether
http://on the bare domain is checked for reachability. Omit to keep the current value. - https_wwwboolean or nullOptional
Whether
https://www.is checked for reachability. Omit to keep the current value. - https_non_wwwboolean or nullOptional
Whether
https://on the bare domain is checked for reachability. Omit to keep the current value.
- scans_enabledobjectOptional
Which scan types are switched on.
- expiryboolean or nullOptional
Whether the registration expiry scan is on. Omit to keep the current value.
- dnsboolean or nullOptional
Whether the DNS change scan is on. Omit to keep the current value.
- sslboolean or nullOptional
Whether the SSL certificate expiry scan is on. Omit to keep the current value.
- whoisboolean or nullOptional
Whether the WHOIS change scan is on. Omit to keep the current value.
- reachabilityboolean or nullOptional
Whether the reachability scan is on; at least one reachability endpoint must stay checked while it is. Omit to keep the current value. A wildcard domain never runs it.
- tag_uuidsarray of strings or nullOptional
The uuids of the tags the domain carries.
Returns
200 OK:
The domain after the update.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Get a domain
GET/v1/domains/{domain_uuid}
Returns one domain with its latest completed expiry and SSL certificate scans, its newest completed DNS scan, when each scan type runs next, and its tags. Opening a domain may also add any default alarms the catalogue gained since the domain was created, as the console’s page does.
Needs the scope domains.view.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Returns
200 OK:
The domain.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List domains
GET/v1/domains
Returns the organisation’s domains, filtered by search text, status, health, registrar or tags and sorted by name, health, expiry dates or uptime. Each row summarises the domain’s status, registration and certificate expiry, last DNS change and 7-day uptime. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope domains.view.
Query parameters
- searchstring or nullOptional
Only domains whose name contains this text.
- statusstring or nullOptional
Only domains with this status:
active,expired,pending(no expiry scan yet) orsuspended(switched off).Values:activeexpiredpendingsuspended(an open set: new values may be added) - healtharray of strings or nullOptional
Only domains with one of these health statuses:
unknown,healthy,warningorcritical. A list: repeat the parameter (health=unknown&health=healthy) or send one value (health=unknown);health[]=unknownis accepted too.Values:unknownhealthywarningcritical(an open set: new values may be added) - registrarstring or nullOptional
Only domains whose registrar, as the latest expiry scan reports it, starts with this text.
- tag_uuidsarray of strings or nullOptional
Only domains carrying at least one of these tags, as tag UUIDs. A list: repeat the parameter (
tag_uuids=<uuid>&tag_uuids=<uuid>) or send one value (tag_uuids=<uuid>);tag_uuids[]=<uuid>is accepted too. - sortstring or nullOptional
The column to sort by:
name,health,registration_expiry,ssl_expiry,dns_last_changeoruptime.Values:namehealthregistration_expiryssl_expirydns_last_changeuptime(an open set: new values may be added) - directionstring or nullOptional
The sort direction,
asc(the default) ordesc.Values:ascdesc(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the organisation’s domains.
Each item of the page:
- uuidstring
The domain’s uuid.
- namestring
The domain name.
- domain_typestring or null
apex,subdomainorwildcard. - statusstring
One of
active,expired,pending(no expiry scan yet) andsuspended(switched off).Values:suspendedpendingexpiredactive(an open set: new values may be added) - health_statusstring
One of
unknown,healthy,warning,critical. - activeboolean
Whether monitoring is switched on.
- registrarstring or null
The registrar of the latest expiry scan.
- expiry_datestring or null
YYYY-MM-DD: the registration expiry of the latest expiry scan. - ssl_statusstring or null
One of
valid,warn(30 days or fewer left),expired; null with no certificate scan. - ssl_expiry_dateinteger or null
Epoch milliseconds. When the latest certificate expires; null with no certificate scan.
An instant: epoch milliseconds, UTC. - dns_last_changed_atinteger or null
Epoch milliseconds. When the DNS records last changed; null when the last scan was the baseline or there is none.
An instant: epoch milliseconds, UTC. - uptime_7d_percentnumber or null
The last 7 days’ reachability, one decimal; null with no data.
- scans_enabledobject
Which scan types are switched on.
- expiryboolean
Whether the registration expiry scan is on.
- dnsboolean
Whether the DNS change scan is on.
- sslboolean
Whether the SSL certificate expiry scan is on.
- whoisboolean
Whether the WHOIS change scan is on.
- reachabilityboolean
Whether the reachability scan is on.
- console_urlstring
The domain’s page in the console.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Delete a domain
DELETE/v1/domains/{domain_uuid}
Deletes the domain and stops monitoring it.
Needs the scope domains.delete.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Returns
204 No Content:
The domain was deleted; there is no body.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List a domain's changes
GET/v1/domains/{domain_uuid}/changes
Returns the scans of one type (dns, expiry or ssl) that changed something, newest first. Only the newest 20 changed scans of the type are available. Each row maps the changed fields to their old and new values; the first scan is a baseline. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope domains.view.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Query parameters
- typestringRequired
The scan type to list:
dns,expiryorssl.Values:dnsexpiryssl(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the domain’s scans of the requested type that changed something.
Each item of the page:
- uuidstring
The uuid of the scan that changed something.
- completed_atinteger or null
Epoch milliseconds: when the scan completed; null when it has not.
An instant: epoch milliseconds, UTC. - is_baselineboolean
Whether this is the first scan, or one whose previous scan was pruned, so nothing was compared.
- changesobject or null
Each changed field mapped to its old and new value; null when there is nothing to show.
- has_changesboolean or null
Whether the scan found a change against the previous one; null when the scan has not completed or its outcome kept it out of change detection.
- recordsobject
The DNS records the scan found, by record type.
- aarray of strings
The A records, as text lines.
- aaaaarray of strings
The AAAA records, as text lines.
- mxarray of strings
The MX records, as text lines.
- txtarray of strings
The TXT records, as text lines.
- cnamearray of strings
The CNAME records, as text lines.
- nsarray of strings
The NS records, as text lines.
- soaarray of strings
The SOA records, as text lines.
- caaarray of strings
The CAA records, as text lines.
- registrarstring or null
The registrar of the domain; null when the registry does not publish it.
- registration_datestring or null
The registration date as
YYYY-MM-DD; null when the registry does not publish it. - expiry_datestring or null
The registration expiry date as
YYYY-MM-DD; null when the registry does not publish it. - updated_datestring or null
The date the registration was last updated, as
YYYY-MM-DD; null when the registry does not publish it. - days_until_expiryinteger or null
Whole days left until the expiry; negative once expired, null when unknown.
- is_expiredboolean or null
Whether the registration or the certificate has expired; null when unknown.
- nameserversarray of strings
The domain’s name servers, one per item.
- status_codesarray of strings
The registry status codes of the domain, one per item.
- common_namestring or null
The common name of the certificate; null when it has none.
- issuer_cnstring or null
The common name of the certificate’s issuer; null when unknown.
- issuer_orgstring or null
The organisation of the certificate’s issuer; null when unknown.
- valid_frominteger or null
Epoch milliseconds: when the certificate becomes valid; null when unknown.
An instant: epoch milliseconds, UTC. - valid_untilinteger or null
Epoch milliseconds: when the certificate stops being valid; null when unknown.
An instant: epoch milliseconds, UTC. - is_self_signedboolean or null
Whether the certificate is self-signed; null when unknown.
- chain_validboolean or null
Whether the certificate chain validates; null when unknown.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Check domain verification
POST/v1/domains/{domain_uuid}/verification/check
Looks up the verification TXT record of the domain’s apex now and answers the verification state with the result of the lookup. Within the cooldown after a lookup, the stored result is returned instead of a new lookup.
Needs the scopes domains.view and security.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Returns
200 OK:
The apex’s verification state and the result of the lookup.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Run a domain scan
POST/v1/domains/{domain_uuid}/scans/{scan_type}
Queues a scan of one type (dns, expiry, information or ssl) on the domain now and returns a receipt; follow it with GET /v1/scans/{scan_uuid} until it ends. A scan of the same type and domain is refused during the cooldown, with the seconds left.
Needs the scope domains.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
- scan_typestringRequired
The scan to queue:
dns,expiry,informationorssl.Values:dnsexpiryinformationssl(an open set: new values may be added)
Returns
202 Accepted:
The scan was queued; the receipt names it.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List a domain's scans
GET/v1/domains/{domain_uuid}/scans
Returns the domain’s completed scans of one type (dns, expiry or ssl), newest first. Only the newest 20 completed scans of the type are available. Each row has the scan’s common fields and those of its type. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope domains.view.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Query parameters
- typestringRequired
The scan type to list:
dns,expiryorssl.Values:dnsexpiryssl(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the domain’s completed scans of the requested type.
Each item of the page:
- uuidstring
The scan’s uuid.
- statusstring
The scan’s state:
queued,running,completed,failedortimeout. - outcomestring or null
The scanner’s verdict on a completed scan:
data_found,no_data,target_not_found,blockedorlookup_unavailable; null when the scan did not get that far. - completed_atinteger or null
Epoch milliseconds: when the scan completed; null while it has not.
An instant: epoch milliseconds, UTC. - execution_time_msinteger or null
How long the scan took, in milliseconds; null when it did not complete.
- error_messagestring or null
The error that ended a failed scan; null otherwise.
- has_changesboolean or null
Whether the scan found a change against the previous one; null when the scan has not completed or its outcome kept it out of change detection.
- recordsobject
The DNS records the scan found, by record type.
- aarray of strings
The A records, as text lines.
- aaaaarray of strings
The AAAA records, as text lines.
- mxarray of strings
The MX records, as text lines.
- txtarray of strings
The TXT records, as text lines.
- cnamearray of strings
The CNAME records, as text lines.
- nsarray of strings
The NS records, as text lines.
- soaarray of strings
The SOA records, as text lines.
- caaarray of strings
The CAA records, as text lines.
- registrarstring or null
The registrar of the domain; null when the registry does not publish it.
- registration_datestring or null
The registration date as
YYYY-MM-DD; null when the registry does not publish it. - expiry_datestring or null
The registration expiry date as
YYYY-MM-DD; null when the registry does not publish it. - updated_datestring or null
The date the registration was last updated, as
YYYY-MM-DD; null when the registry does not publish it. - days_until_expiryinteger or null
Whole days left until the expiry; negative once expired, null when unknown.
- is_expiredboolean or null
Whether the registration or the certificate has expired; null when unknown.
- nameserversarray of strings
The domain’s name servers, one per item.
- status_codesarray of strings
The registry status codes of the domain, one per item.
- common_namestring or null
The common name of the certificate; null when it has none.
- issuer_cnstring or null
The common name of the certificate’s issuer; null when unknown.
- issuer_orgstring or null
The organisation of the certificate’s issuer; null when unknown.
- valid_frominteger or null
Epoch milliseconds: when the certificate becomes valid; null when unknown.
An instant: epoch milliseconds, UTC. - valid_untilinteger or null
Epoch milliseconds: when the certificate stops being valid; null when unknown.
An instant: epoch milliseconds, UTC. - is_self_signedboolean or null
Whether the certificate is self-signed; null when unknown.
- chain_validboolean or null
Whether the certificate chain validates; null when unknown.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Start domain verification
POST/v1/domains/{domain_uuid}/verification
Starts the ownership verification of the domain’s apex. It records the key’s owner as the authorising user, with the time and the Terms version, and answers the TXT record to publish. authorised must be true, confirming control of the domain.
Needs the scopes domains.view and security.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Body parameters
- authorisedanyRequired
Must be true: confirms that the organisation controls the domain and authorises WatchTower15 to scan it, as the Terms require.
Values:yeson11truetrue(an open set: new values may be added)
Returns
200 OK:
The apex’s verification state and the TXT record to publish.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List a domain's timeline
GET/v1/domains/{domain_uuid}/timeline
Returns why a domain failed or changed, newest first, one cursor page at a time, kept as long as its uptime (ten years): an endpoint gone down with the reason it gave and the HTTP status that came back, an endpoint that is still down, a recovery with how long it was down, a scan of any type that failed or recovered, and every change the DNS, SSL, registration and WHOIS scans flagged, with what changed. Failures are recorded from the date in recorded_from; changes go back to the domain’s first scan. WHOIS contact details are never kept: a contact change says only that it changed. Send no window for the whole history, period for a relative window, or from and to for a pinned one.
Needs the scope domains.view.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Query parameters
- periodstring or nullOptional
A relative window ending now: 1 to 9999 minutes, hours, days or weeks (
3h,2w). Not withfromandto. The operation names its longest window and its default. - fromstring or nullOptional
The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs
to. A start before the oldest data kept is served from it. - tostring or nullOptional
The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after
from. A window that ends before the oldest data kept, or in the future, is refused. - kindarray of strings or nullOptional
Only events of these kinds:
domain_endpoint_down,domain_endpoint_still_down,domain_endpoint_up,domain_scan_failed,domain_scan_recoveredordomain_change. Repeat the parameter (kind[]=domain_endpoint_down&kind[]=domain_endpoint_up) for several. A list: repeat the parameter (kind=domain_endpoint_down&kind=domain_endpoint_still_down) or send one value (kind=domain_endpoint_down);kind[]=domain_endpoint_downis accepted too.Values:domain_endpoint_downdomain_endpoint_still_downdomain_endpoint_updomain_scan_faileddomain_scan_recovereddomain_change(an open set: new values may be added) - endpointstring or nullOptional
Only events of this endpoint:
http_www,http_non_www,https_wwworhttps_non_www.Values:http_wwwhttp_non_wwwhttps_wwwhttps_non_www(an open set: new values may be added) - limitinteger or nullOptional
The same as
per_page, kept for existing clients. - cursorstring or nullOptional
The
next_cursorof the previous page; omit it for the first page. - per_pageinteger or nullOptional
How many events one page holds, from 1 to 100; 25 when omitted.
Returns
200 OK:
One page of the domain’s timeline.
Each item of the page:
- event_uuidstring
The event’s uuid.
- kindstring
One of
domain_endpoint_down(an endpoint failed its scans in a row),domain_endpoint_still_down(it is still down, written at most hourly),domain_endpoint_up(it answered again),domain_scan_failedanddomain_scan_recovered(a scan of any type failed, and passed again), anddomain_change(a scan flagged a change). - atinteger
Epoch milliseconds: when the scan that caused the event ran.
An instant: epoch milliseconds, UTC. - scan_typestring
The scan the event came from:
domain_reachability,domain_dns,domain_ssl,domain_expiryordomain_information. - scan_uuidstring
The uuid of that scan.
- endpointstring or null
The endpoint of an endpoint event:
http_www,http_non_www,https_wwworhttps_non_www; null for the others. - reasonstring or null
Why an endpoint went down (
dns,blocked_destination,refused,timeout,tls_expired,tls_hostname,tls_untrustedorno_reply) or a scan failed (scanner_failed,reaped_running,reaped_queued,blockedorlookup_unavailable); null otherwise. - http_statusinteger or null
The HTTP status the endpoint answered with, when one came back; null otherwise.
- response_msinteger or null
How long a recovered endpoint took to answer, in milliseconds; null otherwise.
- sinceinteger or null
Epoch milliseconds: when the failure began; null for a change.
An instant: epoch milliseconds, UTC. - down_for_secondsinteger or null
How long the endpoint was down, in seconds, on a recovery; null otherwise.
- failed_for_secondsinteger or null
How long the scan type kept failing, in seconds, on a scan recovery; null otherwise.
- statusstring or null
The failed scan’s status,
failedorcompleted; null for other events. - outcomestring or null
The failed scan’s outcome, such as
blockedorlookup_unavailable; null otherwise. - flagsarray of strings
On a change, the names of the change flags the scan set; an empty list otherwise.
- summaryobject or null
On a change, what changed:
changesmaps each field to itsoldandnewvalues (lists of text, at most 20 values of 256 characters in all, WHOIS contacts reduced to one line), andtruncatedsays a cap cut something; null otherwise. - baselineboolean or null
On a change, true when it is the domain’s first scan of that type, which establishes the baseline; null otherwise.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Get a domain's uptime
GET/v1/domains/{domain_uuid}/uptime
Returns the reachability uptime of each configured endpoint over the last 24 hours, 7 days and 30 days, weighted by the number of checks in each hour. With include_buckets=true it also returns the hourly buckets the figures come from, oldest first.
Needs the scope domains.view.
Path parameters
- domain_uuidstring (uuid)Required
The uuid of the domain.
Query parameters
- include_bucketsstring or nullOptional
Absent or false answers the figures only; true adds the hourly buckets they come from (
true,false,1or0).Values:truefalse10(an open set: new values may be added)
Returns
200 OK:
The domain’s uptime figures per endpoint, and the hourly buckets when asked for.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.