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.
POST
https://api.anakin.io/v1/monitors/{id}/pausePause the schedule. The monitor stops checking until resumed. Returns the updated Monitor object with isActive: false.
POST
https://api.anakin.io/v1/monitors/{id}/resumeResume 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.
POST
https://api.anakin.io/v1/monitors/{id}/runQueue 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" }| Field | Type | Description |
|---|---|---|
jobId | string | The scrape job enqueued for this check. |
Errors
| Status | error | When |
|---|---|---|
409 | session_expired | The monitor's saved browser session is no longer valid. Re-authenticate and re-select the session, then run again. |
404 | not_found | The 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"import requests
headers = {"X-API-Key": "your_api_key"}
base = "https://api.anakin.io/v1/monitors/b1e7c2a4-..."
requests.post(f"{base}/pause", headers=headers)
requests.post(f"{base}/resume", headers=headers)
run = requests.post(f"{base}/run", headers=headers).json()
print("Check queued:", run["jobId"])const headers = { "X-API-Key": "your_api_key" };
const base = "https://api.anakin.io/v1/monitors/b1e7c2a4-...";
await fetch(`${base}/pause`, { method: "POST", headers });
await fetch(`${base}/resume`, { method: "POST", headers });
const run = await (await fetch(`${base}/run`, { method: "POST", headers })).json();
console.log("Check queued:", run.jobId);