Skip to main content

Documentation index for AI agents: llms.txt. Every page here is also served as markdown: add .md to its address, or request it with Accept: text/markdown.

CreateMonitorRequest data model

The CreateMonitorRequest shape in the Visual Sentinel REST API.

Fields

FieldTypeRequiredDescription
namestringYesDisplay name. Min length 1, max length 200.
urlstring (uri)YesAddress to check. HTTP, HTTPS, KEYWORD, API and GRAPHQL monitors take a full http:// or https:// address. TCP and PORT take host:port, UDP takes udp://host:port, WEBSOCKET takes ws:// or wss://, and PING, DNS and SSL take a host name. Spaces are not allowed. Max length 2048.
typeMonitorTypeNoMonitor type. Defaults to HTTPS.
checkIntervalintegerNoSeconds between uptime checks. On create, a value below your plan minimum is raised to the minimum. Default: 300. Minimum 60, maximum 86400.
timeoutintegerNoRequest timeout in milliseconds. Default: 30000. Minimum 1000, maximum 120000.
maxResponseTimeintegerNoResponses slower than this many milliseconds count as slow. Default: 5000. Minimum 100, maximum 60000.
enabledbooleanNoWhether the monitor is checked. Send false to pause it and true to resume it. Default: true.
descriptionstring or nullNoFree-text notes. Max length 10000.
tagsarray of stringNoTags for grouping and filtering. Status page groups can follow tags. Default: []. Max items 50.
locationsarray of stringNoUptime check regions: EU, US and ASIA. Only HTTP, HTTPS, KEYWORD, API and GRAPHQL monitors can use US or ASIA; other types run from EU and another region returns 400 LOCATION_UNSUPPORTED_FOR_TYPE. Unknown regions return 400 INVALID_LOCATION; a region outside your plan returns 403 LOCATION_RESTRICTED. Asia Pacific is enabled per workspace during its rollout; call GET /api/monitoring/regions first. When this workspace cannot use ASIA the request fails with 400 REGION_UNAVAILABLE. Older spellings such as eu-west-1 are accepted and stored as the region code. Items are one of: EU, US, ASIA. Default: ["EU"]. Max items 10.
visualRegionstring or nullNoWhere screenshots for visual checks are taken: EU (the default, stored as null) or ASIA. Asia Pacific is enabled per workspace during its rollout; call GET /api/monitoring/regions first. When this workspace cannot use ASIA the request fails with 400 REGION_UNAVAILABLE. Changing the region starts a fresh baseline. One of: EU, ASIA, null.
visualEnabledbooleanNoVisual change detection (screenshots). On create, when omitted, it is turned on for HTTP and HTTPS monitors on plans that include visual monitoring. Needs a plan with visual monitoring (403 FEATURE_RESTRICTED) and a free visual slot (403 LIMIT_EXCEEDED).
serviceDependencySlugstring or nullNoCreate a service monitor for a provider from GET /api/dependencies. The catalog sets the address, so url can be any placeholder. Returns 409 DEPENDENCY_EXISTS when that service is already monitored. Min length 1, max length 100.
methodstring or nullNoHTTP method for HTTP-family monitors. One of: GET, POST, PUT, PATCH, DELETE, HEAD, QUERY, OPTIONS, null.
headersmap of stringNoRequest headers as name and value pairs (up to 16 KB).
bodystring or nullNoRequest body for POST, PUT, PATCH and QUERY checks. Max length 65536.
expectedStatusarray of integerNoStatus codes that count as up.
followRedirectsbooleanNoFollow redirects.
expectedBodystring or nullNoText the response must contain. Max length 65536.
authTypestring or nullNoAuthentication for the checked address: none, basic, bearer or apikey.
authConfigobjectNoCredentials for authType, for example { "username": "...", "password": "..." } or { "token": "..." } (up to 8 KB).
sslCheckbooleanNoCertificate expiry and validity monitoring. Needs a plan with SSL monitoring.
checkOtherAddressbooleanNoCheck the website's www or bare-domain twin every 15 minutes without using a site slot. Ignored for other monitor types. Default: true.
sslDaysBeforenumberNoOlder single reminder threshold in days. Prefer sslAlertDays.
sslAlertDaysarray of integerNoDays before certificate expiry to send reminders.
domainExpiryEnabledbooleanNoDomain registration expiry monitoring for this monitor's registrable domain. Available on every plan. Defaults to true on create. Default: true.
domainAlertDaysarray of integerNoDays-before-expiry reminder tiers. Defaults to [50, 13, 3, 1] on create. Items are one of: 50, 30, 20, 13, 6, 3, 1. Default: [50,13,3,1]. Min items 1.
alertThresholdnumberNoConsecutive failed checks before an alert is sent.
slowAlertThresholdnumberNoConsecutive slow responses before a slow-response alert.
alertDelayintegerNoSeconds to wait after the threshold is met before alerting. Minimum 0.
reportEnabledbooleanNoScheduled client report email for this monitor. Needs the Business plan or higher (403).
reportEmailstring or nullNoReport recipient. Max length 320.
reportFrequencystringNoReport schedule. One of: weekly, biweekly, monthly, both, all.
notificationRepeatIntervalintegerNoMinutes until a reminder while a problem continues, then one reminder a day. 0 sends no reminders. Default: 360. Minimum 0, maximum 1440.
performanceThresholdsobjectNoPerformance budgets in milliseconds (responseTime, ttfb, fcp, lcp) and cls.
performanceThresholds.responseTimeintegerNo
performanceThresholds.ttfbintegerNo
performanceThresholds.fcpintegerNo
performanceThresholds.lcpintegerNo
performanceThresholds.clsnumberNo
visualConfigobjectNoVisual check settings: threshold (percent of changed pixels that counts as a change, 0 to 100; when omitted, 5 percent applies. The Add monitor form in the app saves 10), checkInterval (seconds, at least 900), viewport { width, height }, fullPage, excludeSelectors, video and GIF handling, and auth for pages behind a login. Up to 16 KB.
dnsEnabledbooleanNoDNS record change monitoring. On create, when omitted, it is turned on for HTTP, HTTPS and DNS monitors on plans that include DNS monitoring, watching A, AAAA, MX, NS and TXT records unless dnsRecords names others. Needs a plan with DNS monitoring (403 FEATURE_RESTRICTED).
dnsRecordsmap of booleanNoDNS record types to watch, as { "A": true, "MX": true }.
performanceEnabledbooleanNoDaily phone speed test. Needs a plan with performance monitoring.
keywordConfigobjectNoKeyword checks on the response: mustContain and mustNotContain lists, caseSensitive, and enabled.
keywordConfig.enabledbooleanNo
keywordConfig.mustContainarray of stringNo
keywordConfig.mustNotContainarray of stringNo
keywordConfig.caseSensitivebooleanNo
freshnessConfigobjectNoContent freshness check: alert when a date on the page is older than maxAgeHours.
contentConfigobjectNoContent change detection: selectors (CSS selectors to include or exclude), jsRendering, and optional conditions. Needs a plan with content monitoring.
apiConfigApiMonitorConfigNoAPI and GRAPHQL monitors: response checks (assertions), responseSlo, responseFormat, response body storage and, for GRAPHQL, the graphql query.

Used by

Generated from the OpenAPI 3.1 specification at https://docs.visualsentinel.com/openapi.json.