Skip to content

Automate browser based workflows with AI

Update API specifications with fern api update (#5245)

Shuchang Zheng906b075110ad
diff --git a/fern/openapi/skyvern_openapi.json b/fern/openapi/skyvern_openapi.json
index 8cd60deb0..897c7054b 100644
--- a/fern/openapi/skyvern_openapi.json
+++ b/fern/openapi/skyvern_openapi.json
@@ -871,57 +871,39 @@
]
}
},
- "/v1/folders": {
- "post": {
+ "/v1/artifacts/{artifact_id}/content": {
+ "get": {
"tags": [
- "Workflow Folders"
+ "Artifacts"
],
- "summary": "Create folder",
- "description": "Create a new folder to organize workflows",
- "operationId": "create_folder_v1_folders_post",
+ "summary": "Get artifact content",
+ "description": "Download the raw content of an artifact (supports bundled artifacts).",
+ "operationId": "get_artifact_content_v1_artifacts__artifact_id__content_get",
"parameters": [
{
- "name": "x-api-key",
- "in": "header",
- "required": false,
+ "name": "artifact_id",
+ "in": "path",
+ "required": true,
"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/FolderCreate"
- }
+ "type": "string",
+ "title": "Artifact Id"
}
}
- },
+ ],
"responses": {
"200": {
- "description": "Successfully created folder",
+ "description": "Raw artifact content",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/Folder"
- }
+ "schema": {}
}
}
},
- "400": {
- "description": "Invalid request"
+ "403": {
+ "description": "Invalid or expired artifact URL"
+ },
+ "404": {
+ "description": "Artifact not found or content unavailable"
},
"422": {
"description": "Validation Error",
@@ -933,61 +915,47 @@
}
}
}
- },
- "x-fern-sdk-method-name": "create_folder"
- },
+ }
+ }
+ },
+ "/v1/runs/{run_id}/artifacts": {
"get": {
"tags": [
- "Workflow Folders"
+ "Artifacts"
],
- "summary": "Get folders",
- "description": "Get all folders for the organization",
- "operationId": "get_folders_v1_folders_get",
+ "summary": "Get artifacts for a run",
+ "description": "Get artifacts for a run",
+ "operationId": "get_run_artifacts_v1_runs__run_id__artifacts_get",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number",
- "default": 1,
- "title": "Page"
- },
- "description": "Page number"
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
+ "name": "run_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "maximum": 500,
- "minimum": 1,
- "description": "Number of folders per page",
- "default": 100,
- "title": "Page Size"
+ "type": "string",
+ "description": "The id of the task run or the workflow run.",
+ "title": "Run Id"
},
- "description": "Number of folders per page"
+ "description": "The id of the task run or the workflow run."
},
{
- "name": "search",
+ "name": "artifact_type",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ArtifactType"
+ }
},
{
"type": "null"
}
],
- "description": "Search folders by title or description",
- "title": "Search"
- },
- "description": "Search folders by title or description"
+ "title": "Artifact Type"
+ }
},
{
"name": "x-api-key",
@@ -1010,15 +978,15 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved folders",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Folder"
+ "$ref": "#/components/schemas/Artifact"
},
- "title": "Response Get Folders V1 Folders Get"
+ "title": "Response Get Run Artifacts V1 Runs Run Id Artifacts Get"
}
}
}
@@ -1034,31 +1002,33 @@
}
}
},
- "x-fern-sdk-method-name": "get_folders"
+ "x-fern-sdk-method-name": "get_run_artifacts"
}
},
- "/v1/folders/{folder_id}": {
- "get": {
+ "/v1/runs/{run_id}/retry_webhook": {
+ "post": {
"tags": [
- "Workflow Folders"
+ "Agent",
+ "Workflow Runs"
],
- "summary": "Get folder",
- "description": "Get a specific folder by ID",
- "operationId": "get_folder_v1_folders__folder_id__get",
+ "summary": "Retry run webhook",
+ "description": "Retry sending the webhook for a run",
+ "operationId": "retry_run_webhook_v1_runs__run_id__retry_webhook_post",
"parameters": [
{
- "name": "folder_id",
+ "name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "Folder ID",
+ "description": "The id of the task run or the workflow run.",
"examples": [
- "fld_123"
+ "tsk_123",
+ "wr_123"
],
- "title": "Folder Id"
+ "title": "Run Id"
},
- "description": "Folder ID"
+ "description": "The id of the task run or the workflow run."
},
{
"name": "x-api-key",
@@ -1079,20 +1049,32 @@
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/RetryRunWebhookRequest"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Request"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved folder",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/Folder"
- }
+ "schema": {}
}
}
},
- "404": {
- "description": "Folder not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1104,29 +1086,47 @@
}
}
},
- "x-fern-sdk-method-name": "get_folder"
- },
- "put": {
+ "x-fern-sdk-method-name": "retry_run_webhook",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.retry_run_webhook(run_id=\"tsk_v2_123\")\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.retryRunWebhook(\"tsk_v2_123\");\n"
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "/v1/runs/{run_id}/timeline": {
+ "get": {
"tags": [
- "Workflow Folders"
+ "Agent",
+ "Workflow Runs"
],
- "summary": "Update folder",
- "description": "Update a folder's title or description",
- "operationId": "update_folder_v1_folders__folder_id__put",
+ "summary": "Get run timeline",
+ "description": "Get timeline for a run (workflow run or task_v2 run)",
+ "operationId": "get_run_timeline_v1_runs__run_id__timeline_get",
"parameters": [
{
- "name": "folder_id",
+ "name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "Folder ID",
+ "description": "The id of the workflow run or task_v2 run.",
"examples": [
- "fld_123"
+ "wr_123",
+ "tsk_v2_123"
],
- "title": "Folder Id"
+ "title": "Run Id"
},
- "description": "Folder ID"
+ "description": "The id of the workflow run or task_v2 run."
},
{
"name": "x-api-key",
@@ -1147,29 +1147,26 @@
"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/FolderUpdate"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated folder",
+ "description": "Successfully retrieved run timeline",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Folder"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRunTimeline"
+ },
+ "title": "Response Get Run Timeline V1 Runs Run Id Timeline Get"
}
}
}
},
+ "400": {
+ "description": "Timeline not available for this run type"
+ },
"404": {
- "description": "Folder not found"
+ "description": "Run not found"
},
"422": {
"description": "Validation Error",
@@ -1182,113 +1179,126 @@
}
}
},
- "x-fern-sdk-method-name": "update_folder"
- },
- "delete": {
+ "x-fern-sdk-method-name": "get_run_timeline",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Get timeline for a workflow run\ntimeline = await skyvern.get_run_timeline(run_id=\"wr_123\")\nprint(timeline)\n\n# Get timeline for a task_v2 run\ntimeline = await skyvern.get_run_timeline(run_id=\"tsk_v2_123\")\nprint(timeline)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Get timeline for a workflow run\nconst timeline = await skyvern.getRunTimeline(\"wr_123\");\nconsole.log(timeline);\n\n// Get timeline for a task_v2 run\nconst timeline2 = await skyvern.getRunTimeline(\"tsk_v2_123\");\nconsole.log(timeline2);\n"
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "/v1/workflows/runs": {
+ "get": {
"tags": [
- "Workflow Folders"
+ "Workflow Runs"
],
- "summary": "Delete folder",
- "description": "Delete a folder. Optionally delete all workflows in the folder.",
- "operationId": "delete_folder_v1_folders__folder_id__delete",
+ "summary": "List workflow runs",
+ "description": "List workflow runs across all workflows for the current organization.\n\nResults are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.\n\n### search_key\n\nA case-insensitive substring search that matches against **any** of the following fields:\n\n| Searched field | Description |\n|---|---|\n| `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |\n| Parameter **key** | The `key` of any workflow parameter definition associated with the run |\n| Parameter **description** | The `description` of any workflow parameter definition |\n| Run parameter **value** | The actual value supplied for any parameter when the run was created |\n| `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |\n\nSoft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.\n\n### error_code\n\nAn **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).\n\n### Combining filters\n\nAll query parameters use AND logic:\n- `?status=failed` — only failed runs\n- `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error\n- `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match",
+ "operationId": "get_workflow_runs_v1_workflows_runs_get",
"parameters": [
{
- "name": "folder_id",
- "in": "path",
- "required": true,
+ "name": "page",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "description": "Folder ID",
- "examples": [
- "fld_123"
- ],
- "title": "Folder Id"
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination.",
+ "default": 1,
+ "title": "Page"
},
- "description": "Folder ID"
+ "description": "Page number for pagination."
},
{
- "name": "delete_workflows",
+ "name": "page_size",
"in": "query",
"required": false,
"schema": {
- "type": "boolean",
- "description": "If true, also delete all workflows in this folder",
- "default": false,
- "title": "Delete Workflows"
+ "type": "integer",
+ "minimum": 1,
+ "description": "Number of runs to return per page.",
+ "default": 10,
+ "title": "Page Size"
},
- "description": "If true, also delete all workflows in this folder"
+ "description": "Number of runs to return per page."
},
{
- "name": "x-api-key",
- "in": "header",
+ "name": "status",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRunStatus"
+ }
},
{
"type": "null"
}
],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
+ "description": "Filter by one or more run statuses.",
+ "title": "Status"
},
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully deleted folder",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "additionalProperties": true,
- "title": "Response Delete Folder V1 Folders Folder Id Delete"
- }
- }
- }
- },
- "404": {
- "description": "Folder not found"
+ "description": "Filter by one or more run statuses."
},
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
+ {
+ "name": "search_key",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
}
- }
- }
- }
- },
- "x-fern-sdk-method-name": "delete_folder"
- }
- },
- "/v1/workflows/{workflow_permanent_id}/folder": {
- "put": {
- "tags": [
- "Workflow Folders"
- ],
- "summary": "Update workflow folder",
- "description": "Update a workflow's folder assignment for the latest version",
- "operationId": "update_workflow_folder_v1_workflows__workflow_permanent_id__folder_put",
- "parameters": [
+ ],
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.",
+ "examples": [
+ "login_url",
+ "credential_value",
+ "wr_abc123"
+ ],
+ "title": "Search Key"
+ },
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching."
+ },
{
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
+ "name": "error_code",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "description": "Workflow permanent ID",
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
"examples": [
- "wpid_123"
+ "INVALID_CREDENTIALS",
+ "LOGIN_FAILED",
+ "CAPTCHA_DETECTED"
],
- "title": "Workflow Permanent Id"
+ "title": "Error Code"
},
- "description": "Workflow permanent ID"
+ "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution."
},
{
"name": "x-api-key",
@@ -1309,33 +1319,21 @@
"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/UpdateWorkflowFolderRequest"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated workflow folder",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Workflow"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRun"
+ },
+ "title": "Response Get Workflow Runs V1 Workflows Runs Get"
}
}
}
},
- "400": {
- "description": "Folder not found"
- },
- "404": {
- "description": "Workflow not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1347,25 +1345,50 @@
}
}
},
- "x-fern-sdk-method-name": "update_workflow_folder"
+ "x-fern-sdk-method-name": "get_workflow_runs"
}
},
- "/v1/artifacts/{artifact_id}": {
+ "/v1/workflows/{workflow_permanent_id}": {
"get": {
"tags": [
- "Artifacts"
+ "Workflows"
],
- "summary": "Get an artifact",
- "description": "Get an artifact",
- "operationId": "get_artifact_v1_artifacts__artifact_id__get",
+ "summary": "Get Workflow",
+ "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
"parameters": [
{
- "name": "artifact_id",
+ "name": "workflow_permanent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Artifact Id"
+ "title": "Workflow Permanent Id"
+ }
+ },
+ {
+ "name": "version",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Version"
+ }
+ },
+ {
+ "name": "template",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false,
+ "title": "Template"
}
},
{
@@ -1389,18 +1412,15 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved artifact",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Artifact"
+ "$ref": "#/components/schemas/Workflow"
}
}
}
},
- "404": {
- "description": "Artifact not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1412,93 +1432,35 @@
}
}
},
- "x-fern-sdk-method-name": "get_artifact"
+ "x-fern-sdk-method-name": "get_workflow"
}
},
- "/v1/artifacts/{artifact_id}/content": {
+ "/v1/workflows/{workflow_permanent_id}/versions": {
"get": {
"tags": [
- "Artifacts"
+ "Workflows"
],
- "summary": "Get artifact content",
- "description": "Download the raw content of an artifact (supports bundled artifacts).",
- "operationId": "get_artifact_content_v1_artifacts__artifact_id__content_get",
+ "summary": "Get Workflow Versions",
+ "description": "Get all versions of a workflow by its permanent ID.",
+ "operationId": "get_workflow_versions_v1_workflows__workflow_permanent_id__versions_get",
"parameters": [
{
- "name": "artifact_id",
+ "name": "workflow_permanent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Artifact Id"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Raw artifact content",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- },
- "403": {
- "description": "Invalid or expired artifact URL"
- },
- "404": {
- "description": "Artifact not found or content unavailable"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
+ "title": "Workflow Permanent Id"
}
- }
- }
- }
- },
- "/v1/runs/{run_id}/artifacts": {
- "get": {
- "tags": [
- "Artifacts"
- ],
- "summary": "Get artifacts for a run",
- "description": "Get artifacts for a run",
- "operationId": "get_run_artifacts_v1_runs__run_id__artifacts_get",
- "parameters": [
- {
- "name": "run_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The id of the task run or the workflow run.",
- "title": "Run Id"
- },
- "description": "The id of the task run or the workflow run."
},
{
- "name": "artifact_type",
+ "name": "template",
"in": "query",
"required": false,
"schema": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/ArtifactType"
- }
- },
- {
- "type": "null"
- }
- ],
- "title": "Artifact Type"
+ "type": "boolean",
+ "default": false,
+ "title": "Template"
}
},
{
@@ -1528,9 +1490,9 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Artifact"
+ "$ref": "#/components/schemas/Workflow"
},
- "title": "Response Get Run Artifacts V1 Runs Run Id Artifacts Get"
+ "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
}
}
}
@@ -1546,34 +1508,17 @@
}
}
},
- "x-fern-sdk-method-name": "get_run_artifacts"
+ "x-fern-sdk-method-name": "get_workflow_versions"
}
},
- "/v1/runs/{run_id}/retry_webhook": {
+ "/v1/upload_file": {
"post": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Files"
],
- "summary": "Retry run webhook",
- "description": "Retry sending the webhook for a run",
- "operationId": "retry_run_webhook_v1_runs__run_id__retry_webhook_post",
+ "summary": "Upload File",
+ "operationId": "upload_file_v1_upload_file_post",
"parameters": [
- {
- "name": "run_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The id of the task run or the workflow run.",
- "examples": [
- "tsk_123",
- "wr_123"
- ],
- "title": "Run Id"
- },
- "description": "The id of the task run or the workflow run."
- },
{
"name": "x-api-key",
"in": "header",
@@ -1594,1430 +1539,22 @@
}
],
"requestBody": {
+ "required": true,
"content": {
- "application/json": {
+ "multipart/form-data": {
"schema": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/RetryRunWebhookRequest"
- },
- {
- "type": "null"
- }
- ],
- "title": "Request"
+ "$ref": "#/components/schemas/Body_upload_file_v1_upload_file_post"
}
}
}
},
- "responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "retry_run_webhook",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.retry_run_webhook(run_id=\"tsk_v2_123\")\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.retryRunWebhook(\"tsk_v2_123\");\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/runs/{run_id}/timeline": {
- "get": {
- "tags": [
- "Agent",
- "Workflow Runs"
- ],
- "summary": "Get run timeline",
- "description": "Get timeline for a run (workflow run or task_v2 run)",
- "operationId": "get_run_timeline_v1_runs__run_id__timeline_get",
- "parameters": [
- {
- "name": "run_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The id of the workflow run or task_v2 run.",
- "examples": [
- "wr_123",
- "tsk_v2_123"
- ],
- "title": "Run Id"
- },
- "description": "The id of the workflow run or task_v2 run."
- },
- {
- "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": "Successfully retrieved run timeline",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRunTimeline"
- },
- "title": "Response Get Run Timeline V1 Runs Run Id Timeline Get"
- }
- }
- }
- },
- "400": {
- "description": "Timeline not available for this run type"
- },
- "404": {
- "description": "Run not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_run_timeline",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Get timeline for a workflow run\ntimeline = await skyvern.get_run_timeline(run_id=\"wr_123\")\nprint(timeline)\n\n# Get timeline for a task_v2 run\ntimeline = await skyvern.get_run_timeline(run_id=\"tsk_v2_123\")\nprint(timeline)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Get timeline for a workflow run\nconst timeline = await skyvern.getRunTimeline(\"wr_123\");\nconsole.log(timeline);\n\n// Get timeline for a task_v2 run\nconst timeline2 = await skyvern.getRunTimeline(\"tsk_v2_123\");\nconsole.log(timeline2);\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/workflows/runs": {
- "get": {
- "tags": [
- "Workflow Runs"
- ],
- "summary": "List workflow runs",
- "description": "List workflow runs across all workflows for the current organization.\n\nResults are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.\n\n### search_key\n\nA case-insensitive substring search that matches against **any** of the following fields:\n\n| Searched field | Description |\n|---|---|\n| `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |\n| Parameter **key** | The `key` of any workflow parameter definition associated with the run |\n| Parameter **description** | The `description` of any workflow parameter definition |\n| Run parameter **value** | The actual value supplied for any parameter when the run was created |\n| `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |\n\nSoft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.\n\n### error_code\n\nAn **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).\n\n### Combining filters\n\nAll query parameters use AND logic:\n- `?status=failed` — only failed runs\n- `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error\n- `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match",
- "operationId": "get_workflow_runs_v1_workflows_runs_get",
- "parameters": [
- {
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number for pagination.",
- "default": 1,
- "title": "Page"
- },
- "description": "Page number for pagination."
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of runs to return per page.",
- "default": 10,
- "title": "Page Size"
- },
- "description": "Number of runs to return per page."
- },
- {
- "name": "status",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRunStatus"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter by one or more run statuses.",
- "title": "Status"
- },
- "description": "Filter by one or more run statuses."
- },
- {
- "name": "search_key",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
- }
- ],
- "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.",
- "examples": [
- "login_url",
- "credential_value",
- "wr_abc123"
- ],
- "title": "Search Key"
- },
- "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching."
- },
- {
- "name": "error_code",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
- }
- ],
- "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
- "examples": [
- "INVALID_CREDENTIALS",
- "LOGIN_FAILED",
- "CAPTCHA_DETECTED"
- ],
- "title": "Error Code"
- },
- "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution."
- },
- {
- "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/WorkflowRun"
- },
- "title": "Response Get Workflow Runs V1 Workflows Runs Get"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_workflow_runs"
- }
- },
- "/v1/workflows/{workflow_permanent_id}": {
- "get": {
- "tags": [
- "Workflows"
- ],
- "summary": "Get Workflow",
- "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
- "parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "version",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "title": "Version"
- }
- },
- {
- "name": "template",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false,
- "title": "Template"
- }
- },
- {
- "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/Workflow"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_workflow"
- }
- },
- "/v1/workflows/{workflow_permanent_id}/versions": {
- "get": {
- "tags": [
- "Workflows"
- ],
- "summary": "Get Workflow Versions",
- "description": "Get all versions of a workflow by its permanent ID.",
- "operationId": "get_workflow_versions_v1_workflows__workflow_permanent_id__versions_get",
- "parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "template",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false,
- "title": "Template"
- }
- },
- {
- "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/Workflow"
- },
- "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_workflow_versions"
- }
- },
- "/v1/upload_file": {
- "post": {
- "tags": [
- "Files"
- ],
- "summary": "Upload File",
- "operationId": "upload_file_v1_upload_file_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": {
- "multipart/form-data": {
- "schema": {
- "$ref": "#/components/schemas/Body_upload_file_v1_upload_file_post"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UploadFileResponse"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "upload_file"
- }
- },
- "/v1/browser_profiles": {
- "post": {
- "tags": [
- "Browser Profiles"
- ],
- "summary": "Create a browser profile",
- "description": "Create a browser profile from a persistent browser session or workflow run.",
- "operationId": "create_browser_profile_v1_browser_profiles_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/CreateBrowserProfileRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully created browser profile",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/BrowserProfile"
- }
- }
- }
- },
- "400": {
- "description": "Invalid request - missing source or source not found"
- },
- "409": {
- "description": "Browser profile name already exists"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "create_browser_profile",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Create a browser profile from a persistent browser session\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n browser_session_id=\"pbs_123\",\n)\nprint(browser_profile)\n\n# Or create from a workflow run with persist_browser_session=True\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n workflow_run_id=\"wr_123\",\n)\nprint(browser_profile)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Create a browser profile from a persistent browser session\nconst browserProfile = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n browser_session_id: \"pbs_123\",\n});\nconsole.log(browserProfile);\n\n// Or create from a workflow run with persist_browser_session=True\nconst browserProfile2 = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n workflow_run_id: \"wr_123\",\n});\nconsole.log(browserProfile2);\n"
- }
- ]
- }
- ]
- },
- "get": {
- "tags": [
- "Browser Profiles"
- ],
- "summary": "List browser profiles",
- "description": "Get all browser profiles for the organization",
- "operationId": "list_browser_profiles_v1_browser_profiles_get",
- "parameters": [
- {
- "name": "include_deleted",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "description": "Include deleted browser profiles",
- "default": false,
- "title": "Include Deleted"
- },
- "description": "Include deleted browser profiles"
- },
- {
- "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": "Successfully retrieved browser profiles",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/BrowserProfile"
- },
- "title": "Response List Browser Profiles V1 Browser Profiles Get"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "list_browser_profiles",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profiles = await skyvern.browser_profiles.list_browser_profiles()\nprint(browser_profiles)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfiles = await skyvern.browserProfiles.listBrowserProfiles();\nconsole.log(browserProfiles);\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/browser_profiles/{profile_id}": {
- "get": {
- "tags": [
- "Browser Profiles"
- ],
- "summary": "Get browser profile",
- "description": "Get a specific browser profile by ID",
- "operationId": "get_browser_profile_v1_browser_profiles__profile_id__get",
- "parameters": [
- {
- "name": "profile_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The ID of the browser profile. browser_profile_id starts with `bp_`",
- "examples": [
- "bp_123456"
- ],
- "title": "Profile Id"
- },
- "description": "The ID of the browser profile. browser_profile_id starts with `bp_`"
- },
- {
- "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": "Successfully retrieved browser profile",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/BrowserProfile"
- }
- }
- }
- },
- "404": {
- "description": "Browser profile not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_browser_profile",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profile = await skyvern.browser_profiles.get_browser_profile(\"bp_123\")\nprint(browser_profile)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfile = await skyvern.browserProfiles.getBrowserProfile(\"bp_123\");\nconsole.log(browserProfile);\n"
- }
- ]
- }
- ]
- },
- "delete": {
- "tags": [
- "Browser Profiles"
- ],
- "summary": "Delete browser profile",
- "description": "Delete a browser profile (soft delete)",
- "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
- "parameters": [
- {
- "name": "profile_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`",
- "examples": [
- "bp_123456"
- ],
- "title": "Profile Id"
- },
- "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`"
- },
- {
- "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": {
- "204": {
- "description": "Successfully deleted browser profile"
- },
- "404": {
- "description": "Browser profile not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "delete_browser_profile",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.browser_profiles.delete_browser_profile(\"bp_123\")\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.browserProfiles.deleteBrowserProfile(\"bp_123\");\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/browser_sessions": {
- "post": {
- "tags": [
- "Browser Sessions"
- ],
- "summary": "Create a session",
- "description": "Create a browser session that persists across multiple runs",
- "operationId": "create_browser_session_v1_browser_sessions_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": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CreateBrowserSessionRequest",
- "default": {
- "timeout": 60
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully created browser session",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
- }
- }
- }
- },
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "404": {
- "description": "Browser profile not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "create_browser_session",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_session = await skyvern.create_browser_session(timeout=60)\nprint(browser_session)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSession = await skyvern.createBrowserSession({\n timeout: 60\n});\nconsole.log(browserSession);\n"
- }
- ]
- }
- ]
- },
- "get": {
- "tags": [
- "Browser Sessions"
- ],
- "summary": "Get active browser sessions",
- "description": "Get all active browser sessions for the organization",
- "operationId": "get_browser_sessions_v1_browser_sessions_get",
- "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."
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully retrieved all active browser sessions",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
- },
- "title": "Response Get Browser Sessions V1 Browser Sessions Get"
- }
- }
- }
- },
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_browser_sessions",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_sessions = await skyvern.get_browser_sessions()\nprint(browser_sessions)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSessions = await skyvern.getBrowserSessions();\nconsole.log(browserSessions);\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/browser_sessions/{browser_session_id}/close": {
- "post": {
- "tags": [
- "Browser Sessions"
- ],
- "summary": "Close a session",
- "description": "Close a session. Once closed, the session cannot be used again.",
- "operationId": "close_browser_session_v1_browser_sessions__browser_session_id__close_post",
- "parameters": [
- {
- "name": "browser_session_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`",
- "examples": [
- "pbs_123456"
- ],
- "title": "Browser Session Id"
- },
- "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`"
- },
- {
- "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": "Successfully closed browser session",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- },
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "close_browser_session",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.close_browser_session(browser_session_id=\"pbs_123\")\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.closeBrowserSession(\"pbs_123\");\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/browser_sessions/{browser_session_id}": {
- "get": {
- "tags": [
- "Browser Sessions"
- ],
- "summary": "Get a session",
- "description": "Get details about a specific browser session, including the browser address for cdp connection.",
- "operationId": "get_browser_session_v1_browser_sessions__browser_session_id__get",
- "parameters": [
- {
- "name": "browser_session_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The ID of the browser session. browser_session_id starts with `pbs_`",
- "examples": [
- "pbs_123456"
- ],
- "title": "Browser Session Id"
- },
- "description": "The ID of the browser session. browser_session_id starts with `pbs_`"
- },
- {
- "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": "Successfully retrieved browser session details",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
- }
- }
- }
- },
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "404": {
- "description": "Browser session not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_browser_session",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_session = await skyvern.get_browser_session(browser_session_id=\"pbs_123\")\nprint(browser_session)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSession = await skyvern.getBrowserSession(\"pbs_123\");\nconsole.log(browserSession);\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/credentials/totp": {
- "post": {
- "tags": [
- "Credentials"
- ],
- "summary": "Send TOTP code",
- "description": "Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.",
- "operationId": "send_totp_code_v1_credentials_totp_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/TOTPCodeCreate"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/TOTPCode"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "send_totp_code",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.send_totp_code(\n totp_identifier=\"[email protected]\",\n content=\"Hello, your verification code is 123456\"\n)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.sendTotpCode({\n totp_identifier: \"[email protected]\",\n content: \"Hello, your verification code is 123456\"\n});\n"
- }
- ]
- }
- ]
- }
- },
- "/v1/credentials": {
- "post": {
- "tags": [
- "Credentials"
- ],
- "summary": "Create credential",
- "description": "Creates a new credential for the current organization",
- "operationId": "create_credential_v1_credentials_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/CreateCredentialRequest",
- "description": "The credential data to create",
- "examples": [
- {
- "name": "My Credential",
- "credential_type": "PASSWORD",
- "credential": {
- "username": "[email protected]",
- "password": "securepassword123",
- "totp": "JBSWY3DPEHPK3PXP"
- }
- }
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "data"
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CredentialResponse"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "create_credential",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.create_credential(\n name=\"My Credential\",\n credential_type=\"password\",\n credential={\"username\": \"username\", \"password\": \"password\"},\n)\n"
- },
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.create_credential(\n name=\"My Credit Card\",\n credential_type=\"credit_card\",\n credential={\n \"card_number\": \"4242424242424242\",\n \"card_cvv\": \"424\",\n \"card_exp_month\": \"12\",\n \"card_exp_year\": \"2028\",\n \"card_brand\": \"visa\",\n \"card_holder_name\": \"John Doe\",\n },\n)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.createCredential({\n name: \"My Credential\",\n credential_type: \"password\",\n credential: { username: \"username\", password: \"password\" }\n});\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.createCredential({\n name: \"My Credit Card\",\n credential_type: \"credit_card\",\n credential: {\n card_number: \"4242424242424242\",\n card_cvv: \"424\",\n card_exp_month: \"12\",\n card_exp_year: \"2028\",\n card_brand: \"visa\",\n card_holder_name: \"John Doe\"\n }\n});\n"
- }
- ]
- }
- ]
- },
- "get": {
- "tags": [
- "Credentials"
- ],
- "summary": "Get all credentials",
- "description": "Retrieves a paginated list of credentials for the current organization",
- "operationId": "get_credentials_v1_credentials_get",
- "parameters": [
- {
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number for pagination",
- "examples": [
- 1
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "page"
- },
- "default": 1,
- "title": "Page"
- },
- "description": "Page number for pagination"
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of items per page",
- "examples": [
- 10
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "page_size"
- },
- "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/CredentialResponse"
- },
- "title": "Response Get Credentials V1 Credentials Get"
+ "$ref": "#/components/schemas/UploadFileResponse"
}
}
}
@@ -3033,49 +1570,18 @@
}
}
},
- "x-fern-sdk-method-name": "get_credentials",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\ncredentials = await skyvern.get_credentials()\nprint(credentials)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst credentials = await skyvern.getCredentials();\nconsole.log(credentials);\n"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "upload_file"
}
},
- "/v1/credentials/{credential_id}/update": {
+ "/v1/browser_profiles": {
"post": {
"tags": [
- "Credentials"
+ "Browser Profiles"
],
- "summary": "Update credential",
- "description": "Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.",
- "operationId": "update_credential_v1_credentials__credential_id__update_post",
+ "summary": "Create a browser profile",
+ "description": "Create a browser profile from a persistent browser session or workflow run.",
+ "operationId": "create_browser_profile_v1_browser_profiles_post",
"parameters": [
- {
- "name": "credential_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The unique identifier of the credential to update",
- "examples": [
- "cred_1234567890"
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
- },
- "description": "The unique identifier of the credential to update"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3100,98 +1606,27 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateCredentialRequest",
- "description": "The new credential data to store",
- "examples": [
- {
- "name": "My Credential",
- "credential_type": "PASSWORD",
- "credential": {
- "username": "[email protected]",
- "password": "newpassword123"
- }
- }
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "data"
- }
+ "$ref": "#/components/schemas/CreateBrowserProfileRequest"
}
}
}
},
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully created browser profile",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "update_credential"
- }
- },
- "/v1/credentials/{credential_id}/delete": {
- "post": {
- "tags": [
- "Credentials"
- ],
- "summary": "Delete credential",
- "description": "Deletes a specific credential by its ID",
- "operationId": "delete_credential_v1_credentials__credential_id__delete_post",
- "parameters": [
- {
- "name": "credential_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The unique identifier of the credential to delete",
- "examples": [
- "cred_1234567890"
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
- },
- "description": "The unique identifier of the credential to delete"
+ "400": {
+ "description": "Invalid request - missing source or source not found"
},
- {
- "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": {
- "204": {
- "description": "Successful Response"
+ "409": {
+ "description": "Browser profile name already exists"
},
"422": {
"description": "Validation Error",
@@ -3204,48 +1639,41 @@
}
}
},
- "x-fern-sdk-method-name": "delete_credential",
+ "x-fern-sdk-method-name": "create_browser_profile",
"x-fern-examples": [
{
"code-samples": [
{
"sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.delete_credential(credential_id=\"cred_123\")\n"
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Create a browser profile from a persistent browser session\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n browser_session_id=\"pbs_123\",\n)\nprint(browser_profile)\n\n# Or create from a workflow run with persist_browser_session=True\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n workflow_run_id=\"wr_123\",\n)\nprint(browser_profile)\n"
},
{
"sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.deleteCredential(\"cred_123\");\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Create a browser profile from a persistent browser session\nconst browserProfile = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n browser_session_id: \"pbs_123\",\n});\nconsole.log(browserProfile);\n\n// Or create from a workflow run with persist_browser_session=True\nconst browserProfile2 = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n workflow_run_id: \"wr_123\",\n});\nconsole.log(browserProfile2);\n"
}
]
}
]
- }
- },
- "/v1/credentials/{credential_id}": {
+ },
"get": {
"tags": [
- "Credentials"
+ "Browser Profiles"
],
- "summary": "Get credential by ID",
- "description": "Retrieves a specific credential by its ID",
- "operationId": "get_credential_v1_credentials__credential_id__get",
- "parameters": [
- {
- "name": "credential_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The unique identifier of the credential",
- "examples": [
- "cred_1234567890"
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
+ "summary": "List browser profiles",
+ "description": "Get all browser profiles for the organization",
+ "operationId": "list_browser_profiles_v1_browser_profiles_get",
+ "parameters": [
+ {
+ "name": "include_deleted",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "description": "Include deleted browser profiles",
+ "default": false,
+ "title": "Include Deleted"
},
- "description": "The unique identifier of the credential"
+ "description": "Include deleted browser profiles"
},
{
"name": "x-api-key",
@@ -3268,11 +1696,15 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser profiles",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/BrowserProfile"
+ },
+ "title": "Response List Browser Profiles V1 Browser Profiles Get"
}
}
}
@@ -3288,32 +1720,46 @@
}
}
},
- "x-fern-sdk-method-name": "get_credential",
+ "x-fern-sdk-method-name": "list_browser_profiles",
"x-fern-examples": [
{
"code-samples": [
{
"sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\ncredential = await skyvern.get_credential(credential_id=\"cred_123\")\nprint(credential)\n"
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profiles = await skyvern.browser_profiles.list_browser_profiles()\nprint(browser_profiles)\n"
},
{
"sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst credential = await skyvern.getCredential(\"cred_123\");\nconsole.log(credential);\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfiles = await skyvern.browserProfiles.listBrowserProfiles();\nconsole.log(browserProfiles);\n"
}
]
}
]
}
},
- "/v1/run/tasks/login": {
- "post": {
+ "/v1/browser_profiles/{profile_id}": {
+ "get": {
"tags": [
- "Agent"
+ "Browser Profiles"
],
- "summary": "Login Task",
- "description": "Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault",
- "operationId": "login_v1_run_tasks_login_post",
+ "summary": "Get browser profile",
+ "description": "Get a specific browser profile by ID",
+ "operationId": "get_browser_profile_v1_browser_profiles__profile_id__get",
"parameters": [
+ {
+ "name": "profile_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The ID of the browser profile. browser_profile_id starts with `bp_`",
+ "examples": [
+ "bp_123456"
+ ],
+ "title": "Profile Id"
+ },
+ "description": "The ID of the browser profile. browser_profile_id starts with `bp_`"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3333,27 +1779,20 @@
"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/LoginRequest"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser profile",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
+ "404": {
+ "description": "Browser profile not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3365,48 +1804,44 @@
}
}
},
- "x-fern-sdk-method-name": "login",
+ "x-fern-sdk-method-name": "get_browser_profile",
"x-fern-examples": [
{
"code-samples": [
{
"sdk": "python",
- "code": "# Login with password saved in Skyvern\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"skyvern\",\n credential_id=\"cred_123\"),\n)\n"
- },
- {
- "sdk": "python",
- "code": "# Login with password saved in Bitwarden\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Login with a Bitwarden collection and website url filter\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"bitwarden\",\n bitwarden_collection_id=\"BITWARDEN COLLECTION ID\",\n)\n\n# Login with a Bitwarden item\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"bitwarden\",\n bitwarden_item_id=\"BITWARDEN ITEM ID\",\n)\n"
- },
- {
- "sdk": "python",
- "code": "# Login with password saved in 1Password\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"onepassword\",\n onepassword_vault_id=\"1PASSWORD VAULT ID\",\n onepassword_item_id=\"1PASSWORD ITEM ID\",\n)\n"
- },
- {
- "sdk": "typescript",
- "code": "// Login with password saved in Skyvern\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"skyvern\",\n credential_id: \"cred_123\"\n});\n"
- },
- {
- "sdk": "typescript",
- "code": "// Login with password saved in Bitwarden\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Login with a Bitwarden collection and website url filter\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"bitwarden\",\n bitwarden_collection_id: \"BITWARDEN COLLECTION ID\"\n});\n\n// Login with a Bitwarden item\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"bitwarden\",\n bitwarden_item_id: \"BITWARDEN ITEM ID\"\n});\n"
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profile = await skyvern.browser_profiles.get_browser_profile(\"bp_123\")\nprint(browser_profile)\n"
},
{
"sdk": "typescript",
- "code": "// Login with password saved in 1Password\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"onepassword\",\n onepassword_vault_id: \"1PASSWORD VAULT ID\",\n onepassword_item_id: \"1PASSWORD ITEM ID\"\n});\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfile = await skyvern.browserProfiles.getBrowserProfile(\"bp_123\");\nconsole.log(browserProfile);\n"
}
]
}
]
- }
- },
- "/v1/run/tasks/download_files": {
- "post": {
+ },
+ "delete": {
"tags": [
- "Agent"
+ "Browser Profiles"
],
- "summary": "File Download Task",
- "description": "Download a file from a website by navigating and clicking download buttons",
- "operationId": "download_files_v1_run_tasks_download_files_post",
+ "summary": "Delete browser profile",
+ "description": "Delete a browser profile (soft delete)",
+ "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
"parameters": [
+ {
+ "name": "profile_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`",
+ "examples": [
+ "bp_123456"
+ ],
+ "title": "Profile Id"
+ },
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3426,26 +1861,12 @@
"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/DownloadFilesRequest"
- }
- }
- }
- },
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
- }
- }
- }
+ "204": {
+ "description": "Successfully deleted browser profile"
+ },
+ "404": {
+ "description": "Browser profile not found"
},
"422": {
"description": "Validation Error",
@@ -3458,31 +1879,31 @@
}
}
},
- "x-fern-sdk-method-name": "download_files",
+ "x-fern-sdk-method-name": "delete_browser_profile",
"x-fern-examples": [
{
"code-samples": [
{
"sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.download_files(\n url=\"https://example.com/downloads\",\n navigation_goal=\"Navigate to the downloads page and click the 'Download PDF' button\",\n download_suffix=\"report.pdf\"\n)\n"
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.browser_profiles.delete_browser_profile(\"bp_123\")\n"
},
{
"sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.downloadFiles({\n url: \"https://example.com/downloads\",\n navigation_goal: \"Navigate to the downloads page and click the 'Download PDF' button\",\n download_suffix: \"report.pdf\"\n});\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.browserProfiles.deleteBrowserProfile(\"bp_123\");\n"
}
]
}
]
}
},
- "/v1/scripts": {
+ "/v1/browser_sessions": {
"post": {
"tags": [
- "Scripts"
+ "Browser Sessions"
],
- "summary": "Create script",
- "description": "Create a new script with optional files and metadata",
- "operationId": "create_script_v1_scripts_post",
+ "summary": "Create a session",
+ "description": "Create a browser session that persists across multiple runs",
+ "operationId": "create_browser_session_v1_browser_sessions_post",
"parameters": [
{
"name": "x-api-key",
@@ -3504,26 +1925,34 @@
}
],
"requestBody": {
- "required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptRequest"
+ "$ref": "#/components/schemas/CreateBrowserSessionRequest",
+ "default": {
+ "timeout": 60
+ }
}
}
}
},
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully created browser session",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptResponse"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
+ "404": {
+ "description": "Browser profile not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3535,48 +1964,30 @@
}
}
},
- "x-fern-sdk-method-name": "create_script"
+ "x-fern-sdk-method-name": "create_browser_session",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_session = await skyvern.create_browser_session(timeout=60)\nprint(browser_session)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSession = await skyvern.createBrowserSession({\n timeout: 60\n});\nconsole.log(browserSession);\n"
+ }
+ ]
+ }
+ ]
},
"get": {
"tags": [
- "Scripts"
+ "Browser Sessions"
],
- "summary": "Get all scripts",
- "description": "Retrieves a paginated list of scripts for the current organization",
- "operationId": "get_scripts_v1_scripts_get",
+ "summary": "Get active browser sessions",
+ "description": "Get all active browser sessions for the organization",
+ "operationId": "get_browser_sessions_v1_browser_sessions_get",
"parameters": [
- {
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "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",
- "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",
@@ -3598,19 +2009,22 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved all active browser sessions",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Script"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
},
- "title": "Response Get Scripts V1 Scripts Get"
+ "title": "Response Get Browser Sessions V1 Browser Sessions Get"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3622,31 +2036,45 @@
}
}
},
- "x-fern-sdk-method-name": "get_scripts"
+ "x-fern-sdk-method-name": "get_browser_sessions",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_sessions = await skyvern.get_browser_sessions()\nprint(browser_sessions)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSessions = await skyvern.getBrowserSessions();\nconsole.log(browserSessions);\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}": {
- "get": {
+ "/v1/browser_sessions/{browser_session_id}/close": {
+ "post": {
"tags": [
- "Scripts"
+ "Browser Sessions"
],
- "summary": "Get script by ID",
- "description": "Retrieves a specific script by its ID",
- "operationId": "get_script_v1_scripts__script_id__get",
+ "summary": "Close a session",
+ "description": "Close a session. Once closed, the session cannot be used again.",
+ "operationId": "close_browser_session_v1_browser_sessions__browser_session_id__close_post",
"parameters": [
{
- "name": "script_id",
+ "name": "browser_session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`",
"examples": [
- "s_abc123"
+ "pbs_123456"
],
- "title": "Script Id"
+ "title": "Browser Session Id"
},
- "description": "The unique identifier of the script"
+ "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`"
},
{
"name": "x-api-key",
@@ -3669,15 +2097,16 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully closed browser session",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/Script"
- }
+ "schema": {}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3689,31 +2118,45 @@
}
}
},
- "x-fern-sdk-method-name": "get_script"
+ "x-fern-sdk-method-name": "close_browser_session",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.close_browser_session(browser_session_id=\"pbs_123\")\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.closeBrowserSession(\"pbs_123\");\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}/deploy": {
- "post": {
+ "/v1/browser_sessions/{browser_session_id}": {
+ "get": {
"tags": [
- "Scripts"
+ "Browser Sessions"
],
- "summary": "Deploy script",
- "description": "Deploy a script with updated files, creating a new version",
- "operationId": "deploy_script_v1_scripts__script_id__deploy_post",
+ "summary": "Get a session",
+ "description": "Get details about a specific browser session, including the browser address for cdp connection.",
+ "operationId": "get_browser_session_v1_browser_sessions__browser_session_id__get",
"parameters": [
{
- "name": "script_id",
+ "name": "browser_session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "description": "The ID of the browser session. browser_session_id starts with `pbs_`",
"examples": [
- "s_abc123"
+ "pbs_123456"
],
- "title": "Script Id"
+ "title": "Browser Session Id"
},
- "description": "The unique identifier of the script"
+ "description": "The ID of the browser session. browser_session_id starts with `pbs_`"
},
{
"name": "x-api-key",
@@ -3734,27 +2177,23 @@
"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",
+ "description": "Successfully retrieved browser session details",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptResponse"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
+ "404": {
+ "description": "Browser session not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3766,32 +2205,32 @@
}
}
},
- "x-fern-sdk-method-name": "deploy_script"
+ "x-fern-sdk-method-name": "get_browser_session",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_session = await skyvern.get_browser_session(browser_session_id=\"pbs_123\")\nprint(browser_session)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSession = await skyvern.getBrowserSession(\"pbs_123\");\nconsole.log(browserSession);\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}/run": {
+ "/v1/credentials/totp": {
"post": {
"tags": [
- "Scripts"
+ "Credentials"
],
- "summary": "Run script",
- "description": "Run a script",
- "operationId": "run_script_v1_scripts__script_id__run_post",
+ "summary": "Send TOTP code",
+ "description": "Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.",
+ "operationId": "send_totp_code_v1_credentials_totp_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",
@@ -3811,12 +2250,24 @@
"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/TOTPCodeCreate"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/TOTPCode"
+ }
}
}
},
@@ -3830,17 +2281,32 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "send_totp_code",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.send_totp_code(\n totp_identifier=\"[email protected]\",\n content=\"Hello, your verification code is 123456\"\n)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.sendTotpCode({\n totp_identifier: \"[email protected]\",\n content: \"Hello, your verification code is 123456\"\n});\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/sdk/run_action": {
+ "/v1/credentials": {
"post": {
"tags": [
- "SDK"
+ "Credentials"
],
- "summary": "Run an SDK action",
- "description": "Execute a single SDK action with the specified parameters",
- "operationId": "run_sdk_action_v1_sdk_run_action_post",
+ "summary": "Create credential",
+ "description": "Creates a new credential for the current organization",
+ "operationId": "create_credential_v1_credentials_post",
"parameters": [
{
"name": "x-api-key",
@@ -3866,18 +2332,33 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RunSdkActionRequest"
+ "$ref": "#/components/schemas/CreateCredentialRequest",
+ "description": "The credential data to create",
+ "examples": [
+ {
+ "name": "My Credential",
+ "credential_type": "PASSWORD",
+ "credential": {
+ "username": "[email protected]",
+ "password": "securepassword123",
+ "totp": "JBSWY3DPEHPK3PXP"
+ }
+ }
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "data"
+ }
}
}
}
},
"responses": {
- "200": {
+ "201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RunSdkActionResponse"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
@@ -3893,15 +2374,76 @@
}
}
},
- "x-fern-sdk-method-name": "run_sdk_action"
- }
- },
- "/api/v1/billing/checkout": {
- "post": {
- "summary": "Create Checkout Session",
- "description": "Create a Stripe Checkout Session for subscribing to a tier.\n\nFrontend should redirect the user to the returned URL.\nAfter successful checkout, Stripe will send a webhook that we handle\nto store the subscription and initialize billing state.\n\nReturns 400 if org already has an active subscription (use portal instead).",
- "operationId": "create_checkout_session_api_v1_billing_checkout_post",
+ "x-fern-sdk-method-name": "create_credential",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.create_credential(\n name=\"My Credential\",\n credential_type=\"password\",\n credential={\"username\": \"username\", \"password\": \"password\"},\n)\n"
+ },
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.create_credential(\n name=\"My Credit Card\",\n credential_type=\"credit_card\",\n credential={\n \"card_number\": \"4242424242424242\",\n \"card_cvv\": \"424\",\n \"card_exp_month\": \"12\",\n \"card_exp_year\": \"2028\",\n \"card_brand\": \"visa\",\n \"card_holder_name\": \"John Doe\",\n },\n)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.createCredential({\n name: \"My Credential\",\n credential_type: \"password\",\n credential: { username: \"username\", password: \"password\" }\n});\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.createCredential({\n name: \"My Credit Card\",\n credential_type: \"credit_card\",\n credential: {\n card_number: \"4242424242424242\",\n card_cvv: \"424\",\n card_exp_month: \"12\",\n card_exp_year: \"2028\",\n card_brand: \"visa\",\n card_holder_name: \"John Doe\"\n }\n});\n"
+ }
+ ]
+ }
+ ]
+ },
+ "get": {
+ "tags": [
+ "Credentials"
+ ],
+ "summary": "Get all credentials",
+ "description": "Retrieves a paginated list of credentials for the current organization",
+ "operationId": "get_credentials_v1_credentials_get",
"parameters": [
+ {
+ "name": "page",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination",
+ "examples": [
+ 1
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page"
+ },
+ "default": 1,
+ "title": "Page"
+ },
+ "description": "Page number for pagination"
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Number of items per page",
+ "examples": [
+ 10
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page_size"
+ },
+ "default": 10,
+ "title": "Page Size"
+ },
+ "description": "Number of items per page"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3921,23 +2463,17 @@
"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/CheckoutSubscriptionRequest"
- }
- }
- }
- },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CheckoutSessionResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CredentialResponse"
+ },
+ "title": "Response Get Credentials V1 Credentials Get"
}
}
}
@@ -3952,63 +2488,50 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "get_credentials",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\ncredentials = await skyvern.get_credentials()\nprint(credentials)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst credentials = await skyvern.getCredentials();\nconsole.log(credentials);\n"
+ }
+ ]
+ }
+ ]
}
},
- "/api/v1/billing/portal": {
+ "/v1/credentials/{credential_id}/update": {
"post": {
- "summary": "Create Portal Session",
- "description": "Create a Stripe Customer Portal session for managing subscription.\n\nFrontend should redirect the user to the returned URL.\nThe portal allows users to:\n- Update payment methods\n- Upgrade/downgrade plans\n- Cancel subscription\n- View invoices",
- "operationId": "create_portal_session_api_v1_billing_portal_post",
+ "tags": [
+ "Credentials"
+ ],
+ "summary": "Update credential",
+ "description": "Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.",
+ "operationId": "update_credential_v1_credentials__credential_id__update_post",
"parameters": [
{
- "name": "x-api-key",
- "in": "header",
- "required": false,
+ "name": "credential_id",
+ "in": "path",
+ "required": true,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": "string",
+ "description": "The unique identifier of the credential to update",
+ "examples": [
+ "cred_1234567890"
],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
},
- "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/PortalSessionResponse"
- }
- }
- }
+ "description": "The unique identifier of the credential to update"
},
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- }
- }
- },
- "/api/v1/billing/state": {
- "get": {
- "summary": "Get Organization Billing",
- "operationId": "get_organization_billing_api_v1_billing_state_get",
- "parameters": [
{
"name": "x-api-key",
"in": "header",
@@ -4028,21 +2551,37 @@
"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/CreateCredentialRequest",
+ "description": "The new credential data to store",
+ "examples": [
+ {
+ "name": "My Credential",
+ "credential_type": "PASSWORD",
+ "credential": {
+ "username": "[email protected]",
+ "password": "newpassword123"
+ }
+ }
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "data"
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/BillingStateResponse"
- },
- {
- "type": "null"
- }
- ],
- "title": "Response Get Organization Billing Api V1 Billing State Get"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
@@ -4057,15 +2596,36 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "update_credential"
}
},
- "/api/v1/billing/change-tier": {
+ "/v1/credentials/{credential_id}/delete": {
"post": {
- "summary": "Change Tier",
- "description": "Redirect to Stripe Portal for tier changes.\nPortal handles proration based on configured settings:\n- Upgrades: Immediate proration charge\n- Downgrades: Apply at end of billing period",
- "operationId": "change_tier_api_v1_billing_change_tier_post",
+ "tags": [
+ "Credentials"
+ ],
+ "summary": "Delete credential",
+ "description": "Deletes a specific credential by its ID",
+ "operationId": "delete_credential_v1_credentials__credential_id__delete_post",
"parameters": [
+ {
+ "name": "credential_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The unique identifier of the credential to delete",
+ "examples": [
+ "cred_1234567890"
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
+ },
+ "description": "The unique identifier of the credential to delete"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -4085,26 +2645,9 @@
"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/ChangeTierRequest"
- }
- }
- }
- },
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ChangeTierResponse"
- }
- }
- }
+ "204": {
+ "description": "Successful Response"
},
"422": {
"description": "Validation Error",
@@ -4116,79 +2659,49 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "delete_credential",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.delete_credential(credential_id=\"cred_123\")\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.deleteCredential(\"cred_123\");\n"
+ }
+ ]
+ }
+ ]
}
},
- "/api/v1/schedules": {
+ "/v1/credentials/{credential_id}": {
"get": {
"tags": [
- "agent"
+ "Credentials"
],
- "summary": "List Organization Schedules",
- "operationId": "list_organization_schedules_api_v1_schedules_get",
+ "summary": "Get credential by ID",
+ "description": "Retrieves a specific credential by its ID",
+ "operationId": "get_credential_v1_credentials__credential_id__get",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "default": 1,
- "title": "Page"
- }
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "maximum": 100,
- "minimum": 1,
- "default": 10,
- "title": "Page Size"
- }
- },
- {
- "name": "status",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "enum": [
- "active",
- "paused"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter by status: 'active' or 'paused'",
- "title": "Status"
- },
- "description": "Filter by status: 'active' or 'paused'"
- },
- {
- "name": "search",
- "in": "query",
- "required": false,
+ "name": "credential_id",
+ "in": "path",
+ "required": true,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": "string",
+ "description": "The unique identifier of the credential",
+ "examples": [
+ "cred_1234567890"
],
- "description": "Search by workflow title or schedule name",
- "title": "Search"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
},
- "description": "Search by workflow title or schedule name"
+ "description": "The unique identifier of the credential"
},
{
"name": "x-api-key",
@@ -4215,7 +2728,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/OrganizationScheduleListResponse"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
@@ -4228,28 +2741,35 @@
"$ref": "#/components/schemas/HTTPValidationError"
}
}
- }
+ }
+ }
+ },
+ "x-fern-sdk-method-name": "get_credential",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\ncredential = await skyvern.get_credential(credential_id=\"cred_123\")\nprint(credential)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst credential = await skyvern.getCredential(\"cred_123\");\nconsole.log(credential);\n"
+ }
+ ]
}
- }
+ ]
}
},
- "/api/v1/workflows/{workflow_permanent_id}/schedules": {
+ "/v1/run/tasks/login": {
"post": {
"tags": [
- "agent"
+ "Agent"
],
- "summary": "Create Workflow Schedule",
- "operationId": "create_workflow_schedule_api_v1_workflows__workflow_permanent_id__schedules_post",
+ "summary": "Login Task",
+ "description": "Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault",
+ "operationId": "login_v1_run_tasks_login_post",
"parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
{
"name": "x-api-key",
"in": "header",
@@ -4274,7 +2794,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowScheduleUpsertRequest"
+ "$ref": "#/components/schemas/LoginRequest"
}
}
}
@@ -4285,7 +2805,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowScheduleResponse"
+ "$ref": "#/components/schemas/WorkflowRunResponse"
}
}
}
@@ -4300,24 +2820,49 @@
}
}
}
- }
- },
- "get": {
+ },
+ "x-fern-sdk-method-name": "login",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "# Login with password saved in Skyvern\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"skyvern\",\n credential_id=\"cred_123\"),\n)\n"
+ },
+ {
+ "sdk": "python",
+ "code": "# Login with password saved in Bitwarden\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Login with a Bitwarden collection and website url filter\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"bitwarden\",\n bitwarden_collection_id=\"BITWARDEN COLLECTION ID\",\n)\n\n# Login with a Bitwarden item\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"bitwarden\",\n bitwarden_item_id=\"BITWARDEN ITEM ID\",\n)\n"
+ },
+ {
+ "sdk": "python",
+ "code": "# Login with password saved in 1Password\nfrom skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.login(\n url=\"https://example.com\",\n credential_type=\"onepassword\",\n onepassword_vault_id=\"1PASSWORD VAULT ID\",\n onepassword_item_id=\"1PASSWORD ITEM ID\",\n)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "// Login with password saved in Skyvern\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"skyvern\",\n credential_id: \"cred_123\"\n});\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "// Login with password saved in Bitwarden\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Login with a Bitwarden collection and website url filter\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"bitwarden\",\n bitwarden_collection_id: \"BITWARDEN COLLECTION ID\"\n});\n\n// Login with a Bitwarden item\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"bitwarden\",\n bitwarden_item_id: \"BITWARDEN ITEM ID\"\n});\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "// Login with password saved in 1Password\nimport { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.login({\n url: \"https://example.com\",\n credential_type: \"onepassword\",\n onepassword_vault_id: \"1PASSWORD VAULT ID\",\n onepassword_item_id: \"1PASSWORD ITEM ID\"\n});\n"
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "/v1/run/tasks/download_files": {
+ "post": {
"tags": [
- "agent"
+ "Agent"
],
- "summary": "List Workflow Schedules",
- "operationId": "list_workflow_schedules_api_v1_workflows__workflow_permanent_id__schedules_get",
+ "summary": "File Download Task",
+ "description": "Download a file from a website by navigating and clicking download buttons",
+ "operationId": "download_files_v1_run_tasks_download_files_post",
"parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
{
"name": "x-api-key",
"in": "header",
@@ -4337,13 +2882,23 @@
"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/DownloadFilesRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowScheduleListResponse"
+ "$ref": "#/components/schemas/WorkflowRunResponse"
}
}
}
@@ -4358,35 +2913,33 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "download_files",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nawait skyvern.download_files(\n url=\"https://example.com/downloads\",\n navigation_goal=\"Navigate to the downloads page and click the 'Download PDF' button\",\n download_suffix=\"report.pdf\"\n)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.downloadFiles({\n url: \"https://example.com/downloads\",\n navigation_goal: \"Navigate to the downloads page and click the 'Download PDF' button\",\n download_suffix: \"report.pdf\"\n});\n"
+ }
+ ]
+ }
+ ]
}
},
- "/api/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}": {
- "get": {
+ "/v1/scripts": {
+ "post": {
"tags": [
- "agent"
+ "Scripts"
],
- "summary": "Get Workflow Schedule",
- "operationId": "get_workflow_schedule_api_v1_workflows__workflow_permanent_id__schedules__workflow_schedule_id__get",
+ "summary": "Create script",
+ "description": "Create a new script with optional files and metadata",
+ "operationId": "create_script_v1_scripts_post",
"parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "workflow_schedule_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Schedule Id"
- }
- },
{
"name": "x-api-key",
"in": "header",
@@ -4406,13 +2959,23 @@
"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/WorkflowScheduleResponse"
+ "$ref": "#/components/schemas/CreateScriptResponse"
}
}
}
@@ -4427,32 +2990,48 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "create_script"
},
- "put": {
+ "get": {
"tags": [
- "agent"
+ "Scripts"
],
- "summary": "Update Workflow Schedule",
- "operationId": "update_workflow_schedule_api_v1_workflows__workflow_permanent_id__schedules__workflow_schedule_id__put",
+ "summary": "Get all scripts",
+ "description": "Retrieves a paginated list of scripts for the current organization",
+ "operationId": "get_scripts_v1_scripts_get",
"parameters": [
{
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
+ "name": "page",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination",
+ "examples": [
+ 1
+ ],
+ "default": 1,
+ "title": "Page"
+ },
+ "description": "Page number for pagination"
},
{
- "name": "workflow_schedule_id",
- "in": "path",
- "required": true,
+ "name": "page_size",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "title": "Workflow Schedule Id"
- }
+ "type": "integer",
+ "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",
@@ -4473,23 +3052,17 @@
"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/WorkflowScheduleUpsertRequest"
- }
- }
- }
- },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowScheduleResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Script"
+ },
+ "title": "Response Get Scripts V1 Scripts Get"
}
}
}
@@ -4504,32 +3077,32 @@
}
}
}
- }
- },
- "delete": {
+ },
+ "x-fern-sdk-method-name": "get_scripts"
+ }
+ },
+ "/v1/scripts/{script_id}": {
+ "get": {
"tags": [
- "agent"
+ "Scripts"
],
- "summary": "Delete Workflow Schedule Route",
- "operationId": "delete_workflow_schedule_route_api_v1_workflows__workflow_permanent_id__schedules__workflow_schedule_id__delete",
+ "summary": "Get script by ID",
+ "description": "Retrieves a specific script by its ID",
+ "operationId": "get_script_v1_scripts__script_id__get",
"parameters": [
{
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "workflow_schedule_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Schedule Id"
- }
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4556,11 +3129,7 @@
"content": {
"application/json": {
"schema": {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- },
- "title": "Response Delete Workflow Schedule Route Api V1 Workflows Workflow Permanent Id Schedules Workflow Schedule Id Delete"
+ "$ref": "#/components/schemas/Script"
}
}
}
@@ -4575,34 +3144,32 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "get_script"
}
},
- "/api/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}/enable": {
+ "/v1/scripts/{script_id}/deploy": {
"post": {
"tags": [
- "agent"
+ "Scripts"
],
- "summary": "Enable Workflow Schedule",
- "operationId": "enable_workflow_schedule_api_v1_workflows__workflow_permanent_id__schedules__workflow_schedule_id__enable_post",
+ "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": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "workflow_schedule_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Schedule Id"
- }
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4623,13 +3190,23 @@
"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/WorkflowScheduleResponse"
+ "$ref": "#/components/schemas/CreateScriptResponse"
}
}
}
@@ -4644,34 +3221,32 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "deploy_script"
}
},
- "/api/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}/disable": {
+ "/v1/scripts/{script_id}/run": {
"post": {
"tags": [
- "agent"
+ "Scripts"
],
- "summary": "Disable Workflow Schedule",
- "operationId": "disable_workflow_schedule_api_v1_workflows__workflow_permanent_id__schedules__workflow_schedule_id__disable_post",
+ "summary": "Run script",
+ "description": "Run a script",
+ "operationId": "run_script_v1_scripts__script_id__run_post",
"parameters": [
{
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "workflow_schedule_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Schedule Id"
- }
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4697,9 +3272,7 @@
"description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/WorkflowScheduleResponse"
- }
+ "schema": {}
}
}
},
@@ -4823,41 +3396,6 @@
],
"title": "AWSSecretParameterYAML"
},
- "ActAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "ai_act",
- "title": "Type",
- "default": "ai_act"
- },
- "intention": {
- "type": "string",
- "title": "Intention",
- "description": "Natural language prompt for the action",
- "default": ""
- },
- "data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Data",
- "description": "Additional context data"
- }
- },
- "type": "object",
- "title": "ActAction",
- "description": "AI act action parameters."
- },
"Action": {
"properties": {
"action_type": {
@@ -6200,116 +4738,6 @@
],
"title": "AzureVaultCredentialParameterYAML"
},
- "BillingStateResponse": {
- "properties": {
- "billing_id": {
- "type": "string",
- "title": "Billing Id"
- },
- "organization_id": {
- "type": "string",
- "title": "Organization Id"
- },
- "plan_tier": {
- "$ref": "#/components/schemas/PlanTier"
- },
- "current_period_start": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Current Period Start"
- },
- "current_period_end": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Current Period End"
- },
- "included_credits_this_period": {
- "type": "integer",
- "title": "Included Credits This Period"
- },
- "credits_consumed_this_period": {
- "type": "integer",
- "title": "Credits Consumed This Period"
- },
- "cached_credits_consumed_this_period": {
- "type": "integer",
- "title": "Cached Credits Consumed This Period"
- },
- "overage_enabled": {
- "type": "boolean",
- "title": "Overage Enabled"
- },
- "browser_uptime_seconds_consumed": {
- "type": "integer",
- "title": "Browser Uptime Seconds Consumed"
- },
- "topup_credits_total": {
- "type": "integer",
- "title": "Topup Credits Total"
- },
- "topup_credits_used": {
- "type": "integer",
- "title": "Topup Credits Used"
- },
- "topup_credits_remaining": {
- "type": "integer",
- "title": "Topup Credits Remaining"
- },
- "credits_remaining": {
- "type": "integer",
- "title": "Credits Remaining"
- },
- "cancel_at_period_end": {
- "type": "boolean",
- "title": "Cancel At Period End",
- "default": false
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "Created At"
- },
- "modified_at": {
- "type": "string",
- "format": "date-time",
- "title": "Modified At"
- }
- },
- "type": "object",
- "required": [
- "billing_id",
- "organization_id",
- "plan_tier",
- "current_period_start",
- "current_period_end",
- "included_credits_this_period",
- "credits_consumed_this_period",
- "cached_credits_consumed_this_period",
- "overage_enabled",
- "browser_uptime_seconds_consumed",
- "topup_credits_total",
- "topup_credits_used",
- "topup_credits_remaining",
- "credits_remaining",
- "created_at",
- "modified_at"
- ],
- "title": "BillingStateResponse"
- },
"BitwardenCreditCardDataParameter": {
"properties": {
"parameter_type": {
@@ -7240,196 +5668,71 @@
{
"type": "null"
}
- ],
- "title": "Recordings",
- "description": "The list of video recordings from the browser session"
- },
- "started_at": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Started At",
- "description": "Timestamp when the session was started"
- },
- "completed_at": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Completed At",
- "description": "Timestamp when the session was completed"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "Created At",
- "description": "Timestamp when the session was created (the timestamp for the initial request)"
- },
- "modified_at": {
- "type": "string",
- "format": "date-time",
- "title": "Modified At",
- "description": "Timestamp when the session was last modified"
- },
- "deleted_at": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Deleted At",
- "description": "Timestamp when the session was deleted, if applicable"
- }
- },
- "type": "object",
- "required": [
- "browser_session_id",
- "organization_id",
- "created_at",
- "modified_at"
- ],
- "title": "BrowserSessionResponse",
- "description": "Response model for browser session information."
- },
- "ChangeTierRequest": {
- "properties": {
- "tier": {
- "$ref": "#/components/schemas/PlanTier"
- }
- },
- "type": "object",
- "required": [
- "tier"
- ],
- "title": "ChangeTierRequest"
- },
- "ChangeTierResponse": {
- "properties": {
- "status": {
- "type": "string",
- "title": "Status"
- },
- "tier": {
- "type": "string",
- "title": "Tier"
- },
- "redirect_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Redirect Url"
- }
- },
- "type": "object",
- "required": [
- "status",
- "tier"
- ],
- "title": "ChangeTierResponse"
- },
- "CheckoutSessionResponse": {
- "properties": {
- "id": {
- "type": "string",
- "title": "Id"
- },
- "url": {
- "type": "string",
- "title": "Url"
- }
- },
- "type": "object",
- "required": [
- "id",
- "url"
- ],
- "title": "CheckoutSessionResponse"
- },
- "CheckoutSubscriptionRequest": {
- "properties": {
- "tier": {
- "$ref": "#/components/schemas/PlanTier"
- }
- },
- "type": "object",
- "required": [
- "tier"
- ],
- "title": "CheckoutSubscriptionRequest"
- },
- "ClickAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "ai_click",
- "title": "Type",
- "default": "ai_click"
+ ],
+ "title": "Recordings",
+ "description": "The list of video recordings from the browser session"
},
- "selector": {
+ "started_at": {
"anyOf": [
{
- "type": "string"
+ "type": "string",
+ "format": "date-time"
},
{
"type": "null"
}
],
- "title": "Selector",
- "description": "CSS selector for the element",
- "default": ""
- },
- "intention": {
- "type": "string",
- "title": "Intention",
- "description": "The intention or goal of the click",
- "default": ""
+ "title": "Started At",
+ "description": "Timestamp when the session was started"
},
- "data": {
+ "completed_at": {
"anyOf": [
{
- "type": "string"
+ "type": "string",
+ "format": "date-time"
},
{
- "additionalProperties": true,
- "type": "object"
+ "type": "null"
+ }
+ ],
+ "title": "Completed At",
+ "description": "Timestamp when the session was completed"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "Created At",
+ "description": "Timestamp when the session was created (the timestamp for the initial request)"
+ },
+ "modified_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "Modified At",
+ "description": "Timestamp when the session was last modified"
+ },
+ "deleted_at": {
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "date-time"
},
{
"type": "null"
}
],
- "title": "Data",
- "description": "Additional context data"
- },
- "timeout": {
- "type": "number",
- "title": "Timeout",
- "description": "Timeout in milliseconds",
- "default": 10000
+ "title": "Deleted At",
+ "description": "Timestamp when the session was deleted, if applicable"
}
},
"type": "object",
- "title": "ClickAction",
- "description": "Click action parameters."
+ "required": [
+ "browser_session_id",
+ "organization_id",
+ "created_at",
+ "modified_at"
+ ],
+ "title": "BrowserSessionResponse",
+ "description": "Response model for browser session information."
},
"ClickContext": {
"properties": {
@@ -8077,6 +6380,22 @@
"username": "[email protected]"
}
]
+ },
+ "vault_type": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/CredentialVaultType"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.",
+ "examples": [
+ "custom",
+ "azure_vault",
+ "bitwarden"
+ ]
}
},
"type": "object",
@@ -8348,6 +6667,17 @@
"Amazon Login"
]
},
+ "vault_type": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/CredentialVaultType"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Which vault stores this credential (e.g., 'bitwarden', 'azure_vault', 'custom')"
+ },
"browser_profile_id": {
"anyOf": [
{
@@ -8383,6 +6713,18 @@
],
"title": "User Context",
"description": "User-provided context describing the login sequence (e.g., 'click SSO button first')"
+ },
+ "save_browser_session_intent": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Save Browser Session Intent",
+ "description": "Whether the user intends to save a browser session, regardless of test outcome"
}
},
"type": "object",
@@ -8405,6 +6747,15 @@
"title": "CredentialType",
"description": "Type of credential stored in the system."
},
+ "CredentialVaultType": {
+ "type": "string",
+ "enum": [
+ "bitwarden",
+ "azure_vault",
+ "custom"
+ ],
+ "title": "CredentialVaultType"
+ },
"CreditCardCredentialResponse": {
"properties": {
"last_four": {
@@ -8772,88 +7123,6 @@
],
"title": "Extensions"
},
- "ExtractAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "extract",
- "title": "Type",
- "default": "extract"
- },
- "prompt": {
- "type": "string",
- "title": "Prompt",
- "description": "Extraction prompt",
- "default": ""
- },
- "extract_schema": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "items": {},
- "type": "array"
- },
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Extract Schema",
- "description": "Schema for extraction"
- },
- "error_code_mapping": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Error Code Mapping",
- "description": "Error code mapping for extraction"
- },
- "intention": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Intention",
- "description": "The intention or goal of the extraction"
- },
- "data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Data",
- "description": "Additional context data"
- }
- },
- "type": "object",
- "title": "ExtractAction",
- "description": "Extract data action parameters."
- },
"ExtractionBlock": {
"properties": {
"label": {
@@ -10347,135 +8616,15 @@
"azure_folder_path": {
"anyOf": [
{
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Azure Folder Path"
- },
- "path": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Path"
- }
- },
- "type": "object",
- "required": [
- "label"
- ],
- "title": "FileUploadBlockYAML"
- },
- "Folder": {
- "properties": {
- "title": {
- "type": "string",
- "maxLength": 255,
- "minLength": 1,
- "title": "Title",
- "description": "Folder title"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description",
- "description": "Folder description"
- },
- "folder_id": {
- "type": "string",
- "title": "Folder Id"
- },
- "organization_id": {
- "type": "string",
- "title": "Organization Id"
- },
- "workflow_count": {
- "type": "integer",
- "title": "Workflow Count",
- "description": "Number of workflows in this folder",
- "default": 0
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "Created At"
- },
- "modified_at": {
- "type": "string",
- "format": "date-time",
- "title": "Modified At"
- }
- },
- "type": "object",
- "required": [
- "title",
- "folder_id",
- "organization_id",
- "created_at",
- "modified_at"
- ],
- "title": "Folder",
- "description": "Response model for a folder"
- },
- "FolderCreate": {
- "properties": {
- "title": {
- "type": "string",
- "maxLength": 255,
- "minLength": 1,
- "title": "Title",
- "description": "Folder title"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description",
- "description": "Folder description"
- }
- },
- "type": "object",
- "required": [
- "title"
- ],
- "title": "FolderCreate",
- "description": "Request model for creating a folder"
- },
- "FolderUpdate": {
- "properties": {
- "title": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 255,
- "minLength": 1
+ "type": "string"
},
{
"type": "null"
}
],
- "title": "Title",
- "description": "Folder title"
+ "title": "Azure Folder Path"
},
- "description": {
+ "path": {
"anyOf": [
{
"type": "string"
@@ -10484,13 +8633,14 @@
"type": "null"
}
],
- "title": "Description",
- "description": "Folder description"
+ "title": "Path"
}
},
"type": "object",
- "title": "FolderUpdate",
- "description": "Request model for updating a folder"
+ "required": [
+ "label"
+ ],
+ "title": "FileUploadBlockYAML"
},
"ForLoopBlock": {
"properties": {
@@ -11888,97 +10038,6 @@
"type": "object",
"title": "InputOrSelectContext"
},
- "InputTextAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "ai_input_text",
- "title": "Type",
- "default": "ai_input_text"
- },
- "selector": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Selector",
- "description": "CSS selector for the element",
- "default": ""
- },
- "value": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Value",
- "description": "Value to input",
- "default": ""
- },
- "intention": {
- "type": "string",
- "title": "Intention",
- "description": "The intention or goal of the input",
- "default": ""
- },
- "data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Data",
- "description": "Additional context data"
- },
- "totp_identifier": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Totp Identifier",
- "description": "TOTP identifier for input_text actions"
- },
- "totp_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Totp Url",
- "description": "TOTP URL for input_text actions"
- },
- "timeout": {
- "type": "number",
- "title": "Timeout",
- "description": "Timeout in milliseconds",
- "default": 10000
- }
- },
- "type": "object",
- "title": "InputTextAction",
- "description": "Input text action parameters."
- },
"JinjaBranchCriteria": {
"properties": {
"criteria_type": {
@@ -12010,25 +10069,6 @@
"title": "JinjaBranchCriteria",
"description": "Jinja2-templated branch criteria (only supported criteria type for now)."
},
- "LocateElementAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "locate_element",
- "title": "Type",
- "default": "locate_element"
- },
- "prompt": {
- "type": "string",
- "title": "Prompt",
- "description": "Natural language prompt to locate an element",
- "default": ""
- }
- },
- "type": "object",
- "title": "LocateElementAction",
- "description": "Locate element action parameters."
- },
"LoginBlock": {
"properties": {
"label": {
@@ -13524,138 +11564,6 @@
],
"title": "OnePasswordCredentialParameterYAML"
},
- "OrganizationScheduleItem": {
- "properties": {
- "workflow_schedule_id": {
- "type": "string",
- "title": "Workflow Schedule Id"
- },
- "organization_id": {
- "type": "string",
- "title": "Organization Id"
- },
- "workflow_permanent_id": {
- "type": "string",
- "title": "Workflow Permanent Id"
- },
- "workflow_title": {
- "type": "string",
- "title": "Workflow Title"
- },
- "cron_expression": {
- "type": "string",
- "title": "Cron Expression"
- },
- "timezone": {
- "type": "string",
- "title": "Timezone"
- },
- "enabled": {
- "type": "boolean",
- "title": "Enabled"
- },
- "parameters": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Parameters"
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Name"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description"
- },
- "next_run": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Next Run"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "Created At"
- },
- "modified_at": {
- "type": "string",
- "format": "date-time",
- "title": "Modified At"
- }
- },
- "type": "object",
- "required": [
- "workflow_schedule_id",
- "organization_id",
- "workflow_permanent_id",
- "workflow_title",
- "cron_expression",
- "timezone",
- "enabled",
- "created_at",
- "modified_at"
- ],
- "title": "OrganizationScheduleItem"
- },
- "OrganizationScheduleListResponse": {
- "properties": {
- "schedules": {
- "items": {
- "$ref": "#/components/schemas/OrganizationScheduleItem"
- },
- "type": "array",
- "title": "Schedules"
- },
- "total_count": {
- "type": "integer",
- "title": "Total Count"
- },
- "page": {
- "type": "integer",
- "title": "Page"
- },
- "page_size": {
- "type": "integer",
- "title": "Page Size"
- }
- },
- "type": "object",
- "required": [
- "schedules",
- "total_count",
- "page",
- "page_size"
- ],
- "title": "OrganizationScheduleListResponse"
- },
"OutputParameter": {
"properties": {
"parameter_type": {
@@ -13952,7 +11860,7 @@
"username"
],
"title": "PasswordCredentialResponse",
- "description": "Response model for password credentials — non-sensitive fields only.\n\nSECURITY: Must NEVER include password, TOTP secret, or TOTP identifier."
+ "description": "Response model for password credentials — non-sensitive fields only.\n\nSECURITY: Must NEVER include password or TOTP secret."
},
"PersistentBrowserType": {
"type": "string",
@@ -13963,30 +11871,6 @@
],
"title": "PersistentBrowserType"
},
- "PlanTier": {
- "type": "string",
- "enum": [
- "free",
- "hobby",
- "pro",
- "enterprise"
- ],
- "title": "PlanTier",
- "description": "Self-serve subscription tiers. Enterprise customers use manual billing (bypass)."
- },
- "PortalSessionResponse": {
- "properties": {
- "url": {
- "type": "string",
- "title": "Url"
- }
- },
- "type": "object",
- "required": [
- "url"
- ],
- "title": "PortalSessionResponse"
- },
"PrintPageBlock": {
"properties": {
"label": {
@@ -14214,75 +12098,28 @@
"print_background": {
"type": "boolean",
"title": "Print Background",
- "default": true
- },
- "parameter_keys": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "title": "Parameter Keys"
- }
- },
- "type": "object",
- "required": [
- "label"
- ],
- "title": "PrintPageBlockYAML"
- },
- "PromptAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "prompt",
- "title": "Type",
- "default": "prompt"
- },
- "prompt": {
- "type": "string",
- "title": "Prompt",
- "description": "The prompt to send to the LLM"
- },
- "response_schema": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Response Schema",
- "description": "Optional JSON schema to structure the response"
+ "default": true
},
- "model": {
+ "parameter_keys": {
"anyOf": [
{
- "additionalProperties": true,
- "type": "object"
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
{
"type": "null"
}
],
- "title": "Model",
- "description": "Optional model configuration"
+ "title": "Parameter Keys"
}
},
"type": "object",
"required": [
- "prompt"
+ "label"
],
- "title": "PromptAction",
- "description": "Prompt action parameters."
+ "title": "PrintPageBlockYAML"
},
"PromptBranchCriteria": {
"properties": {
@@ -14377,130 +12214,6 @@
],
"title": "RunEngine"
},
- "RunSdkActionRequest": {
- "properties": {
- "url": {
- "type": "string",
- "title": "Url",
- "description": "The URL where the action should be executed"
- },
- "browser_session_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Browser Session Id",
- "description": "The browser session ID"
- },
- "browser_address": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Browser Address",
- "description": "The browser address"
- },
- "workflow_run_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Workflow Run Id",
- "description": "Optional workflow run ID to continue an existing workflow run"
- },
- "action": {
- "oneOf": [
- {
- "$ref": "#/components/schemas/ClickAction"
- },
- {
- "$ref": "#/components/schemas/InputTextAction"
- },
- {
- "$ref": "#/components/schemas/SelectOptionAction"
- },
- {
- "$ref": "#/components/schemas/UploadFileAction"
- },
- {
- "$ref": "#/components/schemas/ActAction"
- },
- {
- "$ref": "#/components/schemas/ExtractAction"
- },
- {
- "$ref": "#/components/schemas/LocateElementAction"
- },
- {
- "$ref": "#/components/schemas/ValidateAction"
- },
- {
- "$ref": "#/components/schemas/PromptAction"
- }
- ],
- "title": "Action",
- "description": "The action to execute with its specific parameters",
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "ai_act": "#/components/schemas/ActAction",
- "ai_click": "#/components/schemas/ClickAction",
- "ai_input_text": "#/components/schemas/InputTextAction",
- "ai_select_option": "#/components/schemas/SelectOptionAction",
- "ai_upload_file": "#/components/schemas/UploadFileAction",
- "extract": "#/components/schemas/ExtractAction",
- "locate_element": "#/components/schemas/LocateElementAction",
- "prompt": "#/components/schemas/PromptAction",
- "validate": "#/components/schemas/ValidateAction"
- }
- }
- }
- },
- "type": "object",
- "required": [
- "url",
- "action"
- ],
- "title": "RunSdkActionRequest",
- "description": "Request to run a single SDK action."
- },
- "RunSdkActionResponse": {
- "properties": {
- "workflow_run_id": {
- "type": "string",
- "title": "Workflow Run Id",
- "description": "The workflow run ID used for this action"
- },
- "result": {
- "anyOf": [
- {},
- {
- "type": "null"
- }
- ],
- "title": "Result",
- "description": "The result from the action (e.g., selector, value, extracted data)"
- }
- },
- "type": "object",
- "required": [
- "workflow_run_id"
- ],
- "title": "RunSdkActionResponse",
- "description": "Response from running an SDK action."
- },
"RunStatus": {
"type": "string",
"enum": [
@@ -14727,73 +12440,6 @@
"type": "object",
"title": "SelectOption"
},
- "SelectOptionAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "ai_select_option",
- "title": "Type",
- "default": "ai_select_option"
- },
- "selector": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Selector",
- "description": "CSS selector for the element",
- "default": ""
- },
- "value": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Value",
- "description": "Value to select",
- "default": ""
- },
- "intention": {
- "type": "string",
- "title": "Intention",
- "description": "The intention or goal of the selection",
- "default": ""
- },
- "data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Data",
- "description": "Additional context data"
- },
- "timeout": {
- "type": "number",
- "title": "Timeout",
- "description": "Timeout in milliseconds",
- "default": 10000
- }
- },
- "type": "object",
- "title": "SelectOptionAction",
- "description": "Select option action parameters."
- },
"SendEmailBlock": {
"properties": {
"label": {
@@ -17072,139 +14718,53 @@
},
"type": "object",
"required": [
- "thought_id",
- "task_id",
- "organization_id",
- "created_at",
- "modified_at"
- ],
- "title": "Thought"
- },
- "ThoughtScenario": {
- "type": "string",
- "enum": [
- "generate_plan",
- "user_goal_check",
- "failure_describe",
- "summarization",
- "generate_metadata",
- "extract_loop_values",
- "generate_task_in_loop",
- "generate_general_task",
- "termination"
- ],
- "title": "ThoughtScenario",
- "description": "Scenario in which a thought was generated.\n\nNote: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values\ncan be added without database migrations. See observer_thoughts.observer_thought_scenario column."
- },
- "ThoughtType": {
- "type": "string",
- "enum": [
- "plan",
- "metadata",
- "user_goal_check",
- "internal_plan",
- "failure_describe",
- "termination"
- ],
- "title": "ThoughtType",
- "description": "Type of thought recorded during task execution.\n\nNote: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values\ncan be added without database migrations. See observer_thoughts.observer_thought_type column."
- },
- "TotpType": {
- "type": "string",
- "enum": [
- "authenticator",
- "email",
- "text",
- "none"
- ],
- "title": "TotpType",
- "description": "Type of 2FA/TOTP method used."
- },
- "UpdateWorkflowFolderRequest": {
- "properties": {
- "folder_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Folder Id",
- "description": "Folder ID to assign workflow to. Set to null to remove from folder."
- }
- },
- "type": "object",
- "title": "UpdateWorkflowFolderRequest",
- "description": "Request model for updating a workflow's folder assignment"
- },
- "UploadFileAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "ai_upload_file",
- "title": "Type",
- "default": "ai_upload_file"
- },
- "selector": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Selector",
- "description": "CSS selector for the element",
- "default": ""
- },
- "file_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "File Url",
- "description": "File URL for upload",
- "default": ""
- },
- "intention": {
- "type": "string",
- "title": "Intention",
- "description": "The intention or goal of the upload",
- "default": ""
- },
- "data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Data",
- "description": "Additional context data"
- },
- "timeout": {
- "type": "number",
- "title": "Timeout",
- "description": "Timeout in milliseconds",
- "default": 10000
- }
- },
- "type": "object",
- "title": "UploadFileAction",
- "description": "Upload file action parameters."
+ "thought_id",
+ "task_id",
+ "organization_id",
+ "created_at",
+ "modified_at"
+ ],
+ "title": "Thought"
+ },
+ "ThoughtScenario": {
+ "type": "string",
+ "enum": [
+ "generate_plan",
+ "user_goal_check",
+ "failure_describe",
+ "summarization",
+ "generate_metadata",
+ "extract_loop_values",
+ "generate_task_in_loop",
+ "generate_general_task",
+ "termination"
+ ],
+ "title": "ThoughtScenario",
+ "description": "Scenario in which a thought was generated.\n\nNote: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values\ncan be added without database migrations. See observer_thoughts.observer_thought_scenario column."
+ },
+ "ThoughtType": {
+ "type": "string",
+ "enum": [
+ "plan",
+ "metadata",
+ "user_goal_check",
+ "internal_plan",
+ "failure_describe",
+ "termination"
+ ],
+ "title": "ThoughtType",
+ "description": "Type of thought recorded during task execution.\n\nNote: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values\ncan be added without database migrations. See observer_thoughts.observer_thought_type column."
+ },
+ "TotpType": {
+ "type": "string",
+ "enum": [
+ "authenticator",
+ "email",
+ "text",
+ "none"
+ ],
+ "title": "TotpType",
+ "description": "Type of 2FA/TOTP method used."
},
"UploadFileResponse": {
"properties": {
@@ -17741,40 +15301,6 @@
],
"title": "UserDefinedError"
},
- "ValidateAction": {
- "properties": {
- "type": {
- "type": "string",
- "const": "validate",
- "title": "Type",
- "default": "validate"
- },
- "prompt": {
- "type": "string",
- "title": "Prompt",
- "description": "Validation criteria or condition to check"
- },
- "model": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Model",
- "description": "Optional model configuration"
- }
- },
- "type": "object",
- "required": [
- "prompt"
- ],
- "title": "ValidateAction",
- "description": "Validate action parameters."
- },
"ValidationBlock": {
"properties": {
"label": {
@@ -18581,6 +16107,17 @@
"title": "Adaptive Caching",
"default": false
},
+ "code_version": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code Version"
+ },
"generate_script_on_terminal": {
"type": "boolean",
"title": "Generate Script On Terminal",
@@ -18822,6 +16359,19 @@
"title": "Adaptive Caching",
"default": false
},
+ "code_version": {
+ "anyOf": [
+ {
+ "type": "integer",
+ "maximum": 2,
+ "minimum": 1
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code Version"
+ },
"generate_script_on_terminal": {
"type": "boolean",
"title": "Generate Script On Terminal",
@@ -20414,11 +17964,10 @@
}
],
"title": "Run With",
- "description": "Whether to run the workflow with agent, code, or code_v2 (adaptive caching).",
+ "description": "Whether to run the workflow with agent or code.",
"examples": [
"agent",
- "code",
- "code_v2"
+ "code"
]
}
},
@@ -20698,11 +18247,10 @@
}
],
"title": "Run With",
- "description": "Whether the workflow run was executed with agent, code, or code_v2 (adaptive caching)",
+ "description": "Whether the workflow run was executed with agent or code",
"examples": [
"agent",
- "code",
- "code_v2"
+ "code"
]
},
"ai_fallback": {
@@ -20823,206 +18371,6 @@
],
"title": "WorkflowRunTriggerType"
},
- "WorkflowSchedule": {
- "properties": {
- "workflow_schedule_id": {
- "type": "string",
- "title": "Workflow Schedule Id"
- },
- "organization_id": {
- "type": "string",
- "title": "Organization Id"
- },
- "workflow_permanent_id": {
- "type": "string",
- "title": "Workflow Permanent Id"
- },
- "cron_expression": {
- "type": "string",
- "title": "Cron Expression"
- },
- "timezone": {
- "type": "string",
- "title": "Timezone"
- },
- "enabled": {
- "type": "boolean",
- "title": "Enabled"
- },
- "parameters": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Parameters"
- },
- "temporal_schedule_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Temporal Schedule Id"
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Name"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "title": "Created At"
- },
- "modified_at": {
- "type": "string",
- "format": "date-time",
- "title": "Modified At"
- },
- "deleted_at": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "title": "Deleted At"
- }
- },
- "type": "object",
- "required": [
- "workflow_schedule_id",
- "organization_id",
- "workflow_permanent_id",
- "cron_expression",
- "timezone",
- "enabled",
- "created_at",
- "modified_at"
- ],
- "title": "WorkflowSchedule"
- },
- "WorkflowScheduleListResponse": {
- "properties": {
- "schedules": {
- "items": {
- "$ref": "#/components/schemas/WorkflowSchedule"
- },
- "type": "array",
- "title": "Schedules"
- }
- },
- "type": "object",
- "required": [
- "schedules"
- ],
- "title": "WorkflowScheduleListResponse"
- },
- "WorkflowScheduleResponse": {
- "properties": {
- "schedule": {
- "$ref": "#/components/schemas/WorkflowSchedule"
- },
- "next_runs": {
- "items": {
- "type": "string",
- "format": "date-time"
- },
- "type": "array",
- "title": "Next Runs"
- }
- },
- "type": "object",
- "required": [
- "schedule"
- ],
- "title": "WorkflowScheduleResponse"
- },
- "WorkflowScheduleUpsertRequest": {
- "properties": {
- "cron_expression": {
- "type": "string",
- "title": "Cron Expression"
- },
- "timezone": {
- "type": "string",
- "title": "Timezone"
- },
- "enabled": {
- "type": "boolean",
- "title": "Enabled",
- "default": true
- },
- "parameters": {
- "anyOf": [
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "title": "Parameters"
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Name"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description"
- }
- },
- "type": "object",
- "required": [
- "cron_expression",
- "timezone"
- ],
- "title": "WorkflowScheduleUpsertRequest"
- },
"WorkflowStatus": {
"type": "string",
"enum": [