curl --request POST \
--url https://api.skyvern.com/v1/scripts \
--header 'Content-Type: application/json' \
--data '
{
"workflow_id": "<string>",
"run_id": "<string>",
"files": {
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "main.py"
}
}
'{
"script_id": "s_abc123",
"version": 1,
"file_count": 123,
"file_tree": {},
"created_at": "2023-11-07T05:31:56Z",
"run_id": "<string>"
}Create a new script with optional files and metadata
curl --request POST \
--url https://api.skyvern.com/v1/scripts \
--header 'Content-Type: application/json' \
--data '
{
"workflow_id": "<string>",
"run_id": "<string>",
"files": {
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "main.py"
}
}
'{
"script_id": "s_abc123",
"version": 1,
"file_count": 123,
"file_tree": {},
"created_at": "2023-11-07T05:31:56Z",
"run_id": "<string>"
}Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
Associated workflow ID
Associated run ID
Array of files to include in the script
Show child attributes
{
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "main.py"
}Successful Response
Unique script identifier
"s_abc123"
Script version number
1
Total number of files in the script
Hierarchical file tree structure
Show child attributes
Timestamp when the script was created
ID of the workflow run or task run that generated this script