Skip to content

Search docs

Find pages, headings, and concepts. Press ⌘K or Ctrl+K to toggle.

Schedules

Cron-driven agent runs scoped to a workspace.

Cron schedules fire agent prompts on a timetable. Each schedule belongs to an org and workspace and references one agent.

Endpoints

MethodPathDescription
GET/api/v1/schedulesList schedules visible to the caller.
POST/api/v1/schedulesCreate a schedule (cron expression + prompt + agent).
PATCH/api/v1/schedules/:idUpdate cron, prompt, enabled flag, or agent binding.
DELETE/api/v1/schedules/:idDelete a schedule.

Create

POST /api/v1/schedules accepts a cron expression, natural-language or structured prompt, target agentId, and workspaceId. Failed runs surface as org notifications — see Notifications.

Errors

CodeWhen
BAD_REQUESTInvalid cron, missing agent, or workspace outside caller scope.
FORBIDDENSchedule belongs to another org.
NOT_FOUNDUnknown schedule id.