Scripts

Create a new script with optional files and metadata

post/v1/scripts

Request

  • Base URL
    https://api.skyvern.com
  • URL
    https://api.skyvern.com/v1/scripts
  • Auth
    API key in header x-api-key

Request body

workflow_idstring nullable

Associated workflow ID

run_idstring nullable

Associated run ID

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
}

Changes

    • warning

      deleted the header request parameter x-api-key

    • info

      the endpoint scheme security ApiKeyAuth was added to the API

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      response property file_tree/additionalProperties/children list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property file_tree/additionalProperties/content_hash list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property file_tree/additionalProperties/mime_type list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property file_tree/additionalProperties/size list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property run_id list-of-types was widened by adding types null to media type application/json of response 200

    • info

      header request parameter x-api-key list-of-types was widened by adding types null

    • info

      for the header request parameter x-api-key, the type was generalized from string to no type

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status