Skip to main content
POST
Create script

Headers

x-api-key
string | null

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

Body

application/json
workflow_id
string | null

Associated workflow ID

run_id
string | null

Associated run ID

files
ScriptFileCreate · object[] | null

Array of files to include in the script

Example:

Response

Successful Response

script_id
string
required

Unique script identifier

Example:

"s_abc123"

version
integer
required

Script version number

Example:

1

file_count
integer
required

Total number of files in the script

file_tree
File Tree · object
required

Hierarchical file tree structure

created_at
string<date-time>
required

Timestamp when the script was created

run_id
string | null

ID of the workflow run or task run that generated this script