Endpoints

Schedules

Create, list, change, pause and delete the scheduled runs of your flows.

The same schedules as Agenda › Scheduled Runs in the app. See Scheduled runs.

Create a schedule

http
POST /api/schedules/
bash
curl -X POST "https://app.chainz.waiyers.com/api/schedules/" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "flow_id": "'"$FLOW_ID"'",
    "schedule_type": "recurring",
    "cron_expression": "0 9 * * 1-5",
    "timezone": "Europe/Paris",
    "inputs": { "input_value": "Today'"'"'s news on solar panels" },
    "max_credits": 50
  }'
FieldTypeWhat it is
flow_idstringThe flow to run. Required.
schedule_typestringonce (default) or recurring.
scheduled_atstringFor once: the date and time, ISO 8601.
cron_expressionstringFor recurring: when to run, in cron format.
timezonestringThe timezone of the times, e.g. Europe/Paris. Default UTC.
inputsobjectThe inputs of each run.
max_creditsintegerThe most credits one run may use.

Returns the schedule with its id and status.

List schedules

http
GET /api/schedules/?flow_id=…&status=…

Both filters are optional.

Read, change, delete

http
GET    /api/schedules/{schedule_id}
PATCH  /api/schedules/{schedule_id}
DELETE /api/schedules/{schedule_id}

PATCH takes any field of the creation body, plus status. Pause with {"status": "paused"}, resume with {"status": "active"}.

Statuses

StatusMeaning
activeWill run at its next time.
pausedKept, does not run.
completedA one-time schedule that has run.
cancelledStopped for good.
failedIts last run failed.
Was this page helpful?

Last updated 2026-10-13