Skip to main content

HttpTask

An HTTP task with its current state.

idstring<uuid>required

Task id (UUID).

Example: 0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b
namestringrequired

Task name.

Example: Production homepage
urlstring<uri>required

URL to request.

Example: https://example.com/
httpMethodstringrequired

HTTP method: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.

Possible values: [GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS]

Example: GET
followRedirectsbooleanrequired

Follow HTTP redirects.

Example: true
ignoreServerCertificateErrorbooleanrequired

Accept invalid or self-signed TLS certificates instead of failing the check.

Example: false
retryCountintegerrequired

Retries after a failed request before the result is recorded.

Example: 2
retryTimeoutMsintegerrequired

Pause between retries, in milliseconds.

Example: 500
headers object[]required
  • Array [
  • namestringrequired

    Header name.

    Example: Authorization
    valuestringrequired

    Header value.

    Example: Bearer my-token
  • ]
  • tagsstring[]required

    Tags of the task.

    Example: ["prod","backend"]
    assertions object[]required
  • Array [
  • typestringrequired

    What is checked: status_code, body or response_time.

    Example: status_code
    operatorstringrequired

    Comparison operator, see AssertionInput.

    Example: is
    value objectrequired

    Expected value: a string for status_code and body, an integer (milliseconds) for response_time.

    anyOf
    integer
  • ]
  • locationIdsstring[]required

    Locations the check runs from, see GET /v1/locations.

    Example: ["RUMOW","GBLON"]
    checkIntervalSecondsintegerrequired

    How often the check runs, in seconds.

    Possible values: [30, 60, 300, 600, 900, 1800, 3600]

    Example: 60
    alertTimeframeWindowintegerrequired

    Minutes the failure must persist before the task becomes alerting; 0 alerts at once.

    Example: 5
    alertLocationsCountintegerrequired

    How many locations must fail at the same time to count as a failure.

    Example: 1
    isActivebooleanrequired

    Whether checks are running; false means paused by the user.

    Example: true
    statestringrequired

    Current state: pending (no results yet), ok, alerting, no_data (locations stopped reporting), paused (isActive is false), billing (suspended by billing), config_error (the task cannot be executed as configured).

    Possible values: [pending, ok, alerting, no_data, paused, billing, config_error]

    Example: ok
    stateChangedAtstring<date-time>required

    ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00

    Example: 2026-08-14T13:02:07.214+00:00
    bodystring | nullnullablerequired

    Request body text; null when the task sends no body.

    bodyTypestring | nullnullablerequired

    Request body type: json, form_urlencoded, html, plain, xml; null when the task sends no body.

    Possible values: [json, form_urlencoded, html, plain, xml, null]

    suspendedUntil(string | null)<date-time>nullablerequired

    ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00

    createdAtstring<date-time>required

    ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00

    Example: 2026-08-14T13:02:07.214+00:00
    updatedAtstring<date-time>required

    ISO-8601 with milliseconds and offset, e.g. 2026-08-14T13:02:07.214+00:00

    Example: 2026-08-14T13:02:07.214+00:00
    HttpTask
    {
    "id": "0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
    "name": "Production homepage",
    "url": "https://example.com/",
    "httpMethod": "GET",
    "followRedirects": true,
    "ignoreServerCertificateError": false,
    "retryCount": 2,
    "retryTimeoutMs": 500,
    "headers": [
    {
    "name": "Authorization",
    "value": "Bearer my-token"
    }
    ],
    "tags": [
    "prod",
    "backend"
    ],
    "assertions": [
    {
    "type": "status_code",
    "operator": "is",
    "value": "200"
    }
    ],
    "locationIds": [
    "RUMOW",
    "GBLON"
    ],
    "checkIntervalSeconds": 60,
    "alertTimeframeWindow": 5,
    "alertLocationsCount": 1,
    "isActive": true,
    "state": "ok",
    "stateChangedAt": "2026-08-14T13:02:07.214+00:00",
    "body": "string",
    "bodyType": "json",
    "suspendedUntil": "2024-07-29T15:51:28.071Z",
    "createdAt": "2026-08-14T13:02:07.214+00:00",
    "updatedAt": "2026-08-14T13:02:07.214+00:00"
    }