Supercheck LogoSupercheck
Monitors API

Create a monitor

POST
/api/monitors

Create a new uptime or performance monitor. For type: heartbeat the target is empty and the response adds heartbeat.pingUrl (returned only here). New heartbeat monitors default to a sev2 incident on a missed run and the heartbeat_late warning off. See /docs/app/heartbeat.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.

Request Body

application/json
  1. body
name*string
description?string
type*string

Monitor type. A heartbeat monitor cannot change to another type, and no other type can change to heartbeat.

Default"http_request"
Value in"http_request""website""ping_host""port_check""synthetic_test""heartbeat""mcp_server"
target?string

URL, host, or synthetic test target. Empty (or omitted on create) for heartbeat monitors, which receive pings instead.

frequencyMinutes?integer

Check interval in minutes. Whole minutes, 1 to 1440; for heartbeat the expected ping interval, 1 to 44640 (31 days). config.timeoutSeconds must not exceed this interval in seconds.

Range1 <= value <= 44640
Default5
enabled?boolean
Defaulttrue
config?
alertConfig?

Response Body

Monitor created

application/json
  1. response
id?string
Formatuuid
organizationId?string
Formatuuid
projectId?string
Formatuuid
createdByUserId?string
Formatuuid
createdByName?string
createdByImage?string
name?string
description?string|null
target?string

URL, host, or synthetic test target. Empty (or omitted on create) for heartbeat monitors, which receive pings instead.

type?string
Value in"http_request""website""ping_host""port_check""synthetic_test""heartbeat""mcp_server"
status?string
Value in"up""down""paused""pending""maintenance""error"
frequencyMinutes?integer

Check interval in minutes; for heartbeat the expected ping interval

enabled?boolean
config?|null
alertConfig?|null
lastCheckAt?|
Formatdate-time
lastStatusChangeAt?|
Formatdate-time
inMaintenance?boolean

List responses only. True while a maintenance window covers the monitor; status keeps the real up/down value.

scheduledJobId?string|null
createdAt?string
Formatdate-time
updatedAt?string
Formatdate-time
heartbeat?

Present for heartbeat monitors only.

Example Request
curl -X POST 'https://app.supercheck.io/api/monitors' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "type": "http_request"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",  "createdByName": "string",  "createdByImage": "string",  "name": "string",  "description": "string",  "target": "string",  "type": "http_request",  "status": "up",  "frequencyMinutes": 0,  "enabled": true,  "config": {    "method": "GET",    "headers": {      "property1": "string",      "property2": "string"    },    "body": "string",    "expectedStatusCodes": "string",    "keywordInBody": "string",    "keywordInBodyShouldBePresent": true,    "auth": {      "type": "none",      "username": "string",      "password": "string",      "token": "string",      "secretKey": "string"    },    "aiEndpoint": {      "secretKey": "string",      "keyHeader": "Authorization",      "model": "string",      "prompt": "Reply with the single word OK.",      "maxTokens": 16,      "expectText": "string",      "firstTokenTimeoutMs": 15000,      "warnFirstTokenMs": 100,      "warnTotalTokens": 1    },    "aiEndpointState": {      "lastServedModel": "string"    },    "mcp": {      "auth": {        "type": "none",        "secretKey": "string",        "headerName": "string"      },      "protocol": "auto",      "requiredTools": [        "string"      ],      "toolCall": {        "name": "string",        "arguments": {},        "expectText": "string"      },      "slowMs": 100    },    "mcpState": {      "detectedProtocol": "2025",      "baseline": {        "hash": "string",        "takenAt": "2019-08-24T14:15:22Z",        "tools": [          {            "name": "string",            "fingerprint": "string"          }        ]      },      "changes": [        {          "at": "2019-08-24T14:15:22Z",          "added": [            "string"          ],          "removed": [            "string"          ],          "changed": [            {              "name": "string",              "reasons": [                "description"              ]            }          ]        }      ]    },    "port": 0,    "protocol": "tcp",    "expectClosed": true,    "enableSslCheck": true,    "sslDaysUntilExpirationWarning": 0,    "sslCheckFrequencyHours": 0,    "sslLastCheckedAt": "2019-08-24T14:15:22Z",    "sslProbeFailure": {      "since": "2019-08-24T14:15:22Z",      "host": "string"    },    "sslCertificate": {      "valid": true,      "issuer": "string",      "subject": "string",      "validFrom": "2019-08-24T14:15:22Z",      "validTo": "2019-08-24T14:15:22Z",      "daysRemaining": 0,      "host": "string"    },    "timeoutSeconds": 1,    "regions": [      "string"    ],    "locationConfig": {      "enabled": true,      "locations": [        "string"      ],      "threshold": 0,      "strategy": "all"    },    "alertChannels": [      "string"    ],    "testId": "82d0c3c7-a664-4ee3-9f0e-ea5738ca0af0",    "testTitle": "string",    "playwrightOptions": {      "headless": true,      "timeout": 0,      "retries": 0    },    "heartbeat": {      "graceMinutes": 1    }  },  "alertConfig": {    "enabled": true,    "notificationProviders": [      "9b51326e-6c58-4421-93f5-8536d56072b8"    ],    "alertOnFailure": true,    "alertOnRecovery": true,    "alertOnSslExpiration": true,    "failureThreshold": 1,    "recoveryThreshold": 1,    "customMessage": "string",    "incidentEnabled": true,    "incidentSeverity": "sev1",    "autoResolveIncident": true,    "warnings": {      "property1": true,      "property2": true    }  },  "lastCheckAt": "2019-08-24T14:15:22Z",  "lastStatusChangeAt": "2019-08-24T14:15:22Z",  "inMaintenance": true,  "scheduledJobId": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "heartbeat": {    "state": "pending",    "lastPingAt": "2019-08-24T14:15:22Z",    "lastPingKind": "ping",    "lastStartAt": "2019-08-24T14:15:22Z",    "nextExpectedAt": "2019-08-24T14:15:22Z",    "graceMinutes": 0,    "pingUrl": "http://example.com"  }}