Schedules

A schedule runs the same task at the times you choose. Each run creates an ordinary task, with schedule_id set, so you read its result like any other task.

Create a schedule

POST /v1/schedules

Returns 201 Created with the schedule object and a Location: /v1/schedules/<id> header.

Request body
{
  "task": {
    "url": "https://example.com/product/42",
    "task": "Read the current price.",
    "output": { "type": "object", "properties": { "price": { "type": "number" } } }
  },
  "cron": "0 9 * * mon-fri",
  "timezone": "Europe/Paris",
  "name": "Morning price check"
}
Field Required Description
task yes The task to create at each run: the same body as Create a task, without model. With webhook_url, each run sends its own webhook.
cron yes When to run: five fields, minute, hour, day of month, month and day of week. *, lists (1,15), ranges (9-17), steps (*/30), month and day names (jan, mon) and @hourly, @daily, @weekly, @monthly work. Runs must be at least 15 minutes apart.
timezone no The IANA time zone cron is read in, such as America/New_York. Default UTC.
name no Your label, up to 200 characters.
overlap no When a run is due while the previous one is still going: skip it (default) or allow both.
monthly_run_limit no Most runs per calendar month in the schedule's time zone, from 1 to 3000. Default 500. Further runs that month are skipped.
enabled no Default true. false creates the schedule paused.

When both day fields are restricted, a day matching either runs, as in cron. When clocks go forward, a time that does not exist that day has no run; when they go back, a time that happens twice runs once.

Each API key can have up to 10 schedules.

Get, list, change and delete

GET /v1/schedules/:id
GET /v1/schedules?limit=20&cursor=<next_cursor>
PATCH /v1/schedules/:id
DELETE /v1/schedules/:id

PATCH takes any of the create fields and changes only those. enabled: false pauses the schedule; enabled: true resumes it from the next due time. A new cron or timezone applies from now. DELETE returns 204 and stops future runs; tasks the schedule already created are kept.

Skipped runs

A run is skipped, not run later, when:

  • the previous run is still going and overlap is skip;
  • the schedule reached its monthly_run_limit for the month;
  • the API key already has as many unfinished tasks as it may have;
  • the run would take the API key past its monthly spending limit;
  • it could not start on time.

Each skip appears in recent_runs with its reason, for example:

Skipped the 9

run because the 8
run was still going.

Pausing itself

After 3 runs in a row that fail, the schedule pauses itself, status becomes paused and paused_reason says why:

Paused after 3 runs in a row where the site blocked access or could not be reached.

Paused after 3 runs in a row that could not be completed.

A completed or partial run resets the count. Runs you cancel, runs that end unavailable (the site showed the request can't be done), and failures on our side (internal_error) don't count. Fix the cause, then resume with PATCH and { "enabled": true }.

A schedule that stays paused for 30 days has its params deleted. To resume it after that, send its task again, with its params, in the same PATCH; resuming without it returns 409.

The schedule object

{
  "id": "sched_4f1c2a9e8b7d6c5b4a3f2e1d",
  "name": "Morning price check",
  "cron": "0 9 * * mon-fri",
  "timezone": "Europe/Paris",
  "overlap": "skip",
  "monthly_run_limit": 500,
  "task": { "url": "https://example.com/product/42", "task": "Read the current price." },
  "param_names": [],
  "status": "active",
  "paused_reason": null,
  "next_run_at": "2026-10-21T07:00:00.000Z",
  "last_run_at": "2026-10-20T07:00:00.000Z",
  "runs_this_month": 14,
  "recent_runs": [
    {
      "scheduled_for": "2026-10-20T07:00:00.000Z",
      "task_id": "task_9a8b7c6d5e4f3a2b1c0d9e8f",
      "skipped_reason": null
    }
  ],
  "created_at": "2026-10-01T12:00:00.000Z"
}
Field Description
task The task each run creates. Param values are never returned; param_names lists their names.
status active or paused.
paused_reason Why the schedule paused itself; null when active or paused by you.
next_run_at, last_run_at ISO 8601 UTC; next_run_at is null while paused.
runs_this_month Runs started this calendar month, in the schedule's time zone.
recent_runs The latest 10 runs, started or skipped, newest first: scheduled_for, the task_id it created (null when skipped) and skipped_reason.

On your own computer

The command line can print a line for your computer's scheduler instead:

browserwhale schedule print --cron "0 9 * * mon-fri" --url https://example.com --task "Read the current price."

It checks the command and prints a crontab line that runs it at those times, in your computer's time zone. Add it with crontab -e, with your model settings above it. On Windows, use Task Scheduler with the same browserwhale run command.