Skip to main content
Schedule methods live on the schedules sub-client: skyvern.schedules.<method>. Every method here also accepts request_options (Python) or a final requestOptions argument (TypeScript) to override the timeout, retries or headers for one call; see request options.

schedules.list_all

List all schedules for the organization
Parameters
int | None
Default: None
int | None
Default: None
SchedulesListAllRequestStatus | None
Filter by status: ‘active’ or ‘paused’Default: None
Search by workflow title or schedule nameDefault: None
Returns OrganizationScheduleListResponse · TypeScript Promise<OrganizationScheduleListResponse>
Example

schedules.list

List schedules for an agent
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
Returns WorkflowScheduleListResponse · TypeScript Promise<WorkflowScheduleListResponse>
Example

schedules.create

Create a cron, fixed-interval or one-time schedule that runs the given agent automatically with a fixed set of parameters. An interval schedule first runs at first_fire_at, or one interval after creation. A one-time schedule runs once at run_at. Returns the stored schedule and its next upcoming run times.
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
str | None
Sent only when you pass it
int | None
Fixed elapsed interval between runs, in seconds. Mutually exclusive with cron_expression.Sent only when you pass it
datetime | None
First run of an interval schedule; later runs follow every interval_seconds from it. Must be in the future when changed. Defaults to one interval after creation.Sent only when you pass it
datetime | None
Run the agent once at this instant, ISO 8601 with a UTC offset, at least 60 seconds in the future. Mutually exclusive with cron_expression and interval_seconds; the schedule can be edited or canceled only until it fires.Sent only when you pass it
bool | None
Sent only when you pass it
dict[str, Any | None] | None
Sent only when you pass it
str | None
Sent only when you pass it
str | None
Sent only when you pass it
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.get

Fetch one schedule belonging to an agent. Returns the schedule’s cron expression or interval, timezone, parameters, enabled state, and next upcoming run times.
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.update

Replace a schedule’s cron expression, interval or one-time run_at, timezone, run parameters, and enabled state. A one-time schedule stays one-time and can change only until it fires; afterwards this returns 409. Returns the updated schedule and its next upcoming run times.
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
str
required
str | None
Sent only when you pass it
int | None
Fixed elapsed interval between runs, in seconds. Mutually exclusive with cron_expression.Sent only when you pass it
datetime | None
First run of an interval schedule; later runs follow every interval_seconds from it. Must be in the future when changed. Defaults to one interval after creation.Sent only when you pass it
datetime | None
Run the agent once at this instant, ISO 8601 with a UTC offset, at least 60 seconds in the future. Mutually exclusive with cron_expression and interval_seconds; the schedule can be edited or canceled only until it fires.Sent only when you pass it
bool | None
Sent only when you pass it
dict[str, Any | None] | None
Sent only when you pass it
str | None
Sent only when you pass it
str | None
Sent only when you pass it
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.enable

Enable an agent schedule
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.disable

Disable an agent schedule
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.cancel

Cancel a one-time schedule that has not fired yet. The schedule stays readable with dispatch_status canceled. Returns 409 once it has fired or was already canceled, and 422 for a recurring schedule.
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
Returns WorkflowScheduleResponse · TypeScript Promise<WorkflowScheduleResponse>
Example

schedules.delete

Delete an agent schedule
Parameters
str
required
ID of the agent (wpid_…).TypeScript: workflowPermanentId
str
required
ID of the schedule.TypeScript: workflowScheduleId
Returns DeleteScheduleResponse · TypeScript Promise<DeleteScheduleResponse>
Example