Skip to content

Automate browser based workflows with AI

Update API specifications with fern api update (#5104)

Shuchang Zheng0b7009ef1446
diff --git a/fern/openapi/skyvern_openapi.json b/fern/openapi/skyvern_openapi.json
index 12cbdad9e..12223fa7c 100644
--- a/fern/openapi/skyvern_openapi.json
+++ b/fern/openapi/skyvern_openapi.json
@@ -871,24 +871,15 @@
]
}
},
- "/v1/artifacts/{artifact_id}": {
- "get": {
+ "/v1/folders": {
+ "post": {
"tags": [
- "Artifacts"
+ "Workflow Folders"
],
- "summary": "Get an artifact",
- "description": "Get an artifact",
- "operationId": "get_artifact_v1_artifacts__artifact_id__get",
+ "summary": "Create folder",
+ "description": "Create a new folder to organize workflows",
+ "operationId": "create_folder_v1_folders_post",
"parameters": [
- {
- "name": "artifact_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Artifact Id"
- }
- },
{
"name": "x-api-key",
"in": "header",
@@ -908,19 +899,29 @@
"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"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved artifact",
+ "description": "Successfully created folder",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Artifact"
+ "$ref": "#/components/schemas/Folder"
}
}
}
},
- "404": {
- "description": "Artifact not found"
+ "400": {
+ "description": "Invalid request"
},
"422": {
"description": "Validation Error",
@@ -933,47 +934,60 @@
}
}
},
- "x-fern-sdk-method-name": "get_artifact"
- }
- },
- "/v1/runs/{run_id}/artifacts": {
+ "x-fern-sdk-method-name": "create_folder"
+ },
"get": {
"tags": [
- "Artifacts"
+ "Workflow Folders"
],
- "summary": "Get artifacts for a run",
- "description": "Get artifacts for a run",
- "operationId": "get_run_artifacts_v1_runs__run_id__artifacts_get",
+ "summary": "Get folders",
+ "description": "Get all folders for the organization",
+ "operationId": "get_folders_v1_folders_get",
"parameters": [
{
- "name": "run_id",
- "in": "path",
- "required": true,
+ "name": "page",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "description": "The id of the task run or the workflow run.",
- "title": "Run Id"
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number",
+ "default": 1,
+ "title": "Page"
},
- "description": "The id of the task run or the workflow run."
+ "description": "Page number"
},
{
- "name": "artifact_type",
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "maximum": 500,
+ "minimum": 1,
+ "description": "Number of folders per page",
+ "default": 100,
+ "title": "Page Size"
+ },
+ "description": "Number of folders per page"
+ },
+ {
+ "name": "search",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/ArtifactType"
- }
+ "type": "string"
},
{
"type": "null"
}
],
- "title": "Artifact Type"
- }
+ "description": "Search folders by title or description",
+ "title": "Search"
+ },
+ "description": "Search folders by title or description"
},
{
"name": "x-api-key",
@@ -996,15 +1010,15 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved folders",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Artifact"
+ "$ref": "#/components/schemas/Folder"
},
- "title": "Response Get Run Artifacts V1 Runs Run Id Artifacts Get"
+ "title": "Response Get Folders V1 Folders Get"
}
}
}
@@ -1020,33 +1034,31 @@
}
}
},
- "x-fern-sdk-method-name": "get_run_artifacts"
+ "x-fern-sdk-method-name": "get_folders"
}
},
- "/v1/runs/{run_id}/retry_webhook": {
- "post": {
+ "/v1/folders/{folder_id}": {
+ "get": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Workflow Folders"
],
- "summary": "Retry run webhook",
- "description": "Retry sending the webhook for a run",
- "operationId": "retry_run_webhook_v1_runs__run_id__retry_webhook_post",
+ "summary": "Get folder",
+ "description": "Get a specific folder by ID",
+ "operationId": "get_folder_v1_folders__folder_id__get",
"parameters": [
{
- "name": "run_id",
+ "name": "folder_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The id of the task run or the workflow run.",
+ "description": "Folder ID",
"examples": [
- "tsk_123",
- "wr_123"
+ "fld_123"
],
- "title": "Run Id"
+ "title": "Folder Id"
},
- "description": "The id of the task run or the workflow run."
+ "description": "Folder ID"
},
{
"name": "x-api-key",
@@ -1067,32 +1079,20 @@
"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": "Successful Response",
+ "description": "Successfully retrieved folder",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/Folder"
+ }
}
}
},
+ "404": {
+ "description": "Folder not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -1104,47 +1104,29 @@
}
}
},
- "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": {
+ "x-fern-sdk-method-name": "get_folder"
+ },
+ "put": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Workflow Folders"
],
- "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",
+ "summary": "Update folder",
+ "description": "Update a folder's title or description",
+ "operationId": "update_folder_v1_folders__folder_id__put",
"parameters": [
{
- "name": "run_id",
+ "name": "folder_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The id of the workflow run or task_v2 run.",
+ "description": "Folder ID",
"examples": [
- "wr_123",
- "tsk_v2_123"
+ "fld_123"
],
- "title": "Run Id"
+ "title": "Folder Id"
},
- "description": "The id of the workflow run or task_v2 run."
+ "description": "Folder ID"
},
{
"name": "x-api-key",
@@ -1165,26 +1147,29 @@
"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 retrieved run timeline",
+ "description": "Successfully updated folder",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRunTimeline"
- },
- "title": "Response Get Run Timeline V1 Runs Run Id Timeline Get"
+ "$ref": "#/components/schemas/Folder"
}
}
}
},
- "400": {
- "description": "Timeline not available for this run type"
- },
"404": {
- "description": "Run not found"
+ "description": "Folder not found"
},
"422": {
"description": "Validation Error",
@@ -1197,126 +1182,113 @@
}
}
},
- "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": {
+ "x-fern-sdk-method-name": "update_folder"
+ },
+ "delete": {
"tags": [
- "Workflow Runs"
+ "Workflow Folders"
],
- "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 \u2014 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\u2026`) |\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` \u2014 only failed runs\n- `?status=failed&error_code=LOGIN_FAILED` \u2014 failed runs **and** have a LOGIN_FAILED error\n- `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` \u2014 all three conditions must match",
- "operationId": "get_workflow_runs_v1_workflows_runs_get",
+ "summary": "Delete folder",
+ "description": "Delete a folder. Optionally delete all workflows in the folder.",
+ "operationId": "delete_folder_v1_folders__folder_id__delete",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
+ "name": "folder_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number for pagination.",
- "default": 1,
- "title": "Page"
+ "type": "string",
+ "description": "Folder ID",
+ "examples": [
+ "fld_123"
+ ],
+ "title": "Folder Id"
},
- "description": "Page number for pagination."
+ "description": "Folder ID"
},
{
- "name": "page_size",
+ "name": "delete_workflows",
"in": "query",
"required": false,
"schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of runs to return per page.",
- "default": 10,
- "title": "Page Size"
+ "type": "boolean",
+ "description": "If true, also delete all workflows in this folder",
+ "default": false,
+ "title": "Delete Workflows"
},
- "description": "Number of runs to return per page."
+ "description": "If true, also delete all workflows in this folder"
},
{
- "name": "status",
- "in": "query",
+ "name": "x-api-key",
+ "in": "header",
"required": false,
"schema": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRunStatus"
- }
+ "type": "string"
},
{
"type": "null"
}
],
- "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.",
+ "title": "X-Api-Key"
},
- "description": "Filter by one or more run statuses."
- },
- {
- "name": "search_key",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
+ "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"
}
- ],
- "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."
+ }
+ }
+ },
+ "404": {
+ "description": "Folder not found"
},
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "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": [
{
- "name": "error_code",
- "in": "query",
- "required": false,
+ "name": "workflow_permanent_id",
+ "in": "path",
+ "required": true,
"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.",
+ "type": "string",
+ "description": "Workflow permanent ID",
"examples": [
- "INVALID_CREDENTIALS",
- "LOGIN_FAILED",
- "CAPTCHA_DETECTED"
+ "wpid_123"
],
- "title": "Error Code"
+ "title": "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."
+ "description": "Workflow permanent ID"
},
{
"name": "x-api-key",
@@ -1337,21 +1309,33 @@
"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": "Successful Response",
+ "description": "Successfully updated workflow folder",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRun"
- },
- "title": "Response Get Workflow Runs V1 Workflows Runs Get"
+ "$ref": "#/components/schemas/Workflow"
}
}
}
},
+ "400": {
+ "description": "Folder not found"
+ },
+ "404": {
+ "description": "Workflow not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -1363,50 +1347,25 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow_runs"
+ "x-fern-sdk-method-name": "update_workflow_folder"
}
},
- "/v1/workflows/{workflow_permanent_id}": {
+ "/v1/artifacts/{artifact_id}": {
"get": {
"tags": [
- "Workflows"
+ "Artifacts"
],
- "summary": "Get Workflow",
- "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
+ "summary": "Get an artifact",
+ "description": "Get an artifact",
+ "operationId": "get_artifact_v1_artifacts__artifact_id__get",
"parameters": [
{
- "name": "workflow_permanent_id",
+ "name": "artifact_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"
+ "title": "Artifact Id"
}
},
{
@@ -1430,15 +1389,18 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved artifact",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Workflow"
+ "$ref": "#/components/schemas/Artifact"
}
}
}
},
+ "404": {
+ "description": "Artifact not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -1450,35 +1412,46 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow"
+ "x-fern-sdk-method-name": "get_artifact"
}
},
- "/v1/workflows/{workflow_permanent_id}/versions": {
+ "/v1/runs/{run_id}/artifacts": {
"get": {
"tags": [
- "Workflows"
+ "Artifacts"
],
- "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",
+ "summary": "Get artifacts for a run",
+ "description": "Get artifacts for a run",
+ "operationId": "get_run_artifacts_v1_runs__run_id__artifacts_get",
"parameters": [
{
- "name": "workflow_permanent_id",
+ "name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Permanent Id"
- }
+ "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": "template",
+ "name": "artifact_type",
"in": "query",
"required": false,
"schema": {
- "type": "boolean",
- "default": false,
- "title": "Template"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ArtifactType"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Artifact Type"
}
},
{
@@ -1508,9 +1481,9 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Workflow"
+ "$ref": "#/components/schemas/Artifact"
},
- "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
+ "title": "Response Get Run Artifacts V1 Runs Run Id Artifacts Get"
}
}
}
@@ -1526,80 +1499,34 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow_versions"
+ "x-fern-sdk-method-name": "get_run_artifacts"
}
},
- "/v1/upload_file": {
+ "/v1/runs/{run_id}/retry_webhook": {
"post": {
"tags": [
- "Files"
+ "Agent",
+ "Workflow Runs"
],
- "summary": "Upload File",
- "operationId": "upload_file_v1_upload_file_post",
+ "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": "x-api-key",
- "in": "header",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "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"
],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
+ "title": "Run Id"
},
- "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"
- }
- }
- }
+ "description": "The id of the task run or the workflow run."
},
- "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",
@@ -1620,32 +1547,31 @@
}
],
"requestBody": {
- "required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateBrowserProfileRequest"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/RetryRunWebhookRequest"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Request"
}
}
}
},
"responses": {
"200": {
- "description": "Successfully created browser profile",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/BrowserProfile"
- }
+ "schema": {}
}
}
},
- "400": {
- "description": "Invalid request - missing source or source not found"
- },
- "409": {
- "description": "Browser profile name already exists"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1657,41 +1583,47 @@
}
}
},
- "x-fern-sdk-method-name": "create_browser_profile",
+ "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\")\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"
+ "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\" });\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"
+ "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": [
- "Browser Profiles"
+ "Agent",
+ "Workflow Runs"
],
- "summary": "List browser profiles",
- "description": "Get all browser profiles for the organization",
- "operationId": "list_browser_profiles_v1_browser_profiles_get",
+ "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": "include_deleted",
- "in": "query",
- "required": false,
+ "name": "run_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean",
- "description": "Include deleted browser profiles",
- "default": false,
- "title": "Include Deleted"
+ "type": "string",
+ "description": "The id of the workflow run or task_v2 run.",
+ "examples": [
+ "wr_123",
+ "tsk_v2_123"
+ ],
+ "title": "Run Id"
},
- "description": "Include deleted browser profiles"
+ "description": "The id of the workflow run or task_v2 run."
},
{
"name": "x-api-key",
@@ -1714,19 +1646,25 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved browser profiles",
+ "description": "Successfully retrieved run timeline",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/BrowserProfile"
+ "$ref": "#/components/schemas/WorkflowRunTimeline"
},
- "title": "Response List Browser Profiles V1 Browser Profiles Get"
+ "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": {
@@ -1738,45 +1676,126 @@
}
}
},
- "x-fern-sdk-method-name": "list_browser_profiles",
+ "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\")\nbrowser_profiles = await skyvern.browser_profiles.list_browser_profiles()\nprint(browser_profiles)\n"
+ "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\" });\nconst browserProfiles = await skyvern.browserProfiles.listBrowserProfiles();\nconsole.log(browserProfiles);\n"
+ "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/browser_profiles/{profile_id}": {
+ "/v1/workflows/runs": {
"get": {
"tags": [
- "Browser Profiles"
+ "Workflow Runs"
],
- "summary": "Get browser profile",
- "description": "Get a specific browser profile by ID",
- "operationId": "get_browser_profile_v1_browser_profiles__profile_id__get",
+ "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": "profile_id",
- "in": "path",
- "required": true,
+ "name": "page",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "description": "The ID of the browser profile. browser_profile_id starts with `bp_`",
+ "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": [
- "bp_123456"
+ "login_url",
+ "credential_value",
+ "wr_abc123"
],
- "title": "Profile Id"
+ "title": "Search Key"
},
- "description": "The ID of the browser profile. browser_profile_id starts with `bp_`"
+ "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",
@@ -1799,18 +1818,19 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved browser profile",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserProfile"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRun"
+ },
+ "title": "Response Get Workflow Runs V1 Workflows Runs Get"
}
}
}
},
- "404": {
- "description": "Browser profile not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1822,107 +1842,52 @@
}
}
},
- "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": {
+ "x-fern-sdk-method-name": "get_workflow_runs"
+ }
+ },
+ "/v1/workflows/{workflow_permanent_id}": {
+ "get": {
"tags": [
- "Browser Profiles"
+ "Workflows"
],
- "summary": "Delete browser profile",
- "description": "Delete a browser profile (soft delete)",
- "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
+ "summary": "Get Workflow",
+ "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
"parameters": [
{
- "name": "profile_id",
+ "name": "workflow_permanent_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_`"
+ "title": "Workflow Permanent Id"
+ }
},
{
- "name": "x-api-key",
- "in": "header",
+ "name": "version",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"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"
- }
- }
+ "title": "Version"
}
- }
- },
- "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": "template",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false,
+ "title": "Template"
+ }
+ },
{
"name": "x-api-key",
"in": "header",
@@ -1942,35 +1907,17 @@
"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",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
+ "$ref": "#/components/schemas/Workflow"
}
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "404": {
- "description": "Browser profile not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1982,30 +1929,37 @@
}
}
},
- "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"
- }
- ]
- }
- ]
- },
+ "x-fern-sdk-method-name": "get_workflow"
+ }
+ },
+ "/v1/workflows/{workflow_permanent_id}/versions": {
"get": {
"tags": [
- "Browser Sessions"
+ "Workflows"
],
- "summary": "Get active browser sessions",
- "description": "Get all active browser sessions for the organization",
- "operationId": "get_browser_sessions_v1_browser_sessions_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": "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",
@@ -2027,22 +1981,19 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved all active browser sessions",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
+ "$ref": "#/components/schemas/Workflow"
},
- "title": "Response Get Browser Sessions V1 Browser Sessions Get"
+ "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
}
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -2054,46 +2005,17 @@
}
}
},
- "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"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "get_workflow_versions"
}
},
- "/v1/browser_sessions/{browser_session_id}/close": {
+ "/v1/upload_file": {
"post": {
"tags": [
- "Browser Sessions"
+ "Files"
],
- "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",
+ "summary": "Upload File",
+ "operationId": "upload_file_v1_upload_file_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",
@@ -2113,18 +2035,27 @@
"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": "Successfully closed browser session",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/UploadFileResponse"
+ }
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -2136,46 +2067,18 @@
}
}
},
- "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"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "upload_file"
}
},
- "/v1/browser_sessions/{browser_session_id}": {
- "get": {
+ "/v1/browser_profiles": {
+ "post": {
"tags": [
- "Browser Sessions"
+ "Browser Profiles"
],
- "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",
+ "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": "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",
@@ -2195,22 +2098,32 @@
"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 retrieved browser session details",
+ "description": "Successfully created browser profile",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
+ "400": {
+ "description": "Invalid request - missing source or source not found"
},
- "404": {
- "description": "Browser session not found"
+ "409": {
+ "description": "Browser profile name already exists"
},
"422": {
"description": "Validation Error",
@@ -2223,32 +2136,42 @@
}
}
},
- "x-fern-sdk-method-name": "get_browser_session",
+ "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\")\nbrowser_session = await skyvern.get_browser_session(browser_session_id=\"pbs_123\")\nprint(browser_session)\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\" });\nconst browserSession = await skyvern.getBrowserSession(\"pbs_123\");\nconsole.log(browserSession);\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/totp": {
- "post": {
+ },
+ "get": {
"tags": [
- "Credentials"
+ "Browser Profiles"
],
- "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",
+ "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",
@@ -2268,23 +2191,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/TOTPCodeCreate"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser profiles",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TOTPCode"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/BrowserProfile"
+ },
+ "title": "Response List Browser Profiles V1 Browser Profiles Get"
}
}
}
@@ -2300,32 +2217,46 @@
}
}
},
- "x-fern-sdk-method-name": "send_totp_code",
+ "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\")\nawait skyvern.send_totp_code(\n totp_identifier=\"[email protected]\",\n content=\"Hello, your verification code is 123456\"\n)\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\" });\nawait skyvern.sendTotpCode({\n totp_identifier: \"[email protected]\",\n content: \"Hello, your verification code is 123456\"\n});\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/credentials": {
- "post": {
+ "/v1/browser_profiles/{profile_id}": {
+ "get": {
"tags": [
- "Credentials"
+ "Browser Profiles"
],
- "summary": "Create credential",
- "description": "Creates a new credential for the current organization",
- "operationId": "create_credential_v1_credentials_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",
@@ -2345,40 +2276,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/CreateCredentialRequest",
- "description": "The credential data to create",
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "data"
- }
- },
- "example": {
- "name": "My Credential",
- "credential_type": "PASSWORD",
- "credential": {
- "username": "[email protected]",
- "password": "securepassword123",
- "totp": "JBSWY3DPEHPK3PXP"
- }
- }
- }
- }
- },
"responses": {
- "201": {
- "description": "Successful Response",
+ "200": {
+ "description": "Successfully retrieved browser profile",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
+ "404": {
+ "description": "Browser profile not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2390,75 +2301,43 @@
}
}
},
- "x-fern-sdk-method-name": "create_credential",
+ "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\")\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"
- },
+ "code-samples": [
{
- "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": "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\" });\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"
+ "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"
}
]
}
]
},
- "get": {
+ "delete": {
"tags": [
- "Credentials"
+ "Browser Profiles"
],
- "summary": "Get all credentials",
- "description": "Retrieves a paginated list of credentials for the current organization",
- "operationId": "get_credentials_v1_credentials_get",
+ "summary": "Delete browser profile",
+ "description": "Delete a browser profile (soft delete)",
+ "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
"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,
+ "name": "profile_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of items per page",
+ "type": "string",
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`",
"examples": [
- 10
+ "bp_123456"
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "page_size"
- },
- "default": 10,
- "title": "Page Size"
+ "title": "Profile Id"
},
- "description": "Number of items per page"
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`"
},
{
"name": "x-api-key",
@@ -2480,19 +2359,11 @@
}
],
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/CredentialResponse"
- },
- "title": "Response Get Credentials V1 Credentials Get"
- }
- }
- }
+ "204": {
+ "description": "Successfully deleted browser profile"
+ },
+ "404": {
+ "description": "Browser profile not found"
},
"422": {
"description": "Validation Error",
@@ -2505,49 +2376,32 @@
}
}
},
- "x-fern-sdk-method-name": "get_credentials",
+ "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\")\ncredentials = await skyvern.get_credentials()\nprint(credentials)\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\" });\nconst credentials = await skyvern.getCredentials();\nconsole.log(credentials);\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.browserProfiles.deleteBrowserProfile(\"bp_123\");\n"
}
]
}
]
}
},
- "/v1/credentials/{credential_id}/update": {
+ "/v1/browser_sessions": {
"post": {
"tags": [
- "Credentials"
+ "Browser Sessions"
],
- "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 session",
+ "description": "Create a browser session that persists across multiple runs",
+ "operationId": "create_browser_session_v1_browser_sessions_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",
@@ -2568,22 +2422,12 @@
}
],
"requestBody": {
- "required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateCredentialRequest",
- "description": "The new credential data to store",
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "data"
- }
- },
- "example": {
- "name": "My Credential",
- "credential_type": "PASSWORD",
- "credential": {
- "username": "[email protected]",
- "password": "newpassword123"
+ "$ref": "#/components/schemas/CreateBrowserSessionRequest",
+ "default": {
+ "timeout": 60
}
}
}
@@ -2591,15 +2435,21 @@
},
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully created browser session",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
+ "404": {
+ "description": "Browser profile not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2611,35 +2461,30 @@
}
}
},
- "x-fern-sdk-method-name": "update_credential"
- }
- },
- "/v1/credentials/{credential_id}/delete": {
- "post": {
+ "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": [
- "Credentials"
+ "Browser Sessions"
],
- "summary": "Delete credential",
- "description": "Deletes a specific credential by its ID",
- "operationId": "delete_credential_v1_credentials__credential_id__delete_post",
+ "summary": "Get active browser sessions",
+ "description": "Get all active browser sessions for the organization",
+ "operationId": "get_browser_sessions_v1_browser_sessions_get",
"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",
@@ -2660,8 +2505,22 @@
}
],
"responses": {
- "204": {
- "description": "Successful Response"
+ "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",
@@ -2674,48 +2533,45 @@
}
}
},
- "x-fern-sdk-method-name": "delete_credential",
+ "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\")\nawait skyvern.delete_credential(credential_id=\"cred_123\")\n"
+ "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\" });\nawait skyvern.deleteCredential(\"cred_123\");\n"
+ "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/credentials/{credential_id}": {
- "get": {
+ "/v1/browser_sessions/{browser_session_id}/close": {
+ "post": {
"tags": [
- "Credentials"
+ "Browser Sessions"
],
- "summary": "Get credential by ID",
- "description": "Retrieves a specific credential by its ID",
- "operationId": "get_credential_v1_credentials__credential_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": "credential_id",
+ "name": "browser_session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the credential",
+ "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": [
- "cred_1234567890"
+ "pbs_123456"
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
+ "title": "Browser Session Id"
},
- "description": "The unique identifier of the credential"
+ "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",
@@ -2738,15 +2594,16 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully closed browser session",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/CredentialResponse"
- }
+ "schema": {}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2758,32 +2615,46 @@
}
}
},
- "x-fern-sdk-method-name": "get_credential",
+ "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\")\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\")\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\" });\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\" });\nawait skyvern.closeBrowserSession(\"pbs_123\");\n"
}
]
}
]
}
},
- "/v1/run/tasks/login": {
- "post": {
+ "/v1/browser_sessions/{browser_session_id}": {
+ "get": {
"tags": [
- "Agent"
+ "Browser Sessions"
],
- "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 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",
@@ -2803,27 +2674,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/LoginRequest"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser session details",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
+ "404": {
+ "description": "Browser session not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2835,47 +2702,31 @@
}
}
},
- "x-fern-sdk-method-name": "login",
+ "x-fern-sdk-method-name": "get_browser_session",
"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_session = await skyvern.get_browser_session(browser_session_id=\"pbs_123\")\nprint(browser_session)\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 browserSession = await skyvern.getBrowserSession(\"pbs_123\");\nconsole.log(browserSession);\n"
}
]
}
]
}
},
- "/v1/run/tasks/download_files": {
+ "/v1/credentials/totp": {
"post": {
"tags": [
- "Agent"
+ "Credentials"
],
- "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": "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",
@@ -2901,7 +2752,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/DownloadFilesRequest"
+ "$ref": "#/components/schemas/TOTPCodeCreate"
}
}
}
@@ -2912,7 +2763,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "$ref": "#/components/schemas/TOTPCode"
}
}
}
@@ -2928,31 +2779,31 @@
}
}
},
- "x-fern-sdk-method-name": "download_files",
+ "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.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.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.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.sendTotpCode({\n totp_identifier: \"[email protected]\",\n content: \"Hello, your verification code is 123456\"\n});\n"
}
]
}
]
}
},
- "/v1/scripts": {
+ "/v1/credentials": {
"post": {
"tags": [
- "Scripts"
+ "Credentials"
],
- "summary": "Create script",
- "description": "Create a new script with optional files and metadata",
- "operationId": "create_script_v1_scripts_post",
+ "summary": "Create credential",
+ "description": "Creates a new credential for the current organization",
+ "operationId": "create_credential_v1_credentials_post",
"parameters": [
{
"name": "x-api-key",
@@ -2978,18 +2829,33 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptRequest"
+ "$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/CreateScriptResponse"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
@@ -3005,15 +2871,37 @@
}
}
},
- "x-fern-sdk-method-name": "create_script"
+ "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": [
- "Scripts"
+ "Credentials"
],
- "summary": "Get all scripts",
- "description": "Retrieves a paginated list of scripts for the current organization",
- "operationId": "get_scripts_v1_scripts_get",
+ "summary": "Get all credentials",
+ "description": "Retrieves a paginated list of credentials for the current organization",
+ "operationId": "get_credentials_v1_credentials_get",
"parameters": [
{
"name": "page",
@@ -3026,6 +2914,9 @@
"examples": [
1
],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page"
+ },
"default": 1,
"title": "Page"
},
@@ -3042,6 +2933,9 @@
"examples": [
10
],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page_size"
+ },
"default": 10,
"title": "Page Size"
},
@@ -3074,9 +2968,9 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Script"
+ "$ref": "#/components/schemas/CredentialResponse"
},
- "title": "Response Get Scripts V1 Scripts Get"
+ "title": "Response Get Credentials V1 Credentials Get"
}
}
}
@@ -3092,31 +2986,142 @@
}
}
},
- "x-fern-sdk-method-name": "get_scripts"
+ "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"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}": {
- "get": {
+ "/v1/credentials/{credential_id}/update": {
+ "post": {
"tags": [
- "Scripts"
+ "Credentials"
],
- "summary": "Get script by ID",
- "description": "Retrieves a specific script by its ID",
- "operationId": "get_script_v1_scripts__script_id__get",
+ "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": "script_id",
+ "name": "credential_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "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",
+ "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 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": {
+ "$ref": "#/components/schemas/CredentialResponse"
+ }
+ }
+ }
+ },
+ "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": [
- "s_abc123"
+ "cred_1234567890"
],
- "title": "Script Id"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
},
- "description": "The unique identifier of the script"
+ "description": "The unique identifier of the credential to delete"
},
{
"name": "x-api-key",
@@ -3138,15 +3143,8 @@
}
],
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Script"
- }
- }
- }
+ "204": {
+ "description": "Successful Response"
},
"422": {
"description": "Validation Error",
@@ -3159,31 +3157,48 @@
}
}
},
- "x-fern-sdk-method-name": "get_script"
+ "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"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}/deploy": {
- "post": {
+ "/v1/credentials/{credential_id}": {
+ "get": {
"tags": [
- "Scripts"
+ "Credentials"
],
- "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 credential by ID",
+ "description": "Retrieves a specific credential by its ID",
+ "operationId": "get_credential_v1_credentials__credential_id__get",
"parameters": [
{
- "name": "script_id",
+ "name": "credential_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "description": "The unique identifier of the credential",
"examples": [
- "s_abc123"
+ "cred_1234567890"
],
- "title": "Script Id"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
},
- "description": "The unique identifier of the script"
+ "description": "The unique identifier of the credential"
},
{
"name": "x-api-key",
@@ -3204,23 +3219,13 @@
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/DeployScriptRequest"
- }
- }
- }
- },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptResponse"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
@@ -3236,32 +3241,32 @@
}
}
},
- "x-fern-sdk-method-name": "deploy_script"
+ "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"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/scripts/{script_id}/run": {
+ "/v1/run/tasks/login": {
"post": {
"tags": [
- "Scripts"
+ "Agent"
],
- "summary": "Run script",
- "description": "Run a script",
- "operationId": "run_script_v1_scripts__script_id__run_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": "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",
@@ -3281,12 +3286,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/LoginRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/WorkflowRunResponse"
+ }
}
}
},
@@ -3300,17 +3317,48 @@
}
}
}
- }
+ },
+ "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/sdk/run_action": {
+ "/v1/run/tasks/download_files": {
"post": {
"tags": [
- "SDK"
+ "Agent"
],
- "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": "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": "x-api-key",
@@ -3336,7 +3384,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RunSdkActionRequest"
+ "$ref": "#/components/schemas/DownloadFilesRequest"
}
}
}
@@ -3347,7 +3395,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RunSdkActionResponse"
+ "$ref": "#/components/schemas/WorkflowRunResponse"
}
}
}
@@ -3363,14 +3411,31 @@
}
}
},
- "x-fern-sdk-method-name": "run_sdk_action"
+ "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/billing/checkout": {
+ "/v1/scripts": {
"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",
+ "tags": [
+ "Scripts"
+ ],
+ "summary": "Create script",
+ "description": "Create a new script with optional files and metadata",
+ "operationId": "create_script_v1_scripts_post",
"parameters": [
{
"name": "x-api-key",
@@ -3396,7 +3461,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CheckoutSubscriptionRequest"
+ "$ref": "#/components/schemas/CreateScriptRequest"
}
}
}
@@ -3407,30 +3472,64 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CheckoutSessionResponse"
+ "$ref": "#/components/schemas/CreateScriptResponse"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
}
}
}
+ }
+ },
+ "x-fern-sdk-method-name": "create_script"
+ },
+ "get": {
+ "tags": [
+ "Scripts"
+ ],
+ "summary": "Get all scripts",
+ "description": "Retrieves a paginated list of scripts for the current organization",
+ "operationId": "get_scripts_v1_scripts_get",
+ "parameters": [
+ {
+ "name": "page",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "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"
},
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- }
- }
- },
- "/api/v1/billing/portal": {
- "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",
- "parameters": [
{
"name": "x-api-key",
"in": "header",
@@ -3456,7 +3555,11 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/PortalSessionResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Script"
+ },
+ "title": "Response Get Scripts V1 Scripts Get"
}
}
}
@@ -3471,14 +3574,33 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "get_scripts"
}
},
- "/api/v1/billing/state": {
+ "/v1/scripts/{script_id}": {
"get": {
- "summary": "Get Organization Billing",
- "operationId": "get_organization_billing_api_v1_billing_state_get",
+ "tags": [
+ "Scripts"
+ ],
+ "summary": "Get script by ID",
+ "description": "Retrieves a specific script by its ID",
+ "operationId": "get_script_v1_scripts__script_id__get",
"parameters": [
+ {
+ "name": "script_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3504,15 +3626,7 @@
"content": {
"application/json": {
"schema": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/BillingStateResponse"
- },
- {
- "type": "null"
- }
- ],
- "title": "Response Get Organization Billing Api V1 Billing State Get"
+ "$ref": "#/components/schemas/Script"
}
}
}
@@ -3527,15 +3641,33 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "get_script"
}
},
- "/api/v1/billing/change-tier": {
+ "/v1/scripts/{script_id}/deploy": {
"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": [
+ "Scripts"
+ ],
+ "summary": "Deploy script",
+ "description": "Deploy a script with updated files, creating a new version",
+ "operationId": "deploy_script_v1_scripts__script_id__deploy_post",
"parameters": [
+ {
+ "name": "script_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3560,7 +3692,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ChangeTierRequest"
+ "$ref": "#/components/schemas/DeployScriptRequest"
}
}
}
@@ -3571,7 +3703,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ChangeTierResponse"
+ "$ref": "#/components/schemas/CreateScriptResponse"
}
}
}
@@ -3586,18 +3718,33 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "deploy_script"
}
},
- "/v1/folders": {
+ "/v1/scripts/{script_id}/run": {
"post": {
"tags": [
- "Workflow Folders"
+ "Scripts"
],
- "summary": "Create folder",
- "description": "Create a new folder to organize workflows",
- "operationId": "create_folder_v1_folders_post",
+ "summary": "Run script",
+ "description": "Run a script",
+ "operationId": "run_script_v1_scripts__script_id__run_post",
"parameters": [
+ {
+ "name": "script_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The unique identifier of the script",
+ "examples": [
+ "s_abc123"
+ ],
+ "title": "Script Id"
+ },
+ "description": "The unique identifier of the script"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3617,30 +3764,15 @@
"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"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully created folder",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/Folder"
- }
+ "schema": {}
}
}
},
- "400": {
- "description": "Invalid request"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3651,62 +3783,18 @@
}
}
}
- },
- "x-fern-sdk-method-name": "create_folder"
- },
- "get": {
+ }
+ }
+ },
+ "/v1/sdk/run_action": {
+ "post": {
"tags": [
- "Workflow Folders"
+ "SDK"
],
- "summary": "Get folders",
- "description": "Get all folders for the organization",
- "operationId": "get_folders_v1_folders_get",
+ "summary": "Run an SDK action",
+ "description": "Execute a single SDK action with the specified parameters",
+ "operationId": "run_sdk_action_v1_sdk_run_action_post",
"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,
- "schema": {
- "type": "integer",
- "maximum": 500,
- "minimum": 1,
- "description": "Number of folders per page",
- "default": 100,
- "title": "Page Size"
- },
- "description": "Number of folders per page"
- },
- {
- "name": "search",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Search folders by title or description",
- "title": "Search"
- },
- "description": "Search folders by title or description"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3726,17 +3814,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/RunSdkActionRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved folders",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Folder"
- },
- "title": "Response Get Folders V1 Folders Get"
+ "$ref": "#/components/schemas/RunSdkActionResponse"
}
}
}
@@ -3752,32 +3846,15 @@
}
}
},
- "x-fern-sdk-method-name": "get_folders"
+ "x-fern-sdk-method-name": "run_sdk_action"
}
},
- "/v1/folders/{folder_id}": {
- "get": {
- "tags": [
- "Workflow Folders"
- ],
- "summary": "Get folder",
- "description": "Get a specific folder by ID",
- "operationId": "get_folder_v1_folders__folder_id__get",
+ "/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",
"parameters": [
- {
- "name": "folder_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "Folder ID",
- "examples": [
- "fld_123"
- ],
- "title": "Folder Id"
- },
- "description": "Folder ID"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3796,21 +3873,28 @@
},
"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": "Successfully retrieved folder",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Folder"
+ "$ref": "#/components/schemas/CheckoutSessionResponse"
}
}
}
},
- "404": {
- "description": "Folder not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3821,31 +3905,15 @@
}
}
}
- },
- "x-fern-sdk-method-name": "get_folder"
- },
- "put": {
- "tags": [
- "Workflow Folders"
- ],
- "summary": "Update folder",
- "description": "Update a folder's title or description",
- "operationId": "update_folder_v1_folders__folder_id__put",
+ }
+ }
+ },
+ "/api/v1/billing/portal": {
+ "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",
"parameters": [
- {
- "name": "folder_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "Folder ID",
- "examples": [
- "fld_123"
- ],
- "title": "Folder Id"
- },
- "description": "Folder ID"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3865,30 +3933,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/FolderUpdate"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated folder",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Folder"
+ "$ref": "#/components/schemas/PortalSessionResponse"
}
}
}
},
- "404": {
- "description": "Folder not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3899,43 +3954,14 @@
}
}
}
- },
- "x-fern-sdk-method-name": "update_folder"
- },
- "delete": {
- "tags": [
- "Workflow Folders"
- ],
- "summary": "Delete folder",
- "description": "Delete a folder. Optionally delete all workflows in the folder.",
- "operationId": "delete_folder_v1_folders__folder_id__delete",
+ }
+ }
+ },
+ "/api/v1/billing/state": {
+ "get": {
+ "summary": "Get Organization Billing",
+ "operationId": "get_organization_billing_api_v1_billing_state_get",
"parameters": [
- {
- "name": "folder_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "Folder ID",
- "examples": [
- "fld_123"
- ],
- "title": "Folder Id"
- },
- "description": "Folder ID"
- },
- {
- "name": "delete_workflows",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "description": "If true, also delete all workflows in this folder",
- "default": false,
- "title": "Delete Workflows"
- },
- "description": "If true, also delete all workflows in this folder"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3957,20 +3983,23 @@
],
"responses": {
"200": {
- "description": "Successfully deleted folder",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "additionalProperties": true,
- "title": "Response Delete Folder V1 Folders Folder Id Delete"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/BillingStateResponse"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Get Organization Billing Api V1 Billing State Get"
}
}
}
},
- "404": {
- "description": "Folder not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3981,33 +4010,15 @@
}
}
}
- },
- "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",
+ "/api/v1/billing/change-tier": {
+ "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",
"parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "Workflow permanent ID",
- "examples": [
- "wpid_123"
- ],
- "title": "Workflow Permanent Id"
- },
- "description": "Workflow permanent ID"
- },
{
"name": "x-api-key",
"in": "header",
@@ -4032,28 +4043,22 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UpdateWorkflowFolderRequest"
+ "$ref": "#/components/schemas/ChangeTierRequest"
}
}
}
},
"responses": {
"200": {
- "description": "Successfully updated workflow folder",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Workflow"
+ "$ref": "#/components/schemas/ChangeTierResponse"
}
}
}
},
- "404": {
- "description": "Workflow not found"
- },
- "400": {
- "description": "Folder not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -4064,8 +4069,7 @@
}
}
}
- },
- "x-fern-sdk-method-name": "update_workflow_folder"
+ }
}
}
},
@@ -5176,6 +5180,17 @@
"type": "string",
"title": "Uri"
},
+ "bundle_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Bundle Key"
+ },
"task_id": {
"anyOf": [
{
@@ -5320,7 +5335,9 @@
"trace",
"har",
"script_file",
- "pdf"
+ "pdf",
+ "step_archive",
+ "task_archive"
],
"title": "ArtifactType"
},
@@ -7710,6 +7727,18 @@
],
"title": "Tested Url",
"description": "Login page URL used during the credential test"
+ },
+ "user_context": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Context",
+ "description": "User-provided context describing the login sequence (e.g., 'click SSO button first')"
}
},
"type": "object",
@@ -7757,7 +7786,7 @@
"brand"
],
"title": "CreditCardCredentialResponse",
- "description": "Response model for credit card credentials \u2014 non-sensitive fields only.\n\nSECURITY: Must NEVER include full card number, CVV, expiration date, or card holder name."
+ "description": "Response model for credit card credentials — non-sensitive fields only.\n\nSECURITY: Must NEVER include full card number, CVV, expiration date, or card holder name."
},
"DeployScriptRequest": {
"properties": {
@@ -9638,7 +9667,78 @@
],
"title": "Region Name"
},
- "azure_storage_account_name": {
+ "azure_storage_account_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Azure Storage Account Name"
+ },
+ "azure_storage_account_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Azure Storage Account Key"
+ },
+ "azure_blob_container_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Azure Blob Container Name"
+ },
+ "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"
@@ -9647,20 +9747,55 @@
"type": "null"
}
],
- "title": "Azure Storage Account Name"
+ "title": "Description",
+ "description": "Folder description"
},
- "azure_storage_account_key": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Azure Storage Account Key"
+ "folder_id": {
+ "type": "string",
+ "title": "Folder Id"
},
- "azure_blob_container_name": {
+ "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"
@@ -9669,20 +9804,34 @@
"type": "null"
}
],
- "title": "Azure Blob Container Name"
- },
- "azure_folder_path": {
+ "title": "Description",
+ "description": "Folder description"
+ }
+ },
+ "type": "object",
+ "required": [
+ "title"
+ ],
+ "title": "FolderCreate",
+ "description": "Request model for creating a folder"
+ },
+ "FolderUpdate": {
+ "properties": {
+ "title": {
"anyOf": [
{
- "type": "string"
+ "type": "string",
+ "maxLength": 255,
+ "minLength": 1
},
{
"type": "null"
}
],
- "title": "Azure Folder Path"
+ "title": "Title",
+ "description": "Folder title"
},
- "path": {
+ "description": {
"anyOf": [
{
"type": "string"
@@ -9691,14 +9840,13 @@
"type": "null"
}
],
- "title": "Path"
+ "title": "Description",
+ "description": "Folder description"
}
},
"type": "object",
- "required": [
- "label"
- ],
- "title": "FileUploadBlockYAML"
+ "title": "FolderUpdate",
+ "description": "Request model for updating a folder"
},
"ForLoopBlock": {
"properties": {
@@ -13028,7 +13176,7 @@
"username"
],
"title": "PasswordCredentialResponse",
- "description": "Response model for password credentials \u2014 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, TOTP secret, or TOTP identifier."
},
"PersistentBrowserType": {
"type": "string",
@@ -13043,7 +13191,8 @@
"enum": [
"free",
"hobby",
- "pro"
+ "pro",
+ "enterprise"
],
"title": "PlanTier",
"description": "Self-serve subscription tiers. Enterprise customers use manual billing (bypass)."
@@ -13760,7 +13909,7 @@
},
"type": "object",
"title": "SecretCredentialResponse",
- "description": "Response model for secret credentials \u2014 non-sensitive fields only.\n\nSECURITY: Must NEVER include the secret_value."
+ "description": "Response model for secret credentials — non-sensitive fields only.\n\nSECURITY: Must NEVER include the secret_value."
},
"SelectOption": {
"properties": {
@@ -16194,6 +16343,25 @@
"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": {
@@ -20135,144 +20303,6 @@
"azure_vault"
],
"title": "CredentialType"
- },
- "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": "null"
- }
- ],
- "title": "Title",
- "description": "Folder title"
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Description",
- "description": "Folder description"
- }
- },
- "type": "object",
- "title": "FolderUpdate",
- "description": "Request model for updating a folder"
- },
- "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"
}
}
},
@@ -20290,4 +20320,4 @@
"x-fern-server-name": "Local"
}
]
-}
+}
\ No newline at end of file