Skip to main content
POST
Use one of these target configurations:
  • One Search target.
  • One Agent target.
  • One to 10 Page targets with distinct URLs.
Do not mix target types in one monitor. The monitor starts as active. Its first run is due immediately and starts asynchronously. Follow the Monitor API quickstart to create a monitor and read its first run. The goal field is optional and separate from the Search query or Agent task. To read results with no notifications, omit webhook or set it to null. Runs and their changes stay available through the API. Judging runs automatically. Set judge.threshold above 0 and up to 1 on a Search or Page target. The default value is 0.5. A higher value keeps fewer changes. An Agent target has no judging setting.

Webhook secrets and retries

When you configure a webhook with no secret, the service creates one. The service returns that secret in webhook.secret only in the response that creates it. Save this secret to verify deliveries. The service never returns a secret that you supply. Send an Idempotency-Key header when you retry the original create request. If you reuse that key, the service returns the original monitor in its current state, even after an update, without its secret. If you use the same key for a different create request, the service returns 400. If you lose the first response, set a new secret with Update a monitor. If you create a monitor at the active-monitor cap for your API organization, the service returns HTTP 409 with quota_exceeded. Pause or delete an active monitor, or upgrade the tier of your organization, before you retry.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Unique key for this create. A repeat with the same key and the same body returns the monitor that the first request created, in its current state and without the secret; the same key with a different body is a 400.

Maximum string length: 200

Body

application/json

Use a single target type for the monitor. An Agent monitor takes exactly one Agent target.

name
string
required
Required string length: 1 - 256
targets
(Search target · object | Page target · object | Agent target · object)[]
required

Use one of these target configurations:

  • One Search target.
  • One Agent target.
  • One to 10 Page targets with distinct URLs.

Do not mix target types.

Required array length: 1 - 10 elements
schedule
Interval schedule · object
required
goal
string

Describe the changes you want the monitor to report. The goal is separate from the Search query or Agent task.

Maximum string length: 2000
webhook
object | null

Optional delivery endpoint; omitted or null sends no events

metadata
object

Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.

Response

The created monitor, with webhook.secret if the service generated it

Fields that do not apply are omitted, never null: webhook, pause_reason, current_run_id, next_run_at and last_run.

id
string
required

Opaque ID with the prefix mon_

Maximum string length: 64
object
enum<string>
required
Available options:
monitor
name
string
required
goal
string
required

The changes you want the monitor to report. The service returns an empty string if you do not set a goal.

targets
(Search target · object | Page target · object | Agent target · object)[]
required

The targets for one monitor. An Agent monitor has exactly one target.

A target for the monitor. Skip targets with a type you do not recognize.

schedule
Interval schedule · object
required

When a monitor runs. New types may be added.

metadata
object
required

Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.

status
enum<string>
required

active monitors run on their schedule; paused ones don't run until resumed. Whether a run is in flight is current_run_id, not the status. New statuses may be added; treat an unknown one as not running on its schedule.

Available options:
active,
paused
created_at
string<date-time>
required

RFC 3339 in UTC with whole seconds, for example 2026-11-12T09:00:41Z.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
updated_at
string<date-time>
required

RFC 3339 in UTC with whole seconds, for example 2026-11-12T09:00:41Z.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
webhook
object
pause_reason
enum<string>

Only while paused

Available options:
user,
insufficient_credits,
org_policy,
webhook_failing,
source_failing
current_run_id
string

The queued or running run

next_run_at
string<date-time>

Omitted while paused

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
last_run
object

The last finished run