Create script

Create a new script with optional files and metadata

Headers

x-api-keystring or nullOptional
Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

Request

This endpoint expects an object.
workflow_idstring or nullOptional
Associated workflow ID
run_idstring or nullOptional
Associated run ID
fileslist of objects or nullOptional
Array of files to include in the script

Response

Successful Response
script_idstring
Unique script identifier
versioninteger
Script version number
file_countinteger
Total number of files in the script
file_treemap from strings to objects
Hierarchical file tree structure
created_atstringformat: "date-time"
Timestamp when the script was created
run_idstring or null
ID of the workflow run or task run that generated this script

Errors