POST Pause / Resume / Run Now

Pause or resume a monitor's schedule, or trigger an immediate check

Three action endpoints control a monitor's schedule without editing its configuration.


POSThttps://api.anakin.io/v1/monitors/{id}/pause

Pause the schedule. The monitor stops checking until resumed. Returns the updated Monitor object with isActive: false.


POSThttps://api.anakin.io/v1/monitors/{id}/resume

Resume a paused monitor. Returns the updated Monitor object with isActive: true.

Returns 402 monitor_limit_reached if resuming would exceed your plan's active-monitor cap.


POSThttps://api.anakin.io/v1/monitors/{id}/run

Queue an immediate check now, independent of the schedule (the regular cadence is unaffected). A successful run also clears a stale sessionExpired flag.

Response

200 OK
{ "success": true, "jobId": "job_abc123xyz" }
FieldTypeDescription
jobIdstringThe scrape job enqueued for this check.

Errors

StatuserrorWhen
409session_expiredThe monitor's saved browser session is no longer valid. Re-authenticate and re-select the session, then run again.
404not_foundThe monitor doesn't exist or isn't yours.

Code Examples

curl -X POST https://api.anakin.io/v1/monitors/b1e7c2a4-.../pause  -H "X-API-Key: your_api_key"
curl -X POST https://api.anakin.io/v1/monitors/b1e7c2a4-.../resume -H "X-API-Key: your_api_key"
curl -X POST https://api.anakin.io/v1/monitors/b1e7c2a4-.../run    -H "X-API-Key: your_api_key"