Create a web monitor.
Creates a monitor that periodically runs the specified query over the web at the specified cadence (hourly, daily, weekly, or every two weeks). 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"
Frequency of the monitor. Format: '
"1d"
"1w"
"1h"
"2w"
Webhook to receive notifications about the monitor's execution.
User-provided metadata stored with the monitor. Returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application.
{
"slack_thread_id": "1234567890.123456",
"user_id": "U123ABC"
}Output schema for the monitor event.
If true, the first execution includes historical events matching the query. Subsequent executions return only new events since the previous run.
Source policy governing preferred and disallowed domains in web search results.
{
"exclude_domains": ["reddit.com", "x.com", ".ai"],
"include_domains": ["wikipedia.org", "usa.gov", ".edu"]
}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"
Frequency of the monitor. Format: '
"1d"
"1w"
"1h"
"2w"
Timestamp of the creation of the monitor.
"2025-01-15T10:30:00Z"
Deprecated: use 'frequency' field instead.
daily, weekly, hourly, every_two_weeks "daily"
User-provided metadata stored with the monitor. Returned in webhook notifications and GET requests, enabling you to map responses to corresponding objects in your application.
{
"slack_thread_id": "1234567890.123456",
"user_id": "U123ABC"
}Webhook configuration for the monitor.
Output schema for the monitor event.
Source policy governing preferred and disallowed domains in web search results.
{
"exclude_domains": ["reddit.com", "x.com", ".ai"],
"include_domains": ["wikipedia.org", "usa.gov", ".edu"]
}Timestamp of the last run for the monitor.
"2025-01-15T10:30:00Z"
If true, the first execution includes historical events matching the query. Subsequent executions return only new events since the previous run.