Create a schedule
Create a schedule that runs an agent or an orchestration at an interval or a fixed time. The target must be in the workspace: one that is not, or one of the AI Builder's own, is a 404. An interval outside 1 to 10,000, or a cron expression that cannot be read, is a 422 that says why. See Schedules.
apiKeyAuthorizationBearer <token>An API key, sk-syn- and 32 characters. On SynapseOrch Cloud an owner or admin makes it under Settings → Developer; on a self-hosted install, under Settings → API Keys.
application/json- body
A schedule. Fields other than these — description, for one — are stored as sent.
name*stringThe schedule's display name.
1 <= length <= 500target_type*stringWhat it runs, agent or orchestration.
"agent""orchestration"target_id*stringThe agent or orchestration it runs. One that is not in the workspace is a 404.
1 <= length <= 255prompt?stringThe message each run starts with — the agent's message, or the orchestration's user_input.
length <= 100000""schedule_type*stringinterval, or cron for a fixed time.
"interval""cron"enabled?booleanActive or paused. Switching a schedule back on checks its timing again.
trueinterval_value?|For an interval schedule, the number of units, 1 to 10,000.
interval_unit?|For an interval schedule, minutes, hours or days.
cron_expression?|For a cron schedule, a standard five-field expression, always in UTC — 0 8 * * 1-5 is every weekday at 08:00 UTC.
missed_run_policy?stringFor a cron schedule, what happens to a run missed while the server was down: skip waits for the next time; run_immediately runs it once on start.
"skip""run_immediately""skip"[key: string]?anyThe schedule.
application/json- response
id?stringname?stringtarget_type?stringtarget_id?stringprompt?stringschedule_type?stringcron_expression?stringmissed_run_policy?stringenabled?booleancreated_at?stringupdated_at?stringnext_run_at?stringlast_run_at?unknowncurl -X POST "https://api.synapseorch.com/api/v1/schedules" \ -H "Authorization: Bearer sk-syn-..." \ -H "Content-Type: application/json" \ -d '{ "name": "Daily Sales Report", "description": "Run the sales report every weekday morning", "target_type": "orchestration", "target_id": "orch-sales-report", "prompt": "Generate the sales report for yesterday", "schedule_type": "cron", "cron_expression": "0 8 * * 1-5", "enabled": true, "missed_run_policy": "skip" }'{ "id": "sched_01a10c2e4f6a8b0c1d3e5f7a9b1c3d5e", "name": "Daily Sales Report", "target_type": "orchestration", "target_id": "orch-sales-report", "prompt": "Generate the sales report for yesterday", "schedule_type": "cron", "cron_expression": "0 8 * * 1-5", "missed_run_policy": "skip", "enabled": true, "created_at": "2026-10-07T09:30:12+00:00", "updated_at": "2026-10-07T09:30:12+00:00", "next_run_at": "2026-10-08T08:00:00+00:00", "last_run_at": null}