Skip to main content

Create Monitor

1 min read
post/monitor
Request example
Response
post/monitor

Authorization

Authorizationstringheaderrequired#
Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Body

application/json
namestringrequired#

Length: max 256

scheduleobjectrequired#
Schedule for monitor checks. Provide either cron or text.
Show child attributes
cronstring#
Five-field cron expression. Minimum interval is 5 minutes.
textstring#
Natural language schedule. Supported examples include every 30 minutes, every 15 minutes starting at :07, hourly, every 2 hours, daily, daily at 9:00, daily at 9am, daily at 5:30 PM, and weekly.
timezonestring#
IANA timezone for the schedule.

Default: "UTC"

webhookobject#
Webhook destination for monitor page and check completion events.
Show child attributes
urlstringrequired#
The URL to send monitor webhooks to.
headersobject#
Headers to send to the webhook URL.
Show child attributes
{key}string#
metadataobject#
Custom metadata included in webhook payloads.
eventsenum<string>[]#
Monitor webhook events to receive. Defaults to all monitor events.
notificationobject#
Show child attributes
emailobject#
Show child attributes
enabledboolean#

Default: false

recipientsstring[]#

Items: max 25

includeDiffsboolean#
Include changed page details in email summaries.

Default: false

targetsobject[]required#

Items: 1–50

Show child attributes
retentionDaysinteger#

Default: 30

Range: 1–365

goalstring#
Plain-language goal used to judge whether changed pages are meaningful. If provided and judgeEnabled is omitted, judging is enabled automatically. Required (non-empty) when any target is a search target, unless judgeEnabled is false.

Length: max 2000

judgeEnabledboolean#
Whether to judge changed pages against goal. Requires a non-empty goal to run.

Responses

application/json
Monitor created
successboolean#
dataobject#
Show child attributes
idstring#
namestring#
statusenum<string>#
Options:activepauseddeleted
scheduleobject#
Show child attributes
cronstring#
timezonestring#
nextRunAtstring#
lastRunAtstring#
currentCheckIdstring#
targetsobject[]#
Show child attributes
webhookobject#
Webhook destination for monitor page and check completion events.
Show child attributes
urlstringrequired#
The URL to send monitor webhooks to.
headersobject#
Headers to send to the webhook URL.
Show child attributes
{key}string#
metadataobject#
Custom metadata included in webhook payloads.
eventsenum<string>[]#
Monitor webhook events to receive. Defaults to all monitor events.
notificationobject#
Show child attributes
emailobject#
Show child attributes
enabledboolean#

Default: false

recipientsstring[]#

Items: max 25

includeDiffsboolean#
Include changed page details in email summaries.

Default: false

retentionDaysinteger#
estimatedCreditsPerMonthinteger#
Upper-bound monthly credit estimate. When judging is enabled, actual usage may be lower because judge credits are only charged for changed pages that are judged.
lastCheckSummaryobject#
Show child attributes
totalPagesinteger#
sameinteger#
changedinteger#
newinteger#
removedinteger#
errorinteger#
goalstring#
judgeEnabledboolean#
createdAtstring#
updatedAtstring#