Create a web monitor.
Creates a monitor that periodically runs the specified query over the web at the specified cadence (hourly, daily, or weekly). The monitor runs once at creation and then continues according to the specified frequency.
Updates will be sent to the webhook if provided. Use the executions endpoint
to retrieve execution history for a monitor.
Request to create a monitor.
Search query to monitor for material changes.
"Extract recent news about AI"
Cadence of the monitor.
daily, weekly, hourly "daily"
"weekly"
"hourly"
Webhook to receive notifications about the monitor's execution.
User-provided metadata stored with the monitor. This field is returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application. For example, if you are building a Slackbot that monitors changes, you could store the Slack thread ID here to properly route webhook responses back to the correct conversation thread.
{
"slack_thread_id": "1234567890.123456",
"user_id": "U123ABC"
}Output schema for the monitor event.
Successful Response
Response object for a monitor, including its status, cadence and metadata.
ID of the monitor.
The query being monitored.
"Recent news about LLM models."
Status of the monitor.
active, canceled "active"
"canceled"
Cadence of the monitor.
daily, weekly, hourly "daily"
"weekly"
"hourly"
Timestamp of the creation of the monitor.
"2025-01-15T10:30:00Z"
User-provided metadata stored with the monitor.
{ "key": "value" }Webhook configuration for the monitor.
Timestamp of the last run for the monitor.
"2025-01-15T10:30:00Z"