Skyvern Scripts API
The Scripts API from Skyvern — 4 operation(s) for scripts.
The Scripts API from Skyvern — 4 operation(s) for scripts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/skyvern-com:skyvern-com-scripts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Skyvern Scripts API
description: API for Skyvern
version: 1.0.0
servers:
- url: https://api.skyvern.com
x-fern-server-name: Cloud
- url: https://api-staging.skyvern.com
x-fern-server-name: Staging
- url: http://localhost:8000
x-fern-server-name: Local
tags:
- name: Scripts
paths:
/v1/scripts:
post:
tags:
- Scripts
summary: Create script
description: Create a new script with optional files and metadata
operationId: create_script_v1_scripts_post
parameters:
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScriptRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScriptResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-hidden: true
x-fern-sdk-method-name: create_script
get:
tags:
- Scripts
summary: Get all scripts
description: Retrieves a paginated list of scripts for the current organization
operationId: get_scripts_v1_scripts_get
parameters:
- name: page
in: query
required: false
schema:
type: integer
maximum: 1000000
minimum: 1
description: Page number for pagination
examples:
- 1
default: 1
title: Page
description: Page number for pagination
- name: page_size
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
description: Number of items per page
examples:
- 10
default: 10
title: Page Size
description: Number of items per page
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Script'
title: Response Get Scripts V1 Scripts Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-hidden: true
x-fern-sdk-method-name: get_scripts
/v1/scripts/{script_id}:
get:
tags:
- Scripts
summary: Get script by ID
description: Retrieves a specific script by its ID
operationId: get_script_v1_scripts__script_id__get
parameters:
- name: script_id
in: path
required: true
schema:
type: string
description: The unique identifier of the script
examples:
- s_abc123
title: Script Id
description: The unique identifier of the script
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Script'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-hidden: true
x-fern-sdk-method-name: get_script
/v1/scripts/{script_id}/deploy:
post:
tags:
- Scripts
summary: Deploy script
description: Deploy a script with updated files, creating a new version
operationId: deploy_script_v1_scripts__script_id__deploy_post
parameters:
- name: script_id
in: path
required: true
schema:
type: string
description: The unique identifier of the script
examples:
- s_abc123
title: Script Id
description: The unique identifier of the script
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeployScriptRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScriptResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-hidden: true
x-fern-sdk-method-name: deploy_script
/v1/scripts/{script_id}/run:
post:
tags:
- Scripts
summary: Run script
description: Run a script
operationId: run_script_v1_scripts__script_id__run_post
parameters:
- name: script_id
in: path
required: true
schema:
type: string
description: The unique identifier of the script
examples:
- s_abc123
title: Script Id
description: The unique identifier of the script
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
title: X-Api-Key
description: Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
x-hidden: true
components:
schemas:
ScriptFileCreate:
properties:
path:
type: string
title: Path
description: File path relative to script root
examples:
- src/main.py
content:
type: string
title: Content
description: Base64 encoded file content
encoding:
$ref: '#/components/schemas/FileEncoding'
description: Content encoding
default: base64
mime_type:
anyOf:
- type: string
- type: 'null'
title: Mime Type
description: MIME type (auto-detected if not provided)
type: object
required:
- path
- content
title: ScriptFileCreate
description: Model representing a file in a script.
DeployScriptRequest:
properties:
files:
items:
$ref: '#/components/schemas/ScriptFileCreate'
type: array
title: Files
description: Array of files to include in the script
examples:
- content: cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==
encoding: base64
mime_type: text/x-python
path: src/main.py
type: object
required:
- files
title: DeployScriptRequest
description: Request model for deploying a script with updated files.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
CreateScriptResponse:
properties:
script_id:
type: string
title: Script Id
description: Unique script identifier
examples:
- s_abc123
version:
type: integer
title: Version
description: Script version number
examples:
- 1
run_id:
anyOf:
- type: string
- type: 'null'
title: Run Id
description: ID of the workflow run or task run that generated this script
file_count:
type: integer
title: File Count
description: Total number of files in the script
file_tree:
additionalProperties:
$ref: '#/components/schemas/FileNode'
type: object
title: File Tree
description: Hierarchical file tree structure
created_at:
type: string
format: date-time
title: Created At
description: Timestamp when the script was created
type: object
required:
- script_id
- version
- file_count
- file_tree
- created_at
title: CreateScriptResponse
CreateScriptRequest:
properties:
workflow_id:
anyOf:
- type: string
- type: 'null'
title: Workflow Id
description: Associated workflow ID
run_id:
anyOf:
- type: string
- type: 'null'
title: Run Id
description: Associated run ID
files:
anyOf:
- items:
$ref: '#/components/schemas/ScriptFileCreate'
type: array
- type: 'null'
title: Files
description: Array of files to include in the script
examples:
- content: cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==
encoding: base64
mime_type: text/x-python
path: main.py
- content: cmVxdWVzdHM9PTIuMjguMQ==
encoding: base64
mime_type: text/plain
path: requirements.txt
type: object
title: CreateScriptRequest
Script:
properties:
script_revision_id:
type: string
title: Script Revision Id
description: Unique identifier for this specific script revision
script_id:
type: string
title: Script Id
description: User-facing script identifier, consistent across versions
organization_id:
type: string
title: Organization Id
description: ID of the organization that owns this script
run_id:
anyOf:
- type: string
- type: 'null'
title: Run Id
description: ID of the workflow run or task run that generated this script
version:
type: integer
title: Version
description: Version number of the script
created_at:
type: string
format: date-time
title: Created At
description: Timestamp when the script was created
modified_at:
type: string
format: date-time
title: Modified At
description: Timestamp when the script was last modified
deleted_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Deleted At
description: Timestamp when the script was soft deleted
type: object
required:
- script_revision_id
- script_id
- organization_id
- version
- created_at
- modified_at
title: Script
FileNode:
properties:
type:
type: string
title: Type
description: 'Type of node: ''file'' or ''directory'''
size:
anyOf:
- type: integer
- type: 'null'
title: Size
description: File size in bytes
mime_type:
anyOf:
- type: string
- type: 'null'
title: Mime Type
description: MIME type of the file
content_hash:
anyOf:
- type: string
- type: 'null'
title: Content Hash
description: SHA256 hash of file content
created_at:
type: string
format: date-time
title: Created At
description: Timestamp when the file was created
children:
anyOf:
- additionalProperties:
$ref: '#/components/schemas/FileNode'
type: object
- type: 'null'
title: Children
description: Child nodes for directories
type: object
required:
- type
- created_at
title: FileNode
description: Model representing a file or directory in the file tree.
FileEncoding:
type: string
enum:
- base64
- utf-8
title: FileEncoding
description: Supported file content encodings.
securitySchemes:
ApiKeyAuth:
type: apiKey
description: Your Skyvern API key from https://app.skyvern.com/settings.
in: header
name: x-api-key