const url = 'https://app.monitorly.cloud/api/v1/status-pages/PAGE_ID/domain/verify';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.monitorly.cloud/api/v1/status-pages/PAGE_ID/domain/verify \ --header 'Authorization: Bearer <token>'Checks the domain’s TXT record now. The result is in the answer’s customDomain.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The status page’s id.
Example
PAGE_IDResponses
Section titled “Responses”The page with the result of the check.
object
#rrggbb: the page’s accent instead of the product’s; white text on it has at least 4.5:1 contrast.
Who may open the published page. Always sent; optional in the schema because it was added after the first clients.
object
The name is the check’s and changes when the check is renamed; false once another name was written. Always sent; optional in the schema because it was added after the first clients.
Heading the component is listed under on the page; null for the ungrouped list.
The component’s key in a config file, unique on the page; null for components made in the dashboard. Always sent; optional in the schema because it was added after the first clients.
The page’s custom domain, null without one. Always sent; optional in the schema.
object
The CNAME record: domain → this host.
The resolver’s message for dns_error.
Lower case, IDN in its ASCII form (xn--…).
Why the last check did not verify: txt_missing, txt_mismatch or dns_error; null after a verification.
The TXT record’s name: _monitorly.<domain>.
The TXT record’s value: monitorly-verification=<token>.
https://<domain>: the page’s address once the domain is verified.
Confirmed email subscribers. Always sent; optional in the schema.
Visitors can subscribe by email (the installation sends email). Always sent; optional in the schema.
A page password is stored (it is never answered). Always sent; optional in the schema.
The page leaves out “Powered by Monitorly Cloud” (Business plan). Always sent; optional in the schema.
object
config when a config apply manages the page, ui otherwise. Always sent; optional in the schema
because it was added after the first clients.
The page’s public address (<status host>/<slug>), also while it is a draft (it answers 404 until
the page is published); null when the installation has no status page address.
The page’s key in a config file; null until a config apply creates or adopts it. Always sent; optional in the schema because it was added after the first clients.
https://t.me/<bot>?start=sub_<code>: the page’s “Subscribe” link; null without a bot username.
Telegram chats subscribed to the page’s posts (active ones).
The hosted page’s theme; null is the product’s own look. Always sent; optional in the schema.
object
The colours of the dark scheme; the product’s own when left out.
object
Behind the page.
Lines between rows and around panels.
Secondary text and field edges: at least 3:1 on background and on surface.
Panels, cards and the header.
Text: at least 4.5:1 on background and on surface.
The colours of the light scheme; the product’s own when left out.
object
Behind the page.
Lines between rows and around panels.
Secondary text and field edges: at least 3:1 on background and on surface.
Panels, cards and the header.
Text: at least 4.5:1 on background and on surface.
Up to 5 links in the page header, in this order.
A link in the page header, between the page name and the website link.
object
1–32 characters on one line.
An absolute http or https URL with a host, at most 2048 characters.
The company site the page header links to.
Example
{ "access": "public", "components": [ { "checkId": "CHECK_ID", "id": "ID" } ], "customDomain": { "state": "pending" }, "id": "ID", "managedBy": "ui", "projectId": "PROJECT_ID", "theme": { "font": "system", "layout": "list", "mode": "auto", "radius": "none" }}Bad Request.
auth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames itrequest.origin_mismatch,request.header_required: a changing request with a session comes from another site or lacksX-Monitorly-Request: 1
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this tokensession.rate_limited: more than 5 changes a second from your sessions
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.