Monitor API
Create a monitor
Create an active monitor.
POST
Use one of these target configurations:
- One Search target.
- One Agent target.
- One to 10 Page targets with distinct URLs.
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 nosecret, 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
Headers
Body
application/json
Use a single target type for the monitor. An Agent monitor takes exactly one Agent target.
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- Search target
- Page target
- Agent target
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.