Monitors
Create a monitor
Creates a monitor. The request body is a union of the supported target/change detection combinations. The monitor runs immediately after creation to create its initial baseline.
post/monitors
Request body
Example request
{
"name": "Acme pricing monitor",
"target": {
"url": "https://acme.com/pricing"
},
"schedule": {
"frequency": 6,
"unit": "hours"
},
"webhook": {
"url": "https://example.com/webhook",
"secret": "whsec_8f3a…"
},
"tags": [
"pricing",
"competitor"
]
}Response
Monitor created
Example response
{
"id": "mon_123",
"name": "Acme pricing monitor",
"target": {
"url": "https://acme.com/pricing"
},
"schedule": {
"frequency": 6,
"unit": "hours"
},
"webhook": {
"url": "https://example.com/webhook",
"secret": "whsec_8f3a…"
},
"last_error": {
"code": "fetch_failed",
"message": "The target URL could not be fetched."
},
"tags": [
"pricing",
"competitor"
],
"baseline": {
"text": "Acme Pricing\nStarter $9/mo…"
}
}