v65

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0386234904.1 KB
Scripts

Deploy script

Deploy a script with updated files, creating a new version

post/v1/scripts/{script_id}/deploy

Path parameters

script_idstring required

The unique identifier of the script

Example:s_abc123

The unique identifier of the script

Headers

x-api-keystring nullable

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

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

Request body

Example request

{
  "files": [
    {
      "path": "src/main.py"
    }
  ]
}

Response

Successful Response

script_idstring required

Unique script identifier

versioninteger required

Script version number

run_idstring nullable

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

file_countinteger required

Total number of files in the script

file_treeobject required

Hierarchical file tree structure

created_atstring date-time required

Timestamp when the script was created

Example response

{
  "script_id": "s_abc123",
  "version": 1
}