Skip to content

Monitor

PATCH /v2/monitor/{monitor_id}

Copy page

Change a monitor. Only the fields you send change.

PATCH /v2/monitor/{monitor_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
monitor_idstringRequired

Body

FieldTypeRequiredDefault
channelIdsstring[] | nullOptional
goalstring | nullOptional
judgeEnabledboolean | nullOptional
namestring | nullOptional
notificationobject | nullOptional
notification.emailobject | nullOptional
notification.slackobject | nullOptional
retentionDaysinteger | nullOptional
scheduleobject | nullOptional
statusstring | null Values: active, pausedOptional
targetsobject[] | nullOptional
targets[].typestring Values: scrape, crawl, searchRequired
targets[].idstring | nullOptional
targets[].scrapeOptionsobject | nullOptional
targets[].urlsstring[]Optional
targets[].crawlOptionsobject | nullOptional
targets[].urlstringOptional
targets[].maxResultsintegerOptional10
targets[].queriesstring[]Optional
targets[].sourcesstring[] | null Values: ahmia, capturesOptional
webhookstring | object | nullOptional
webhook.urlstringRequired
webhook.eventsstring[] | null Values: monitor.page, monitor.check.completedOptional
webhook.headersobject | nullOptional
webhook.metadataobject | nullOptional
Firecrawl compatibility fields

Firecrawl fields DarkCrawl does not offer. It takes them so the Firecrawl SDKs keep working, then ignores or refuses each one as the table says.

FieldWhat DarkCrawl does
originAccepted and ignored.
targets[].excludeDomainsAnswers 400 NOT_IMPLEMENTED when set.
targets[].includeDomainsAnswers 400 NOT_IMPLEMENTED when set.
targets[].searchWindowAccepted and ignored.

Request

bash
curl -X PATCH https://api.darkcrawl.dev/v2/monitor/MONITOR_ID \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"paused"}'

Response

Status 200.

Response
{
  "success": true,
  "data": {
    "id": "01K0EXAMPLEMONITOR0000000A",
    "name": "Notice board",
    "status": "paused",
    "schedule": {
      "cron": "0 */6 * * *",
      "timezone": "Europe/Berlin"
    },
    "nextRunAt": null,
    "lastRunAt": null,
    "currentCheckId": null,
    "targets": [
      {
        "id": "01K0EXAMPLETARGET00000000A",
        "type": "scrape",
        "urls": [
          "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice"
        ],
        "scrapeOptions": {}
      }
    ],
    "webhook": null,
    "notification": {},
    "emailRecipientSubscriptions": [],
    "retentionDays": 30,
    "estimatedCreditsPerMonth": 0,
    "lastCheckSummary": null,
    "goal": null,
    "judgeEnabled": false,
    "channelIds": [],
    "createdAt": "2026-11-26T10:00:00.000000+00:00",
    "updatedAt": "2026-11-26T10:00:00.000000+00:00"
  }
}

Errors

CodeStatus
BAD_REQUEST400
NOT_IMPLEMENTED400
INVALID_ONION400
POLICY_FORBIDDEN400
BLOCKLISTED403
BLOCKLIST_UNAVAILABLE503
SECRETS_UNAVAILABLE503
NOT_FOUND404

What each code means, and what to do about it: Errors.

Notes

  • A paused monitor has no nextRunAt. A body that changes nothing is 400 BAD_REQUEST with the message Update body cannot be empty. targets replaces the whole list. null is refused, except for webhook, notification and goal, where it removes the value.
  • A scrape target takes urls, a crawl target one url with crawlOptions, and a search target queries. The Monitor guide has the options of each.
  • schedule is {"cron": ...} or {"text": ...}, with an optional timezone. It comes back as the cron it becomes.
  • An unknown id, and another company's monitor, answer 404 NOT_FOUND.