Monitors API endpoint
Deletes one website-change monitor by its `id`, which must belong to the calling account. Returns `deleted: true` on success. The monitor's past check history is not removed.
/monitors/{id}Deletes one of the caller's own monitors. Does not delete its past check history (see
GET /monitors/{id}/checks).
Requires a dashboard JWT (Authorization: Token <jwt>) or an x-api-key. Free to call.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| Authorization (header) | string | No | Dashboard JWT in the form `Token <jwt>` (use this or x-api-key) | ||
| x-api-key (header) | string | No | API key (alternative to a dashboard JWT) | ||
| id (path) | string | Yes | Monitor ID returned by your account monitor create/list response; replace the illustrative example with your own ID | 66d2f0b1c2a4e5f6a7b8c9d0 |
curl -X DELETE "https://api.crawlora.net/api/v1/monitors/66d2f0b1c2a4e5f6a7b8c9d0" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"deleted": true
}
}Request schema
No body schema
Response schema
#/definitions/webmonitor.monitorDeleteResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | object | No | ||||
| data.deleted | boolean | No | true | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 401 | Authentication required | #/definitions/app.Response |
| 404 | Monitor not found | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X DELETE "https://api.crawlora.net/api/v1/monitors/66d2f0b1c2a4e5f6a7b8c9d0" \
-H "x-api-key: $CRAWLORA_API_KEY"