Schedule
Register Schedule
Schedule a workflow to run on a cron or interval trigger.
POST
Register a scheduled trigger that runs a workflow automatically — either on a recurring cron expression or at specific interval date/times.
Schedules are part of the v1 workflow service (
/api/v1/workflow/public/scheduled). They are scoped to a linked account.Authentication
Your Refold API key.
Header Parameters
The linked account that will run the scheduled workflow.
The application slug the workflow belongs to. Example:
hubspotThe workflow ID to execute on schedule.
The config to run under. Defaults to the linked account ID.
Body Parameters
cron for recurring schedules, or interval for specific date/times.(cron) The cron expression. Stored on the schedule as
cron_patten. Example: 0 9 * * 1 (every Monday 09:00).(interval) Specific date/time objects, each
{ day, month, year, hour, minute }.Earliest date the schedule may run (
YYYY-MM-DD).Latest date the schedule may run (
YYYY-MM-DD).Timezone, e.g.
UTC, America/New_York.Event payload passed to the workflow on each run.
Response
- 200 OK
- 400 Bad Request
Returns the created schedule.
Schedule ID (use it to pause/resume/update/delete).
The event the schedule fires.
The scheduled workflow ID.
The config it runs under.
The owning linked account.
cron or interval.The cron expression (cron schedules).
The interval dates (interval schedules).
running or paused.true when paused.true for API-created schedules.Echo of
startDate/endDate/tz/trigger_type.The payload passed to the workflow.