Skip to main content
POST
Create a schedule for an agent

Headers

x-api-key
string | null

Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

Path Parameters

workflow_permanent_id
string
required

Body

application/json
timezone
string
required
cron_expression
string | null
interval_seconds
integer | null

Fixed elapsed interval between runs, in seconds. Mutually exclusive with cron_expression.

Required range: 300 <= x <= 2147483647
first_fire_at
string<date-time> | null

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.

run_at
string<date-time> | null

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.

enabled
boolean | null
default:true
parameters
Parameters · object | null
name
string | null
description
string | null

Response

Successful Response

schedule
WorkflowSchedule · object
required
next_runs
string<date-time>[]