MetriBeacon
Menu

POST Cancel a draft test

/api/v1/monitors/checks/test-runs/{run_id}/cancel

Cancel your own active draft test. Repeating cancellation is safe. Running browser time remains charged and late results are rejected.

On this page

Access and permissions

Cancel your own active draft test. Repeating cancellation is safe. Running browser time remains charged and late results are rejected.

Browser session: __Host-mb_session cookie.

Machine management credentials in Authorization: Bearer. Check the permissions (scopes) required by the operation.

When using a browser session for a mutation, send the current CSRF token in X-CSRF-Token with the same-site cookie. OAuth consent uses its documented form field.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
run_idPathstring; {"format":"uuid"}YesResource UUID from the path. It must exist and be accessible to the acting identity.
OriginHeaderstring; {"format":"uri"}NoIf present, must match the canonical HTTPS origin. Sec-Fetch-Site cross-site is rejected.
X-CSRF-TokenHeaderstringNoBrowser CSRF cookie value. Not required when an allowed machine management credential is used.
workspace_idURL querystring; {"format":"uuid"}YesUnique resource identifier.

Request body

No request body.

Responses

Stable error codes
invalid_credential
unauthorized
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 401,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
csrf
insufficient_scope
invalid_origin
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 403,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
not_found
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 404,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
invalid_selection
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 422,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
creation_quota
rule_limit
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
Retry-Afterstring; {"pattern":"^[0-9]+$"}Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 429,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
feature_unavailable
unavailable
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
Retry-Afterstring; {"pattern":"^[0-9]+$"}Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
json
{
  "code": "demo",
  "detail": "Demo error detail; inspect the documented code.",
  "instance": "demo",
  "message": "Demo error detail; inspect the documented code.",
  "message_key": "errors.requestFailed",
  "message_params": {},
  "request_id": "00000000000000000000000000000000",
  "status": 503,
  "title": "Demo error",
  "type": "about:blank"
}
Stable error codes
stale_check
result_conflict
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/json

FieldType and limitsRequiredMeaning
$CheckDraftRunYes—
$.idstring; {"format":"uuid"}Yes—
$.location_idstring; {"format":"uuid"}Yes—
$.statusstring; {"enum":["pending","running","completed","cancelled","expired"]}Yes—
$.pause_reasonstring | null; {"enum":["network_quota","browser_quota",null]}Yes—
$.created_atstring; {"format":"date-time"}Yes—
$.deadline_atstring; {"format":"date-time"}Yes—
$.finished_atstring | null; {"format":"date-time"}Yes—
$.resultCheckResult | nullYes—
$.result (oneOf 1)CheckResultNo—
$.result (oneOf 1).codestring; {"pattern":"^[a-z][a-z0-9_]{0,63}$"}Yes—
$.result (oneOf 1).duration_msnumber; {"maximum":360000,"minimum":0}Yes—
$.result (oneOf 1).metricsobject | nullNo—
$.result (oneOf 1).statusJSON; {"enum":["up","down","unknown"]}Yes—
$.result (oneOf 1).statesobject | nullNo—
$.result (oneOf 1).detailsCheckPublicDiagnosticsNo—
$.result (oneOf 1).details.addressstring; {"maxLength":45}No—
$.result (oneOf 1).details.certificate_sha256string; {"pattern":"^[a-f0-9]{64}$"}No—
$.result (oneOf 1).details.certificate_not_beforestring; {"format":"date-time"}No—
$.result (oneOf 1).details.certificate_not_afterstring; {"format":"date-time"}No—
$.result (oneOf 1).details.response_codestring; {"pattern":"^[A-Z0-9_]{1,32}$"}No—
$.result (oneOf 1).details.answersarray<string; {"maxLength":1024}>; {"maxItems":64}No—
$.result (oneOf 1).details.answers[]string; {"maxLength":1024}Yes—
$.result (oneOf 1).details.certificate_chainarray<object; {"additionalProperties":false}>; {"maxItems":16}No—
$.result (oneOf 1).details.certificate_chain[]object; {"additionalProperties":false}Yes—
$.result (oneOf 1).details.certificate_chain[].sha256string; {"pattern":"^[a-f0-9]{64}$"}Yes—
$.result (oneOf 1).details.certificate_chain[].not_beforestring; {"format":"date-time"}Yes—
$.result (oneOf 1).details.certificate_chain[].not_afterstring; {"format":"date-time"}Yes—
$.result (oneOf 1).details.certificate_chain[].is_cabooleanYes—
$.result (oneOf 1).details.ssh_host_key_sha256string; {"pattern":"^SHA256:[A-Za-z0-9+/]{43}$"}No—
$.result (oneOf 1).details.domainCheckDomainRegistrationNo—
$.result (oneOf 1).details.domain.domainstring; {"maxLength":253}Yes—
$.result (oneOf 1).details.domain.expires_atstring; {"format":"date-time"} | nullYes—
$.result (oneOf 1).details.domain.expires_at (anyOf 1)string; {"format":"date-time"}No—
$.result (oneOf 1).details.domain.expires_at (anyOf 2)nullNo—
$.result (oneOf 1).details.domain.registrarstring; {"maxLength":256} | nullYes—
$.result (oneOf 1).details.domain.registrar (anyOf 1)string; {"maxLength":256}No—
$.result (oneOf 1).details.domain.registrar (anyOf 2)nullNo—
$.result (oneOf 1).details.domain.nameserversarray | null; {"maxItems":32}Yes—
$.result (oneOf 1).details.domain.nameservers[]string; {"maxLength":253}Yes—
$.result (oneOf 1).details.domain.nameservers_knownbooleanYes—
$.result (oneOf 1).details.domain.statusarray | null; {"maxItems":32}Yes—
$.result (oneOf 1).details.domain.status[]string; {"maxLength":128}Yes—
$.result (oneOf 1).details.domain.status_knownbooleanYes—
$.result (oneOf 1).details.domain.sourcestring; {"enum":["rdap","whois"]}Yes—
$.result (oneOf 1).details.domain.observed_atstring; {"format":"date-time"}Yes—
$.result (oneOf 1).details.domain.registry_updated_atstring; {"format":"date-time"} | nullYes—
$.result (oneOf 1).details.domain.registry_updated_at (anyOf 1)string; {"format":"date-time"}No—
$.result (oneOf 1).details.domain.registry_updated_at (anyOf 2)nullNo—
$.result (oneOf 1).details.domain.expiration_conflictbooleanYes—
$.result (oneOf 1).details.retry_atstring; {"format":"date-time"}No—
$.result (oneOf 1).details.certificateTLSSnapshotNo—
$.result (oneOf 1).details.certificate.hoststring; {"maxLength":253}Yes—
$.result (oneOf 1).details.certificate.tls_versionstringYes—
$.result (oneOf 1).details.certificate.chainarray<TLSCertificate>; {"minItems":1,"maxItems":16}Yes—
$.result (oneOf 1).details.certificate.chain[]TLSCertificateYes—
$.result (oneOf 1).details.certificate.chain[].sha256string; {"pattern":"^[a-f0-9]{64}$"}Yes—
$.result (oneOf 1).details.certificate.chain[].common_namestring; {"maxLength":256}Yes—
$.result (oneOf 1).details.certificate.chain[].issuerstring; {"maxLength":256}Yes—
$.result (oneOf 1).details.certificate.chain[].serialstring; {"maxLength":128}Yes—
$.result (oneOf 1).details.certificate.chain[].not_beforestring; {"format":"date-time"}Yes—
$.result (oneOf 1).details.certificate.chain[].not_afterstring; {"format":"date-time"}Yes—
$.result (oneOf 1).details.certificate.chain[].namesarray<string; {"maxLength":253}>; {"maxItems":128}Yes—
$.result (oneOf 1).details.certificate.chain[].names[]string; {"maxLength":253}Yes—
$.result (oneOf 1).details.certificate.chain[].is_cabooleanYes—
$.result (oneOf 1).details.certificate.chain[].sentbooleanYes—
$.result (oneOf 1).details.certificate.chain[].signaturestringYes—
$.result (oneOf 1).details.certificate.chain[].keystringYes—
$.result (oneOf 1).details.certificate.checksarray<object; {"additionalProperties":false}>; {"minItems":7,"maxItems":7}Yes—
$.result (oneOf 1).details.certificate.checks[]object; {"additionalProperties":false}Yes—
$.result (oneOf 1).details.certificate.checks[].keystring; {"enum":["validity","hostname","authority","chain","revocation","tls","strength"]}Yes—
$.result (oneOf 1).details.certificate.checks[].statusstring; {"enum":["passed","failed","unknown"]}Yes—
$.result (oneOf 1).details.certificate.checks[].reasonstring; {"maxLength":64}Yes—
$.result (oneOf 1).details.certificate.revocation_valid_untilstring; {"format":"date-time"}No—
$.result (oneOf 1).details.certificate.truncatedbooleanNo—
$.result (oneOf 1).details.certificate.portinteger; {"minimum":1,"maximum":65535}No—
$.result (oneOf 1).mail_deliveryCheckMailObservationNo—
$.result (oneOf 1).mail_delivery.phasestring; {"enum":["smtp","imap"]}Yes—
$.result (oneOf 1).mail_delivery.acceptedbooleanYes—
$.result (oneOf 1).mail_delivery.uncertainbooleanYes—
$.result (oneOf 1).mail_delivery.receivedbooleanYes—
$.result (oneOf 1).mail_delivery.removedbooleanYes—
$.result (oneOf 1).mail_delivery.cleanup_unavailablebooleanYes—
$.result (oneOf 1).mail_delivery.received_atstring; {"format":"date-time"}No—
$.result (oneOf 1).browserBrowserObservationNo—
$.result (oneOf 1).browser.enginesarray<BrowserEngineResult>; {"maxItems":3,"minItems":1}Yes—
$.result (oneOf 1).browser.engines[]BrowserEngineResultYes—
$.result (oneOf 1).browser.engines[].enginestring; {"enum":["chromium","firefox","webkit"]}Yes—
$.result (oneOf 1).browser.engines[].statusstring; {"enum":["up","down","unknown"]}Yes—
$.result (oneOf 1).browser.engines[].codestring; {"pattern":"^[a-z][a-z0-9_]{0,63}$"}Yes—
$.result (oneOf 1).browser.engines[].duration_msnumber; {"minimum":0,"maximum":120000}Yes—
$.result (oneOf 1).browser.engines[].wall_msnumber; {"minimum":0,"maximum":120000}Yes—
$.result (oneOf 1).browser.engines[].stepsarray<BrowserStepResult>; {"maxItems":128,"minItems":0}Yes—
$.result (oneOf 1).browser.engines[].steps[]BrowserStepResultYes—
$.result (oneOf 1).browser.engines[].steps[].indexinteger; {"minimum":0,"maximum":127}Yes—
$.result (oneOf 1).browser.engines[].steps[].statusstring; {"enum":["up","down","skipped"]}Yes—
$.result (oneOf 1).browser.engines[].steps[].codestring; {"pattern":"^[a-z][a-z0-9_]{0,63}$"}Yes—
$.result (oneOf 1).browser.engines[].steps[].duration_msnumber; {"minimum":0,"maximum":120000}Yes—
$.result (oneOf 1).browser.engines[].steps[].parentinteger; {"minimum":0,"maximum":126}No—
$.result (oneOf 1).browser.engines[].steps[].namestring; {"maxLength":160}No—
$.result (oneOf 1).browser.engines[].steps[].kindstring; {"enum":["test","step","hook"]}No—
$.result (oneOf 1).browser.engines[].steps[].sourceobject; {"additionalProperties":false}No—
$.result (oneOf 1).browser.engines[].metricsobject; {"additionalProperties":false} | nullYes—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1)object; {"additionalProperties":false}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).network_errorsnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).javascript_errorsnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).requestsnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).page_load_msnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).visual_diff_rationumber; {"minimum":0,"maximum":1}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).lcp_msnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).fcp_msnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).tbt_msnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).ttfb_msnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 1).clsnumber; {"minimum":0,"maximum":1000000000.0}No—
$.result (oneOf 1).browser.engines[].metrics (anyOf 2)nullNo—
$.result (oneOf 1).browser.engines[].artifact_codestring; {"enum":["","recording_unavailable"]}No—
$.result (oneOf 1).browser.engines[].runtimestring; {"enum":["journey-2"]}No—
$.result (oneOf 1).browser.engines[].navigationsarray<BrowserNavigation>; {"maxItems":64}No—
$.result (oneOf 1).browser.engines[].navigations[]BrowserNavigationYes—
$.result (oneOf 1).browser.engines[].navigations[].pageinteger; {"minimum":1,"maximum":16}Yes—
$.result (oneOf 1).browser.engines[].navigations[].indexinteger; {"minimum":1,"maximum":64}Yes—
$.result (oneOf 1).browser.engines[].navigations[].started_msnumber; {"minimum":0,"maximum":120000}Yes—
$.result (oneOf 1).browser.engines[].navigations[].completebooleanYes—
$.result (oneOf 1).browser.engines[].navigations[].vitalsobject; {"additionalProperties":false}Yes—
$.result (oneOf 1).httpobjectNo—
$.result (oneOf 1).http.attemptsarray<object>; {"maxItems":1}Yes—
$.result (oneOf 1).http.attempts[]objectYesStatus-only checks finish at the response headers without downloading the body. Text and JSON checks read up to 1 MiB (1,048,576 bytes). A larger response produces response_body_too_large and an unknown content_match; availability remains based on HTTP status only when content_as_down is false. Otherwise, an expected HTTP status with unverifiable content is unknown. An unexpected HTTP status still fails. Response-body read errors use response_body_read_error. Historical response_body diagnoses retain their original meaning. The received HTTP status is preserved in all cases.
$.result (oneOf 1).http.attempts[].body_matchedbooleanNo—
$.result (oneOf 1).http.attempts[].certificate_daysintegerNo—
$.result (oneOf 1).http.attempts[].checked_atstring; {"format":"date-time"}No—
$.result (oneOf 1).http.attempts[].duration_msintegerYesMilliseconds through the response headers for status-only checks, or through the bounded body read for text and JSON checks.
$.result (oneOf 1).http.attempts[].failure_codestring; {"enum":["","dns","target_denied","connection","tls","timeout","response_body","response_body_too_large","response_body_read_error","redirect","http_status","body_mismatch"]}No—
$.result (oneOf 1).http.attempts[].healthybooleanNo—
$.result (oneOf 1).http.attempts[].hopsarray<object>; {"maxItems":4}No—
$.result (oneOf 1).http.attempts[].hops[]objectYes—
$.result (oneOf 1).http.attempts[].hops[].connect_msnumberNo—
$.result (oneOf 1).http.attempts[].hops[].dns_msnumberYes—
$.result (oneOf 1).http.attempts[].hops[].duration_msnumberYes—
$.result (oneOf 1).http.attempts[].hops[].familystring; {"enum":["ipv4","ipv6"]}No—
$.result (oneOf 1).http.attempts[].hops[].statusintegerNo—
$.result (oneOf 1).http.attempts[].hops[].tls_msnumberNo—
$.result (oneOf 1).http.attempts[].hops[].ttfb_msnumberNo—
$.result (oneOf 1).http.attempts[].initial_statusintegerNo—
$.result (oneOf 1).http.attempts[].redirectsintegerYes—
$.result (oneOf 1).http.attempts[].statusintegerYes—
$.result (oneOf 1).http.attempts[].methodstring; {"enum":["GET","HEAD"]}No—
$.result (oneOf 1).http.attempts[].certificateTLSSnapshotNo—
$.result (oneOf 1).http.attempts[].certificate.hoststring; {"maxLength":253}Yes—
$.result (oneOf 1).http.attempts[].certificate.tls_versionstringYes—
$.result (oneOf 1).http.attempts[].certificate.chainarray<TLSCertificate>; {"minItems":1,"maxItems":16}Yes—
$.result (oneOf 1).http.attempts[].certificate.chain[]TLSCertificateYes—
$.result (oneOf 1).http.attempts[].certificate.checksarray<object; {"additionalProperties":false}>; {"minItems":7,"maxItems":7}Yes—
$.result (oneOf 1).http.attempts[].certificate.checks[]object; {"additionalProperties":false}Yes—
$.result (oneOf 1).http.attempts[].certificate.revocation_valid_untilstring; {"format":"date-time"}No—
$.result (oneOf 1).http.attempts[].certificate.truncatedbooleanNo—
$.result (oneOf 1).http.attempts[].certificate.portinteger; {"minimum":1,"maximum":65535}No—
$.result (oneOf 2)nullNo—
$.workspace_idstring; {"format":"uuid"}Yes—
$.typeJSON; {"enum":["http","tcp","udp","dns","tls","ping","service","browser"]}Yes—
$.progressobjectNo—

Retries and asynchronous work

Keep the documented IDs for retries. After an unclear response, do not replace them with new IDs, which could create another resource or reading.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --silent --show-error --output /dev/null --write-out "%{http_code}\n" \
  --request POST \
  --header @"$HOME/.config/metribeacon/headers.txt" \
  --header "Content-Type: application/json" \
  --data-binary '{}' \
  "https://metribeacon.com/api/v1/monitors/checks/test-runs/00000000-0000-4000-8000-000000000003/cancel?workspace_id=00000000-0000-4000-8000-000000000001"
python
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError

headers = json.loads((Path.home() / ".config/metribeacon/headers.json").read_text())
headers["Content-Type"] = "application/json"
request = Request("https://metribeacon.com/api/v1/monitors/checks/test-runs/00000000-0000-4000-8000-000000000003/cancel?workspace_id=00000000-0000-4000-8000-000000000001", data="{}".encode("utf-8"), headers=headers, method="POST")
class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, request, fp, code, message, headers, target):
        return None

opener = build_opener(NoRedirect())
try:
    with opener.open(request, timeout=10) as response:
        print(response.status)
except HTTPError as error:
    print(error.code)
    error.close()
javascript
import { readFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";

const headers = JSON.parse(await readFile(join(homedir(), ".config/metribeacon/headers.json"), "utf8"));
headers["Content-Type"] = "application/json";
const response = await fetch("https://metribeacon.com/api/v1/monitors/checks/test-runs/00000000-0000-4000-8000-000000000003/cancel?workspace_id=00000000-0000-4000-8000-000000000001", {
  method: "POST", headers, redirect: "manual",
  signal: AbortSignal.timeout(10000), body: "{}",
});
console.log(response.status);
await response.body?.cancel();
go
package main

import (
  "fmt"
  "net/http"
  "time"
  "encoding/json"
  "os"
  "path/filepath"
  "strings"
)

func main() {
  home, err := os.UserHomeDir(); if err != nil { panic("request failed; credentials and response omitted") }
  raw, err := os.ReadFile(filepath.Join(home, ".config/metribeacon/headers.json")); if err != nil { panic("request failed; credentials and response omitted") }
  var headers map[string]string
  if json.Unmarshal(raw, &headers) != nil { panic("invalid local headers") }
  request, err := http.NewRequest("POST", "https://metribeacon.com/api/v1/monitors/checks/test-runs/00000000-0000-4000-8000-000000000003/cancel?workspace_id=00000000-0000-4000-8000-000000000001", strings.NewReader("{}"))
  if err != nil { panic("request failed; credentials and response omitted") }
  for name, value := range headers { request.Header.Set(name, value) }
  request.Header.Set("Content-Type", "application/json")
  client := &http.Client{Timeout: 10*time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
  response, err := client.Do(request)
  if err != nil { panic("request failed; credentials and response omitted") }
  defer response.Body.Close()
  fmt.Println(response.StatusCode)
}
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • POST Test a monitor draft

    Run the configured check once at a selected authorized location without creating a monitor, series or alerts. Reuse the same request_id after an uncertain response. Protected credentials and private results expire after 15 minutes. Browser and mail actions require actions_confirmed; browser recordings are disabled and visual baselines require a saved monitor. Executions share regular network/browser budgets.

  • GET Read your monitors

    Read your monitors.

  • POST Create a monitor with its enabled type

    Create a monitor with its enabled type.