Documentation Index
Fetch the complete documentation index at: https://libretto.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Use the schedules API to run a deployed workflow on a recurring cron-based interval.All routes on this page require
x-api-key.
Callback behavior
Schedules create jobs in the future. Each schedule can carry its owncallback_url and callback_secret.
If a scheduled job has a callback configured, that per-job callback takes precedence over stored tenant webhook endpoints. Use schedule-level callbacks when you want recurring jobs to report to a specific endpoint.
POST /v1/schedules/create
Create a recurring schedule for a deployed workflow.
Request fields:
workflowparamscron_exprtimezone: optional, defaultUTCtimeout_seconds: optional, default900callback_url: optionalcallback_secret: optionalskip_callbacks: optional, defaultfalseenabled: optional, defaulttrue
callback_url, you must also set callback_secret.
Response fields:
successschedule
POST /v1/schedules/list
List schedules for the current tenant.
Request fields:
enabled: optional boolean filterworkflow: optional workflow-name filterlimit: optional page size, default50, max200
schedules
POST /v1/schedules/get
Fetch one schedule.
Request fields:
id
schedule
POST /v1/schedules/update
Update a schedule.
Request fields:
idparams: optionalcron_expr: optionaltimezone: optionaltimeout_seconds: optionalcallback_url: optional string ornullcallback_secret: optional string ornullskip_callbacks: optionalenabled: optional
callback_url and callback_secret to null.
Response fields:
schedule
POST /v1/schedules/delete
Delete a schedule.
Request fields:
id
successid
Shared schedule response shape
Theschedule object returned by the schedules endpoints includes:
idworkflowparamscron_exprtimezonetimeout_secondscallback_urlskip_callbacksenablednext_fire_atlast_fire_atlast_job_idlast_errorconsecutive_failurescreated_atupdated_at
Webhooks
Compare stored tenant webhooks with schedule-level callbacks.
Deployments and Workflows
Manage the workflows that schedules invoke.
Libretto Cloud API overview
See the shared request format.