Skip to content

Automate browser based workflows with AI

Update API specifications with fern api update (#6422)

Shuchang Zhengc4b9c79de9e2
diff --git a/fern/openapi/skyvern_openapi.json b/fern/openapi/skyvern_openapi.json
index 8d6ecdd24..9b29717bb 100644
--- a/fern/openapi/skyvern_openapi.json
+++ b/fern/openapi/skyvern_openapi.json
@@ -9,7 +9,7 @@
"/v1/run/tasks": {
"post": {
"tags": [
- "Agent"
+ "Agents"
],
"summary": "Run a task",
"description": "Run a task",
@@ -85,6 +85,7 @@
}
}
},
+ "x-hidden": true,
"x-fern-sdk-method-name": "run_task",
"x-fern-examples": [
{
@@ -102,14 +103,14 @@
]
}
},
- "/v1/run/workflows": {
+ "/v1/run/agents": {
"post": {
"tags": [
- "Workflow Runs"
+ "Agents"
],
- "summary": "Run a workflow",
- "description": "Run a workflow",
- "operationId": "run_workflow_v1_run_workflows_post",
+ "summary": "Run an agent",
+ "description": "Run an agent",
+ "operationId": "run_workflow_v1_run_agents_post",
"parameters": [
{
"name": "template",
@@ -184,7 +185,7 @@
},
"responses": {
"200": {
- "description": "Successfully run workflow",
+ "description": "Successfully ran agent",
"content": {
"application/json": {
"schema": {
@@ -194,7 +195,7 @@
}
},
"400": {
- "description": "Invalid workflow run request"
+ "description": "Invalid agent run request"
},
"422": {
"description": "Validation Error",
@@ -227,11 +228,9 @@
"/v1/runs/{run_id}": {
"get": {
"tags": [
- "Agent",
- "Workflow Runs",
- "Workflows"
+ "Agents"
],
- "summary": "Get a run by id",
+ "summary": "Get run info by id",
"description": "Get run information (task run, workflow run)",
"operationId": "get_run_v1_runs__run_id__get",
"parameters": [
@@ -335,8 +334,7 @@
"/v1/runs/{run_id}/cancel": {
"post": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Agents"
],
"summary": "Cancel a run by id",
"description": "Cancel a run (task or workflow)",
@@ -412,8 +410,7 @@
"/v1/runs/cancel": {
"post": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Agents"
],
"summary": "Bulk cancel runs",
"description": "Cancel multiple runs (tasks or workflows) in a single request",
@@ -487,14 +484,14 @@
]
}
},
- "/v1/workflows": {
+ "/v1/agents": {
"post": {
"tags": [
- "Workflows"
+ "Agents"
],
- "summary": "Create a new workflow",
- "description": "Create a new workflow",
- "operationId": "create_workflow_v1_workflows_post",
+ "summary": "Create a new agent",
+ "description": "Create a new agent",
+ "operationId": "create_workflow_v1_agents_post",
"parameters": [
{
"name": "folder_id",
@@ -545,7 +542,7 @@
},
"responses": {
"200": {
- "description": "Successfully created workflow",
+ "description": "Successfully created agent",
"content": {
"application/json": {
"schema": {
@@ -555,7 +552,7 @@
}
},
"422": {
- "description": "Invalid workflow definition"
+ "description": "Invalid agent definition"
}
},
"x-fern-sdk-method-name": "create_workflow",
@@ -580,9 +577,9 @@
},
"get": {
"tags": [
- "Workflows"
+ "Agents"
],
- "summary": "Get Workflows",
+ "summary": "Get all agents",
"description": "Get all workflows with the latest version for the organization.\n\nSearch semantics:\n- If `search_key` is provided, its value is used as a unified search term for\n `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for\n `WorkflowParameterModel`).\n- Falls back to deprecated `title` (title-only search) if `search_key` is not provided.\n- Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.",
"operationId": "get_workflows_v1_workflows_get",
"parameters": [
@@ -712,6 +709,32 @@
"title": "Status"
}
},
+ {
+ "name": "tags",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 20
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter by tags as `key:value` pairs. Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct keys, OR within a key (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). Matches current tag values only. Not supported with `template=true`.",
+ "examples": [
+ "env:prod",
+ "customer:acme,env:prod"
+ ],
+ "title": "Tags"
+ },
+ "description": "Filter by tags as `key:value` pairs. Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct keys, OR within a key (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). Matches current tag values only. Not supported with `template=true`."
+ },
{
"name": "template",
"in": "query",
@@ -784,14 +807,14 @@
]
}
},
- "/v1/workflows/{workflow_id}": {
+ "/v1/agents/{workflow_id}": {
"post": {
"tags": [
- "Workflows"
+ "Agents"
],
- "summary": "Update a workflow",
- "description": "Update a workflow",
- "operationId": "update_workflow_v1_workflows__workflow_id__post",
+ "summary": "Update an agent",
+ "description": "Update an agent",
+ "operationId": "update_workflow_v1_agents__workflow_id__post",
"parameters": [
{
"name": "workflow_id",
@@ -799,13 +822,13 @@
"required": true,
"schema": {
"type": "string",
- "description": "The ID of the workflow to update. Workflow ID starts with `wpid_`.",
+ "description": "The ID of the agent to update. Starts with `wpid_`.",
"examples": [
"wpid_123"
],
"title": "Workflow Id"
},
- "description": "The ID of the workflow to update. Workflow ID starts with `wpid_`."
+ "description": "The ID of the agent to update. Starts with `wpid_`."
},
{
"name": "x-api-key",
@@ -838,7 +861,7 @@
},
"responses": {
"200": {
- "description": "Successfully updated workflow",
+ "description": "Successfully updated agent",
"content": {
"application/json": {
"schema": {
@@ -848,7 +871,7 @@
}
},
"422": {
- "description": "Invalid workflow definition"
+ "description": "Invalid agent definition"
}
},
"x-fern-sdk-method-name": "update_workflow",
@@ -872,14 +895,14 @@
]
}
},
- "/v1/workflows/{workflow_id}/delete": {
+ "/v1/agents/{workflow_id}/delete": {
"post": {
"tags": [
- "Workflows"
+ "Agents"
],
- "summary": "Delete a workflow",
- "description": "Delete a workflow",
- "operationId": "delete_workflow_v1_workflows__workflow_id__delete_post",
+ "summary": "Delete an agent",
+ "description": "Delete an agent",
+ "operationId": "delete_workflow_v1_agents__workflow_id__delete_post",
"parameters": [
{
"name": "workflow_id",
@@ -887,13 +910,13 @@
"required": true,
"schema": {
"type": "string",
- "description": "The ID of the workflow to delete. Workflow ID starts with `wpid_`.",
+ "description": "The ID of the agent to delete. Starts with `wpid_`.",
"examples": [
"wpid_123"
],
"title": "Workflow Id"
},
- "description": "The ID of the workflow to delete. Workflow ID starts with `wpid_`."
+ "description": "The ID of the agent to delete. Starts with `wpid_`."
},
{
"name": "x-api-key",
@@ -916,7 +939,7 @@
],
"responses": {
"200": {
- "description": "Successfully deleted workflow",
+ "description": "Successfully deleted agent",
"content": {
"application/json": {
"schema": {}
@@ -954,7 +977,7 @@
"/v1/folders": {
"post": {
"tags": [
- "Workflow Folders"
+ "Agent Folders"
],
"summary": "Create folder",
"description": "Create a new folder to organize workflows",
@@ -1018,7 +1041,7 @@
},
"get": {
"tags": [
- "Workflow Folders"
+ "Agent Folders"
],
"summary": "Get folders",
"description": "Get all folders for the organization",
@@ -1120,7 +1143,7 @@
"/v1/folders/{folder_id}": {
"get": {
"tags": [
- "Workflow Folders"
+ "Agent Folders"
],
"summary": "Get folder",
"description": "Get a specific folder by ID",
@@ -1188,7 +1211,7 @@
},
"put": {
"tags": [
- "Workflow Folders"
+ "Agent Folders"
],
"summary": "Update folder",
"description": "Update a folder's title or description",
@@ -1266,7 +1289,7 @@
},
"delete": {
"tags": [
- "Workflow Folders"
+ "Agent Folders"
],
"summary": "Delete folder",
"description": "Delete a folder. Optionally delete all workflows in the folder.",
@@ -1347,29 +1370,15 @@
"x-fern-sdk-method-name": "delete_folder"
}
},
- "/v1/workflows/{workflow_permanent_id}/folder": {
- "put": {
+ "/v1/tag-keys": {
+ "get": {
"tags": [
- "Workflow Folders"
+ "Agent Tags"
],
- "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",
+ "summary": "List tag keys",
+ "description": "List all tag keys registered for the organization with their descriptions.",
+ "operationId": "list_tag_keys_v1_tag_keys_get",
"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",
@@ -1389,33 +1398,21 @@
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UpdateWorkflowFolderRequest"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated workflow folder",
+ "description": "Successfully retrieved tag keys",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Workflow"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TagKey"
+ },
+ "title": "Response List Tag Keys V1 Tag Keys Get"
}
}
}
},
- "400": {
- "description": "Folder not found"
- },
- "404": {
- "description": "Workflow not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -1427,84 +1424,28 @@
}
}
},
- "x-fern-sdk-method-name": "update_workflow_folder"
+ "x-fern-sdk-method-name": "list_tag_keys"
}
},
- "/v1/workflows/{workflow_permanent_id}/tags": {
- "post": {
- "tags": [
- "Workflow Tags"
- ],
- "summary": "Apply workflow tags",
- "description": "Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.",
- "operationId": "apply_workflow_tags_v1_workflows__workflow_permanent_id__tags_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"
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/TagApplyRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully applied tag changes",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/TagsResponse"
- }
- }
- }
- },
- "404": {
- "description": "Workflow not found"
- },
- "422": {
- "description": "Invalid tag key or value"
- }
- },
- "x-fern-sdk-method-name": "apply_workflow_tags"
- },
- "get": {
+ "/v1/tag-keys/{key}": {
+ "patch": {
"tags": [
- "Workflow Tags"
+ "Agent Tags"
],
- "summary": "Get workflow tags",
- "description": "Get the current tag state for a workflow.",
- "operationId": "get_workflow_tags_v1_workflows__workflow_permanent_id__tags_get",
+ "summary": "Update tag key",
+ "description": "Update the description for a tag key.",
+ "operationId": "update_tag_key_v1_tag_keys__key__patch",
"parameters": [
{
- "name": "workflow_permanent_id",
+ "name": "key",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "Workflow permanent ID",
- "examples": [
- "wpid_123"
- ],
- "title": "Workflow Permanent Id"
+ "description": "Tag key to update",
+ "title": "Key"
},
- "description": "Workflow permanent ID"
+ "description": "Tag key to update"
},
{
"name": "x-api-key",
@@ -1525,57 +1466,44 @@
"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/TagKeyUpdate"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved tags",
+ "description": "Successfully updated tag key",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TagsResponse"
+ "$ref": "#/components/schemas/TagKey"
}
}
}
},
"404": {
- "description": "Workflow not found"
+ "description": "Tag key not found"
},
"422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
+ "description": "Description too long"
}
},
- "x-fern-sdk-method-name": "get_workflow_tags"
- }
- },
- "/v1/workflows/{workflow_permanent_id}/tags/{key}": {
+ "x-fern-sdk-method-name": "update_tag_key"
+ },
"delete": {
"tags": [
"Workflow Tags"
],
- "summary": "Delete workflow tag",
- "description": "Soft-delete a single tag from a workflow. Writes a DELETE event row.",
- "operationId": "delete_workflow_tag_v1_workflows__workflow_permanent_id__tags__key__delete",
+ "summary": "Delete tag key",
+ "description": "Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.",
+ "operationId": "delete_tag_key_v1_tag_keys__key__delete",
"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": "key",
"in": "path",
@@ -1593,17 +1521,17 @@
],
"responses": {
"200": {
- "description": "Successfully deleted tag (or no-op if absent)",
+ "description": "Successfully deleted tag key",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TagsResponse"
+ "$ref": "#/components/schemas/TagKeyDeleteResponse"
}
}
}
},
"404": {
- "description": "Workflow not found"
+ "description": "Tag key not found"
},
"422": {
"description": "Validation Error",
@@ -1616,67 +1544,20 @@
}
}
},
- "x-fern-sdk-method-name": "delete_workflow_tag"
+ "x-fern-sdk-method-name": "delete_tag_key"
}
},
- "/v1/workflows/{workflow_permanent_id}/tags/history": {
+ "/v1/workflow-tags": {
"get": {
"tags": [
- "Workflow Tags"
+ "Agent Tags"
],
- "summary": "Get workflow tag history",
- "description": "Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.",
- "operationId": "get_workflow_tag_history_v1_workflows__workflow_permanent_id__tags_history_get",
+ "summary": "Batch get agent tags",
+ "description": "Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.",
+ "operationId": "batch_get_workflow_tags_v1_workflow_tags_get",
"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": "limit",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "maximum": 500,
- "minimum": 1,
- "description": "Max events to return",
- "default": 100,
- "title": "Limit"
- },
- "description": "Max events to return"
- },
- {
- "name": "since",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "format": "date-time"
- },
- {
- "type": "null"
- }
- ],
- "description": "Only return events at or after this timestamp",
- "title": "Since"
- },
- "description": "Only return events at or after this timestamp"
- },
- {
- "name": "key",
+ "name": "workflow_permanent_ids",
"in": "query",
"required": false,
"schema": {
@@ -1688,10 +1569,13 @@
"type": "null"
}
],
- "description": "Filter to events for a single tag key",
- "title": "Key"
+ "description": "Comma-separated workflow permanent IDs",
+ "examples": [
+ "wpid_123,wpid_456"
+ ],
+ "title": "Workflow Permanent Ids"
},
- "description": "Filter to events for a single tag key"
+ "description": "Comma-separated workflow permanent IDs"
},
{
"name": "x-api-key",
@@ -1714,211 +1598,7 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved tag history",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/TagHistoryResponse"
- }
- }
- }
- },
- "404": {
- "description": "Workflow not found"
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "get_workflow_tag_history"
- }
- },
- "/v1/tag-keys": {
- "get": {
- "tags": [
- "Workflow Tags"
- ],
- "summary": "List tag keys",
- "description": "List all tag keys registered for the organization with their descriptions.",
- "operationId": "list_tag_keys_v1_tag_keys_get",
- "parameters": [
- {
- "name": "x-api-key",
- "in": "header",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
- },
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully retrieved tag keys",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/TagKey"
- },
- "title": "Response List Tag Keys V1 Tag Keys Get"
- }
- }
- }
- },
- "422": {
- "description": "Validation Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- }
- }
- },
- "x-fern-sdk-method-name": "list_tag_keys"
- }
- },
- "/v1/tag-keys/{key}": {
- "patch": {
- "tags": [
- "Workflow Tags"
- ],
- "summary": "Update tag key",
- "description": "Update the description for a tag key.",
- "operationId": "update_tag_key_v1_tag_keys__key__patch",
- "parameters": [
- {
- "name": "key",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "Tag key to update",
- "title": "Key"
- },
- "description": "Tag key 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/TagKeyUpdate"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully updated tag key",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/TagKey"
- }
- }
- }
- },
- "404": {
- "description": "Tag key not found"
- },
- "422": {
- "description": "Description too long"
- }
- },
- "x-fern-sdk-method-name": "update_tag_key"
- }
- },
- "/v1/workflow-tags": {
- "get": {
- "tags": [
- "Workflow Tags"
- ],
- "summary": "Batch get workflow tags",
- "description": "Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.",
- "operationId": "batch_get_workflow_tags_v1_workflow_tags_get",
- "parameters": [
- {
- "name": "workflow_permanent_ids",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Comma-separated workflow permanent IDs",
- "examples": [
- "wpid_123,wpid_456"
- ],
- "title": "Workflow Permanent Ids"
- },
- "description": "Comma-separated workflow permanent IDs"
- },
- {
- "name": "x-api-key",
- "in": "header",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
- },
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully retrieved tags",
+ "description": "Successfully retrieved tags",
"content": {
"application/json": {
"schema": {
@@ -1941,13 +1621,14 @@
}
}
},
+ "x-hidden": true,
"x-fern-sdk-method-name": "batch_get_workflow_tags"
},
"post": {
"tags": [
- "Workflow Tags"
+ "Agent Tags"
],
- "summary": "Batch get workflow tags (POST)",
+ "summary": "Batch get agent tags (POST)",
"description": "Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).",
"operationId": "batch_get_workflow_tags_post_v1_workflow_tags_post",
"parameters": [
@@ -2005,6 +1686,7 @@
}
}
},
+ "x-hidden": true,
"x-fern-sdk-method-name": "batch_get_workflow_tags_post"
}
},
@@ -2151,10 +1833,9 @@
"/v1/runs/{run_id}/retry_webhook": {
"post": {
"tags": [
- "Agent",
- "Workflow Runs"
+ "Agents"
],
- "summary": "Retry run webhook",
+ "summary": "Replay a run webhook",
"description": "Retry sending the webhook for a run",
"operationId": "retry_run_webhook_v1_runs__run_id__retry_webhook_post",
"parameters": [
@@ -2251,9 +1932,7 @@
"/v1/runs/{run_id}/timeline": {
"get": {
"tags": [
- "Agent",
- "Workflow Runs",
- "Workflows"
+ "Agents"
],
"summary": "Get run timeline",
"description": "Get timeline for a run (workflow run or task_v2 run)",
@@ -2368,66 +2047,82 @@
}
}
},
- "/v1/workflows/runs/{workflow_run_id}/retry": {
- "post": {
+ "/v1/runs": {
+ "get": {
"tags": [
- "Workflow Runs",
- "Workflows"
+ "agent"
],
- "summary": "Retry workflow run",
- "description": "Retry a workflow run using the original run parameters.",
- "operationId": "retry_workflow_run_v1_workflows_runs__workflow_run_id__retry_post",
+ "summary": "Get Runs V2",
+ "operationId": "get_runs_v2_v1_runs_get",
"parameters": [
{
- "name": "workflow_run_id",
- "in": "path",
- "required": true,
+ "name": "page",
+ "in": "query",
+ "required": false,
"schema": {
- "type": "string",
- "description": "The id of the workflow run to retry.",
- "examples": [
- "wr_123"
- ],
- "title": "Workflow Run Id"
- },
- "description": "The id of the workflow run to retry."
+ "type": "integer",
+ "maximum": 100,
+ "minimum": 1,
+ "default": 1,
+ "title": "Page"
+ }
},
{
- "name": "x-api-key",
- "in": "header",
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "maximum": 100,
+ "minimum": 1,
+ "default": 10,
+ "title": "Page Size"
+ }
+ },
+ {
+ "name": "status",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/RunStatus"
+ }
},
{
"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."
+ "title": "Status"
+ }
},
{
- "name": "x-max-steps-override",
- "in": "header",
+ "name": "search_key",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
{
- "type": "integer"
+ "type": "string",
+ "minLength": 3
},
{
"type": "null"
}
],
- "title": "X-Max-Steps-Override"
- }
+ "description": "Case-insensitive substring search (min 3 chars for trigram index).",
+ "examples": [
+ "login_url",
+ "wr_abc123"
+ ],
+ "title": "Search Key"
+ },
+ "description": "Case-insensitive substring search (min 3 chars for trigram index)."
},
{
- "name": "x-user-agent",
+ "name": "x-api-key",
"in": "header",
"required": false,
"schema": {
@@ -2439,27 +2134,27 @@
"type": "null"
}
],
- "title": "X-User-Agent"
- }
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
"responses": {
"200": {
- "description": "Successfully retried workflow run",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TaskRunListItem"
+ },
+ "title": "Response Get Runs V2 V1 Runs Get"
}
}
}
},
- "400": {
- "description": "Workflow run is not retryable"
- },
- "404": {
- "description": "Workflow run not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -2471,83 +2166,81 @@
}
}
},
- "x-fern-sdk-method-name": "retry_workflow_run"
+ "x-hidden": true,
+ "x-fern-sdk-method-name": "get_runs_v2"
}
},
- "/v1/runs": {
- "get": {
+ "/v1/upload_file": {
+ "post": {
"tags": [
- "agent"
+ "Files"
],
- "summary": "Get Runs V2",
- "operationId": "get_runs_v2_v1_runs_get",
+ "summary": "Upload File",
+ "operationId": "upload_file_v1_upload_file_post",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "maximum": 100,
- "minimum": 1,
- "default": 1,
- "title": "Page"
- }
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "maximum": 100,
- "minimum": 1,
- "default": 10,
- "title": "Page Size"
- }
- },
- {
- "name": "status",
- "in": "query",
+ "name": "x-api-key",
+ "in": "header",
"required": false,
"schema": {
"anyOf": [
{
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/RunStatus"
- }
+ "type": "string"
},
{
"type": "null"
}
],
- "title": "Status"
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_upload_file_v1_upload_file_post"
+ }
}
- },
- {
- "name": "search_key",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "minLength": 3
- },
- {
- "type": "null"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UploadFileResponse"
}
- ],
- "description": "Case-insensitive substring search (min 3 chars for trigram index).",
- "examples": [
- "login_url",
- "wr_abc123"
- ],
- "title": "Search Key"
- },
- "description": "Case-insensitive substring search (min 3 chars for trigram index)."
+ }
+ }
},
+ "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",
@@ -2567,21 +2260,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/CreateBrowserProfileRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully created browser profile",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/TaskRunListItem"
- },
- "title": "Response Get Runs V2 V1 Runs Get"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
+ "400": {
+ "description": "Invalid request - missing source or source not found"
+ },
+ "409": {
+ "description": "Browser profile name already exists"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2593,17 +2298,29 @@
}
}
},
- "x-fern-sdk-method-name": "get_runs_v2"
- }
- },
- "/v1/workflows/runs": {
+ "x-fern-sdk-method-name": "create_browser_profile",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\n# Create a browser profile from a persistent browser session\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n browser_session_id=\"pbs_123\",\n)\nprint(browser_profile)\n\n# Or create from a workflow run with persist_browser_session=True\nbrowser_profile = await skyvern.browser_profiles.create_browser_profile(\n name=\"My Profile\",\n workflow_run_id=\"wr_123\",\n)\nprint(browser_profile)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\n// Create a browser profile from a persistent browser session\nconst browserProfile = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n browser_session_id: \"pbs_123\",\n});\nconsole.log(browserProfile);\n\n// Or create from a workflow run with persist_browser_session=True\nconst browserProfile2 = await skyvern.browserProfiles.createBrowserProfile({\n name: \"My Profile\",\n workflow_run_id: \"wr_123\",\n});\nconsole.log(browserProfile2);\n"
+ }
+ ]
+ }
+ ]
+ },
"get": {
"tags": [
- "Workflow Runs"
+ "Browser Profiles"
],
- "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",
+ "summary": "List browser profiles",
+ "description": "Get all browser profiles for the organization",
+ "operationId": "list_browser_profiles_v1_browser_profiles_get",
"parameters": [
{
"name": "page",
@@ -2612,11 +2329,9 @@
"schema": {
"type": "integer",
"minimum": 1,
- "description": "Page number for pagination.",
"default": 1,
"title": "Page"
- },
- "description": "Page number for pagination."
+ }
},
{
"name": "page_size",
@@ -2625,32 +2340,21 @@
"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",
+ "name": "include_deleted",
"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"
+ "type": "boolean",
+ "description": "Include deleted browser profiles",
+ "default": false,
+ "title": "Include Deleted"
},
- "description": "Filter by one or more run statuses."
+ "description": "Include deleted browser profiles"
},
{
"name": "search_key",
@@ -2659,55 +2363,29 @@
"schema": {
"anyOf": [
{
- "type": "string",
- "maxLength": 500
+ "type": "string"
},
{
"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.",
+ "description": "Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.",
"examples": [
- "login_url",
- "credential_value",
- "wr_abc123"
+ "my_profile",
+ "production"
],
"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."
+ "description": "Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches."
},
{
- "name": "error_code",
- "in": "query",
+ "name": "x-api-key",
+ "in": "header",
"required": false,
"schema": {
"anyOf": [
{
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
- }
- ],
- "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
- "examples": [
- "INVALID_CREDENTIALS",
- "LOGIN_FAILED",
- "CAPTCHA_DETECTED"
- ],
- "title": "Error Code"
- },
- "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution."
- },
- {
- "name": "x-api-key",
- "in": "header",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
+ "type": "string"
},
{
"type": "null"
@@ -2721,15 +2399,15 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser profiles",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/WorkflowRun"
+ "$ref": "#/components/schemas/BrowserProfile"
},
- "title": "Response Get Workflow Runs V1 Workflows Runs Get"
+ "title": "Response List Browser Profiles V1 Browser Profiles Get"
}
}
}
@@ -2745,122 +2423,45 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow_runs"
+ "x-fern-sdk-method-name": "list_browser_profiles",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profiles = await skyvern.browser_profiles.list_browser_profiles()\nprint(browser_profiles)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfiles = await skyvern.browserProfiles.listBrowserProfiles();\nconsole.log(browserProfiles);\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/workflows/{workflow_id}/runs": {
+ "/v1/browser_profiles/{profile_id}": {
"get": {
"tags": [
- "Workflow Runs",
- "Workflows"
+ "Browser Profiles"
],
- "summary": "List runs for a workflow",
- "description": "List runs for a specific workflow.\n\nSupports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.\n\n### search_key\n\nCase-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.\n\n### error_code\n\nExact-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`.",
- "operationId": "get_workflow_runs_by_id_v1_workflows__workflow_id__runs_get",
+ "summary": "Get browser profile",
+ "description": "Get a specific browser profile by ID",
+ "operationId": "get_browser_profile_v1_browser_profiles__profile_id__get",
"parameters": [
{
- "name": "workflow_id",
+ "name": "profile_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Id"
- }
- },
- {
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number for pagination.",
- "default": 1,
- "title": "Page"
- },
- "description": "Page number for pagination."
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of runs to return per page.",
- "default": 10,
- "title": "Page Size"
- },
- "description": "Number of runs to return per page."
- },
- {
- "name": "status",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRunStatus"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter by one or more run statuses.",
- "title": "Status"
- },
- "description": "Filter by one or more run statuses."
- },
- {
- "name": "search_key",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
- }
- ],
- "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.",
- "examples": [
- "login_url",
- "credential_value",
- "wr_abc123"
- ],
- "title": "Search Key"
- },
- "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching."
- },
- {
- "name": "error_code",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string",
- "maxLength": 500
- },
- {
- "type": "null"
- }
- ],
- "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
+ "description": "The ID of the browser profile. browser_profile_id starts with `bp_`",
"examples": [
- "INVALID_CREDENTIALS",
- "LOGIN_FAILED",
- "CAPTCHA_DETECTED"
+ "bp_123456"
],
- "title": "Error Code"
+ "title": "Profile 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": "The ID of the browser profile. browser_profile_id starts with `bp_`"
},
{
"name": "x-api-key",
@@ -2883,19 +2484,18 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved browser profile",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/WorkflowRun"
- },
- "title": "Response Get Workflow Runs By Id V1 Workflows Workflow Id Runs Get"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
+ "404": {
+ "description": "Browser profile not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2907,51 +2507,43 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow_runs_by_id"
- }
- },
- "/v1/workflows/{workflow_permanent_id}": {
- "get": {
+ "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"
+ }
+ ]
+ }
+ ]
+ },
+ "patch": {
"tags": [
- "Workflows"
+ "Browser Profiles"
],
- "summary": "Get Workflow",
- "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
+ "summary": "Update browser profile",
+ "description": "Update a browser profile's name and/or description",
+ "operationId": "update_browser_profile_v1_browser_profiles__profile_id__patch",
"parameters": [
{
- "name": "workflow_permanent_id",
+ "name": "profile_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "title": "Workflow Permanent Id"
- }
- },
- {
- "name": "version",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
+ "description": "The ID of the browser profile to update. browser_profile_id starts with `bp_`",
+ "examples": [
+ "bp_123456"
],
- "title": "Version"
- }
- },
- {
- "name": "template",
- "in": "query",
- "required": false,
- "schema": {
- "type": "boolean",
- "default": false,
- "title": "Template"
- }
+ "title": "Profile Id"
+ },
+ "description": "The ID of the browser profile to update. browser_profile_id starts with `bp_`"
},
{
"name": "x-api-key",
@@ -2972,17 +2564,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/UpdateBrowserProfileRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully updated browser profile",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Workflow"
+ "$ref": "#/components/schemas/BrowserProfile"
}
}
}
},
+ "404": {
+ "description": "Browser profile not found"
+ },
+ "409": {
+ "description": "Browser profile name already exists"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -2994,36 +2602,43 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow"
- }
- },
- "/v1/workflows/{workflow_permanent_id}/versions": {
- "get": {
- "tags": [
- "Workflows"
- ],
- "summary": "Get Workflow Versions",
- "description": "Get all versions of a workflow by its permanent ID.",
- "operationId": "get_workflow_versions_v1_workflows__workflow_permanent_id__versions_get",
- "parameters": [
+ "x-fern-sdk-method-name": "update_browser_profile",
+ "x-fern-examples": [
{
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "title": "Workflow Permanent Id"
- }
- },
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_profile = await skyvern.browser_profiles.update_browser_profile(\n \"bp_123\",\n name=\"Renamed Profile\",\n description=\"Updated description\",\n)\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.updateBrowserProfile(\"bp_123\", {\n name: \"Renamed Profile\",\n description: \"Updated description\",\n});\nconsole.log(browserProfile);\n"
+ }
+ ]
+ }
+ ]
+ },
+ "delete": {
+ "tags": [
+ "Browser Profiles"
+ ],
+ "summary": "Delete browser profile",
+ "description": "Delete a browser profile (soft delete)",
+ "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
+ "parameters": [
{
- "name": "template",
- "in": "query",
- "required": false,
+ "name": "profile_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "boolean",
- "default": false,
- "title": "Template"
- }
+ "type": "string",
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`",
+ "examples": [
+ "bp_123456"
+ ],
+ "title": "Profile Id"
+ },
+ "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`"
},
{
"name": "x-api-key",
@@ -3045,19 +2660,11 @@
}
],
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Workflow"
- },
- "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
- }
- }
- }
+ "204": {
+ "description": "Successfully deleted browser profile"
+ },
+ "404": {
+ "description": "Browser profile not found"
},
"422": {
"description": "Validation Error",
@@ -3070,32 +2677,32 @@
}
}
},
- "x-fern-sdk-method-name": "get_workflow_versions"
+ "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/workflows/{workflow_permanent_id}/browser_session/reset_profile": {
+ "/v1/browser_sessions": {
"post": {
"tags": [
- "Workflows"
+ "Browser Sessions"
],
- "summary": "Reset persisted browser profile",
- "description": "Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.",
- "operationId": "reset_workflow_browser_profile",
+ "summary": "Create a session",
+ "description": "Create a browser session that persists across multiple runs",
+ "operationId": "create_browser_session_v1_browser_sessions_post",
"parameters": [
- {
- "name": "workflow_permanent_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The permanent ID of the workflow. Starts with `wpid_`.",
- "examples": [
- "wpid_123"
- ],
- "title": "Workflow Permanent Id"
- },
- "description": "The permanent ID of the workflow. Starts with `wpid_`."
- },
{
"name": "x-api-key",
"in": "header",
@@ -3115,12 +2722,34 @@
"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": {
- "204": {
- "description": "Successfully cleared persisted browser profile"
+ "200": {
+ "description": "Successfully created browser session",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BrowserSessionResponse"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
},
"404": {
- "description": "Workflow not found"
+ "description": "Browser profile not found"
},
"422": {
"description": "Validation Error",
@@ -3131,20 +2760,31 @@
}
}
}
- },
- "500": {
- "description": "Storage deletion failed; retry"
}
- }
- }
- },
- "/v1/upload_file": {
- "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": [
- "Files"
+ "Browser Sessions"
],
- "summary": "Upload File",
- "operationId": "upload_file_v1_upload_file_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": "x-api-key",
@@ -3165,27 +2805,24 @@
"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",
+ "description": "Successfully retrieved all active browser sessions",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UploadFileResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/BrowserSessionResponse"
+ },
+ "title": "Response Get Browser Sessions V1 Browser Sessions Get"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3197,18 +2834,46 @@
}
}
},
- "x-fern-sdk-method-name": "upload_file"
+ "x-fern-sdk-method-name": "get_browser_sessions",
+ "x-fern-examples": [
+ {
+ "code-samples": [
+ {
+ "sdk": "python",
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_sessions = await skyvern.get_browser_sessions()\nprint(browser_sessions)\n"
+ },
+ {
+ "sdk": "typescript",
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserSessions = await skyvern.getBrowserSessions();\nconsole.log(browserSessions);\n"
+ }
+ ]
+ }
+ ]
}
},
- "/v1/browser_profiles": {
+ "/v1/browser_sessions/{browser_session_id}/close": {
"post": {
"tags": [
- "Browser Profiles"
+ "Browser Sessions"
],
- "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",
+ "summary": "Close a session",
+ "description": "Close a session. Once closed, the session cannot be used again.",
+ "operationId": "close_browser_session_v1_browser_sessions__browser_session_id__close_post",
"parameters": [
+ {
+ "name": "browser_session_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`",
+ "examples": [
+ "pbs_123456"
+ ],
+ "title": "Browser Session Id"
+ },
+ "description": "The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3228,32 +2893,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/CreateBrowserProfileRequest"
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully created browser profile",
+ "description": "Successfully closed browser session",
"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"
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
},
"422": {
"description": "Validation Error",
@@ -3266,85 +2916,45 @@
}
}
},
- "x-fern-sdk-method-name": "create_browser_profile",
+ "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\")\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.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\" });\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.closeBrowserSession(\"pbs_123\");\n"
}
]
}
]
- },
+ }
+ },
+ "/v1/browser_sessions/{browser_session_id}": {
"get": {
"tags": [
- "Browser Profiles"
+ "Browser Sessions"
],
- "summary": "List browser profiles",
- "description": "Get all browser profiles for the organization",
- "operationId": "list_browser_profiles_v1_browser_profiles_get",
+ "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": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "default": 1,
- "title": "Page"
- }
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "default": 10,
- "title": "Page Size"
- }
- },
- {
- "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": "search_key",
- "in": "query",
- "required": false,
+ "name": "browser_session_id",
+ "in": "path",
+ "required": true,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.",
+ "type": "string",
+ "description": "The ID of the browser session. browser_session_id starts with `pbs_`",
"examples": [
- "my_profile",
- "production"
+ "pbs_123456"
],
- "title": "Search Key"
+ "title": "Browser Session Id"
},
- "description": "Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches."
+ "description": "The ID of the browser session. browser_session_id starts with `pbs_`"
},
{
"name": "x-api-key",
@@ -3367,19 +2977,21 @@
],
"responses": {
"200": {
- "description": "Successfully retrieved browser profiles",
+ "description": "Successfully retrieved browser session details",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/BrowserProfile"
- },
- "title": "Response List Browser Profiles V1 Browser Profiles Get"
+ "$ref": "#/components/schemas/BrowserSessionResponse"
}
}
}
},
+ "403": {
+ "description": "Unauthorized - Invalid or missing authentication"
+ },
+ "404": {
+ "description": "Browser session not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -3391,46 +3003,32 @@
}
}
},
- "x-fern-sdk-method-name": "list_browser_profiles",
+ "x-fern-sdk-method-name": "get_browser_session",
"x-fern-examples": [
{
"code-samples": [
{
"sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nbrowser_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\")\nbrowser_session = await skyvern.get_browser_session(browser_session_id=\"pbs_123\")\nprint(browser_session)\n"
},
{
"sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst browserProfiles = await skyvern.browserProfiles.listBrowserProfiles();\nconsole.log(browserProfiles);\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/browser_profiles/{profile_id}": {
- "get": {
+ "/v1/credentials/totp": {
+ "post": {
"tags": [
- "Browser Profiles"
+ "Credentials"
],
- "summary": "Get browser profile",
- "description": "Get a specific browser profile by ID",
- "operationId": "get_browser_profile_v1_browser_profiles__profile_id__get",
+ "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": "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",
@@ -3450,20 +3048,27 @@
"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": "Successfully retrieved browser profile",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserProfile"
+ "$ref": "#/components/schemas/TOTPCode"
}
}
}
},
- "404": {
- "description": "Browser profile not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3475,44 +3080,32 @@
}
}
},
- "x-fern-sdk-method-name": "get_browser_profile",
+ "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\")\nbrowser_profile = await skyvern.browser_profiles.get_browser_profile(\"bp_123\")\nprint(browser_profile)\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\" });\nconst browserProfile = await skyvern.browserProfiles.getBrowserProfile(\"bp_123\");\nconsole.log(browserProfile);\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"
}
]
}
]
- },
- "patch": {
+ }
+ },
+ "/v1/credentials": {
+ "post": {
"tags": [
- "Browser Profiles"
+ "Credentials"
],
- "summary": "Update browser profile",
- "description": "Update a browser profile's name and/or description",
- "operationId": "update_browser_profile_v1_browser_profiles__profile_id__patch",
+ "summary": "Create credential",
+ "description": "Creates a new credential for the current organization",
+ "operationId": "create_credential_v1_credentials_post",
"parameters": [
- {
- "name": "profile_id",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string",
- "description": "The ID of the browser profile to update. browser_profile_id starts with `bp_`",
- "examples": [
- "bp_123456"
- ],
- "title": "Profile Id"
- },
- "description": "The ID of the browser profile to update. browser_profile_id starts with `bp_`"
- },
{
"name": "x-api-key",
"in": "header",
@@ -3537,28 +3130,37 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/UpdateBrowserProfileRequest"
+ "$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": {
- "description": "Successfully updated browser profile",
+ "201": {
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserProfile"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
},
- "404": {
- "description": "Browser profile not found"
- },
- "409": {
- "description": "Browser profile name already exists"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3570,69 +3172,164 @@
}
}
},
- "x-fern-sdk-method-name": "update_browser_profile",
+ "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\")\nbrowser_profile = await skyvern.browser_profiles.update_browser_profile(\n \"bp_123\",\n name=\"Renamed Profile\",\n description=\"Updated description\",\n)\nprint(browser_profile)\n"
+ "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\" });\nconst browserProfile = await skyvern.browserProfiles.updateBrowserProfile(\"bp_123\", {\n name: \"Renamed Profile\",\n description: \"Updated description\",\n});\nconsole.log(browserProfile);\n"
+ "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"
}
]
}
]
},
- "delete": {
+ "get": {
"tags": [
- "Browser Profiles"
+ "Credentials"
],
- "summary": "Delete browser profile",
- "description": "Delete a browser profile (soft delete)",
- "operationId": "delete_browser_profile_v1_browser_profiles__profile_id__delete",
+ "summary": "Get all credentials",
+ "description": "Retrieves a paginated list of credentials for the current organization",
+ "operationId": "get_credentials_v1_credentials_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 to delete. browser_profile_id starts with `bp_`",
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination",
"examples": [
- "bp_123456"
+ 1
],
- "title": "Profile Id"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page"
+ },
+ "default": 1,
+ "title": "Page"
},
- "description": "The ID of the browser profile to delete. browser_profile_id starts with `bp_`"
+ "description": "Page number for pagination"
},
{
- "name": "x-api-key",
- "in": "header",
+ "name": "page_size",
+ "in": "query",
"required": false,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": "integer",
+ "minimum": 1,
+ "description": "Number of items per page",
+ "examples": [
+ 10
],
- "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."
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "page_size"
+ },
+ "default": 10,
+ "title": "Page Size"
+ },
+ "description": "Number of items per page"
+ },
+ {
+ "name": "vault_type",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/CredentialVaultType"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter credentials by vault type (e.g. 'custom', 'bitwarden', 'azure_vault')",
+ "title": "Vault Type"
+ },
+ "description": "Filter credentials by vault type (e.g. 'custom', 'bitwarden', 'azure_vault')"
+ },
+ {
+ "name": "credential_type",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/skyvern__forge__sdk__schemas__credentials__CredentialType"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter credentials by type (e.g. 'password', 'credit_card', 'secret')",
+ "title": "Credential Type"
+ },
+ "description": "Filter credentials by type (e.g. 'password', 'credit_card', 'secret')"
+ },
+ {
+ "name": "search",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 200
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Case-insensitive search across credential name, username, secret label, and card details",
+ "title": "Search"
+ },
+ "description": "Case-insensitive search across credential name, username, secret label, and card details"
+ },
+ {
+ "name": "x-api-key",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
"responses": {
- "204": {
- "description": "Successfully deleted browser profile"
- },
- "404": {
- "description": "Browser profile not found"
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CredentialResponse"
+ },
+ "title": "Response Get Credentials V1 Credentials Get"
+ }
+ }
+ }
},
"422": {
"description": "Validation Error",
@@ -3645,32 +3342,49 @@
}
}
},
- "x-fern-sdk-method-name": "delete_browser_profile",
+ "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\")\nawait skyvern.browser_profiles.delete_browser_profile(\"bp_123\")\n"
+ "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\" });\nawait skyvern.browserProfiles.deleteBrowserProfile(\"bp_123\");\n"
+ "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/browser_sessions": {
+ "/v1/credentials/{credential_id}/update": {
"post": {
"tags": [
- "Browser Sessions"
+ "Credentials"
],
- "summary": "Create a session",
- "description": "Create a browser session that persists across multiple runs",
- "operationId": "create_browser_session_v1_browser_sessions_post",
+ "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": "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",
@@ -3691,12 +3405,24 @@
}
],
"requestBody": {
+ "required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateBrowserSessionRequest",
- "default": {
- "timeout": 60
+ "$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"
}
}
}
@@ -3704,21 +3430,15 @@
},
"responses": {
"200": {
- "description": "Successfully created browser session",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
+ "$ref": "#/components/schemas/CredentialResponse"
}
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "404": {
- "description": "Browser profile not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3730,30 +3450,49 @@
}
}
},
- "x-fern-sdk-method-name": "create_browser_session",
+ "x-fern-sdk-method-name": "update_credential",
"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"
+ "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nupdated = await skyvern.update_credential(\n credential_id=\"cred_123\",\n name=\"My Credential\",\n credential_type=\"password\",\n credential={\"username\": \"[email protected]\", \"password\": \"newpassword123\"},\n)\nprint(updated)\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"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst updated = await skyvern.updateCredential(\"cred_123\", {\n name: \"My Credential\",\n credential_type: \"password\",\n credential: { username: \"[email protected]\", password: \"newpassword123\" }\n});\nconsole.log(updated);\n"
}
]
}
]
- },
- "get": {
+ }
+ },
+ "/v1/credentials/{credential_id}/delete": {
+ "post": {
"tags": [
- "Browser Sessions"
+ "Credentials"
],
- "summary": "Get active browser sessions",
- "description": "Get all active browser sessions for the organization",
- "operationId": "get_browser_sessions_v1_browser_sessions_get",
+ "summary": "Delete credential",
+ "description": "Deletes a specific credential by its ID",
+ "operationId": "delete_credential_v1_credentials__credential_id__delete_post",
"parameters": [
+ {
+ "name": "credential_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The unique identifier of the credential to delete",
+ "examples": [
+ "cred_1234567890"
+ ],
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential Id"
+ },
+ "description": "The unique identifier of the credential to delete"
+ },
{
"name": "x-api-key",
"in": "header",
@@ -3774,22 +3513,8 @@
}
],
"responses": {
- "200": {
- "description": "Successfully retrieved all active browser sessions",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
- },
- "title": "Response Get Browser Sessions V1 Browser Sessions Get"
- }
- }
- }
- },
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
+ "204": {
+ "description": "Successful Response"
},
"422": {
"description": "Validation Error",
@@ -3802,45 +3527,48 @@
}
}
},
- "x-fern-sdk-method-name": "get_browser_sessions",
+ "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\")\nbrowser_sessions = await skyvern.get_browser_sessions()\nprint(browser_sessions)\n"
+ "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\" });\nconst browserSessions = await skyvern.getBrowserSessions();\nconsole.log(browserSessions);\n"
+ "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nawait skyvern.deleteCredential(\"cred_123\");\n"
}
]
}
]
}
},
- "/v1/browser_sessions/{browser_session_id}/close": {
- "post": {
+ "/v1/credentials/{credential_id}": {
+ "get": {
"tags": [
- "Browser Sessions"
+ "Credentials"
],
- "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": "Get credential by ID",
+ "description": "Retrieves a specific credential by its ID",
+ "operationId": "get_credential_v1_credentials__credential_id__get",
"parameters": [
{
- "name": "browser_session_id",
+ "name": "credential_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_`",
+ "description": "The unique identifier of the credential",
"examples": [
- "pbs_123456"
+ "cred_1234567890"
],
- "title": "Browser Session Id"
+ "openapi_extra": {
+ "x-fern-sdk-parameter-name": "credential_id"
+ },
+ "title": "Credential 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_`"
+ "description": "The unique identifier of the credential"
},
{
"name": "x-api-key",
@@ -3863,16 +3591,15 @@
],
"responses": {
"200": {
- "description": "Successfully closed browser session",
+ "description": "Successful Response",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/CredentialResponse"
+ }
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3884,46 +3611,32 @@
}
}
},
- "x-fern-sdk-method-name": "close_browser_session",
+ "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\")\nawait skyvern.close_browser_session(browser_session_id=\"pbs_123\")\n"
+ "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\" });\nawait skyvern.closeBrowserSession(\"pbs_123\");\n"
+ "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/browser_sessions/{browser_session_id}": {
- "get": {
+ "/v1/run/tasks/login": {
+ "post": {
"tags": [
- "Browser Sessions"
+ "Agents"
],
- "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": "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": "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",
@@ -3941,25 +3654,45 @@
"title": "X-Api-Key"
},
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ },
+ {
+ "name": "x-user-agent",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "X-User-Agent"
+ }
}
],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LoginRequest"
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved browser session details",
+ "description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/BrowserSessionResponse"
+ "$ref": "#/components/schemas/WorkflowRunResponse"
}
}
}
},
- "403": {
- "description": "Unauthorized - Invalid or missing authentication"
- },
- "404": {
- "description": "Browser session not found"
- },
"422": {
"description": "Validation Error",
"content": {
@@ -3971,31 +3704,49 @@
}
}
},
- "x-fern-sdk-method-name": "get_browser_session",
+ "x-hidden": true,
+ "x-excluded": true,
+ "x-fern-sdk-method-name": "login",
"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": "# 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": "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": "// 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/credentials/totp": {
+ "/v1/run/tasks/download_files": {
"post": {
"tags": [
- "Credentials"
+ "Agents"
],
- "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": "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",
@@ -4014,6 +3765,22 @@
"title": "X-Api-Key"
},
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ },
+ {
+ "name": "x-user-agent",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "X-User-Agent"
+ }
}
],
"requestBody": {
@@ -4021,7 +3788,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TOTPCodeCreate"
+ "$ref": "#/components/schemas/DownloadFilesRequest"
}
}
}
@@ -4032,7 +3799,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/TOTPCode"
+ "$ref": "#/components/schemas/WorkflowRunResponse"
}
}
}
@@ -4048,31 +3815,33 @@
}
}
},
- "x-fern-sdk-method-name": "send_totp_code",
+ "x-hidden": true,
+ "x-excluded": true,
+ "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.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\")\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.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\" });\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"
}
]
}
]
}
},
- "/v1/credentials": {
+ "/v1/scripts": {
"post": {
"tags": [
- "Credentials"
+ "Scripts"
],
- "summary": "Create credential",
- "description": "Creates a new credential for the current organization",
- "operationId": "create_credential_v1_credentials_post",
+ "summary": "Create script",
+ "description": "Create a new script with optional files and metadata",
+ "operationId": "create_script_v1_scripts_post",
"parameters": [
{
"name": "x-api-key",
@@ -4098,33 +3867,18 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateCredentialRequest",
- "description": "The credential data to create",
- "examples": [
- {
- "name": "My Credential",
- "credential_type": "PASSWORD",
- "credential": {
- "username": "[email protected]",
- "password": "securepassword123",
- "totp": "JBSWY3DPEHPK3PXP"
- }
- }
- ],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "data"
- }
+ "$ref": "#/components/schemas/CreateScriptRequest"
}
}
}
},
"responses": {
- "201": {
+ "200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "$ref": "#/components/schemas/CreateScriptResponse"
}
}
}
@@ -4140,37 +3894,15 @@
}
}
},
- "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"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "create_script"
},
"get": {
"tags": [
- "Credentials"
+ "Scripts"
],
- "summary": "Get all credentials",
- "description": "Retrieves a paginated list of credentials for the current organization",
- "operationId": "get_credentials_v1_credentials_get",
+ "summary": "Get all scripts",
+ "description": "Retrieves a paginated list of scripts for the current organization",
+ "operationId": "get_scripts_v1_scripts_get",
"parameters": [
{
"name": "page",
@@ -4183,9 +3915,6 @@
"examples": [
1
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "page"
- },
"default": 1,
"title": "Page"
},
@@ -4202,32 +3931,11 @@
"examples": [
10
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "page_size"
- },
"default": 10,
"title": "Page Size"
},
"description": "Number of items per page"
},
- {
- "name": "vault_type",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/CredentialVaultType"
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter credentials by vault type (e.g. 'custom', 'bitwarden', 'azure_vault')",
- "title": "Vault Type"
- },
- "description": "Filter credentials by vault type (e.g. 'custom', 'bitwarden', 'azure_vault')"
- },
{
"name": "x-api-key",
"in": "header",
@@ -4255,9 +3963,9 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/CredentialResponse"
+ "$ref": "#/components/schemas/Script"
},
- "title": "Response Get Credentials V1 Credentials Get"
+ "title": "Response Get Scripts V1 Scripts Get"
}
}
}
@@ -4273,48 +3981,31 @@
}
}
},
- "x-fern-sdk-method-name": "get_credentials",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\ncredentials = await skyvern.get_credentials()\nprint(credentials)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst credentials = await skyvern.getCredentials();\nconsole.log(credentials);\n"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "get_scripts"
}
},
- "/v1/credentials/{credential_id}/update": {
- "post": {
+ "/v1/scripts/{script_id}": {
+ "get": {
"tags": [
- "Credentials"
+ "Scripts"
],
- "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": "Get script by ID",
+ "description": "Retrieves a specific script by its ID",
+ "operationId": "get_script_v1_scripts__script_id__get",
"parameters": [
{
- "name": "credential_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the credential to update",
+ "description": "The unique identifier of the script",
"examples": [
- "cred_1234567890"
+ "s_abc123"
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
+ "title": "Script Id"
},
- "description": "The unique identifier of the credential to update"
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4335,37 +4026,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/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"
+ "$ref": "#/components/schemas/Script"
}
}
}
@@ -4381,48 +4048,31 @@
}
}
},
- "x-fern-sdk-method-name": "update_credential",
- "x-fern-examples": [
- {
- "code-samples": [
- {
- "sdk": "python",
- "code": "from skyvern import Skyvern\n\nskyvern = Skyvern(api_key=\"YOUR_API_KEY\")\nupdated = await skyvern.update_credential(\n credential_id=\"cred_123\",\n name=\"My Credential\",\n credential_type=\"password\",\n credential={\"username\": \"[email protected]\", \"password\": \"newpassword123\"},\n)\nprint(updated)\n"
- },
- {
- "sdk": "typescript",
- "code": "import { SkyvernClient } from \"@skyvern/client\";\n\nconst skyvern = new SkyvernClient({ apiKey: \"YOUR_API_KEY\" });\nconst updated = await skyvern.updateCredential(\"cred_123\", {\n name: \"My Credential\",\n credential_type: \"password\",\n credential: { username: \"[email protected]\", password: \"newpassword123\" }\n});\nconsole.log(updated);\n"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "get_script"
}
},
- "/v1/credentials/{credential_id}/delete": {
+ "/v1/scripts/{script_id}/deploy": {
"post": {
"tags": [
- "Credentials"
+ "Scripts"
],
- "summary": "Delete credential",
- "description": "Deletes a specific credential by its ID",
- "operationId": "delete_credential_v1_credentials__credential_id__delete_post",
+ "summary": "Deploy script",
+ "description": "Deploy a script with updated files, creating a new version",
+ "operationId": "deploy_script_v1_scripts__script_id__deploy_post",
"parameters": [
{
- "name": "credential_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the credential to delete",
+ "description": "The unique identifier of the script",
"examples": [
- "cred_1234567890"
+ "s_abc123"
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
+ "title": "Script Id"
},
- "description": "The unique identifier of the credential to delete"
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4443,9 +4093,26 @@
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeployScriptRequest"
+ }
+ }
+ }
+ },
"responses": {
- "204": {
- "description": "Successful Response"
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateScriptResponse"
+ }
+ }
+ }
},
"422": {
"description": "Validation Error",
@@ -4458,48 +4125,31 @@
}
}
},
- "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"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "deploy_script"
}
},
- "/v1/credentials/{credential_id}": {
- "get": {
+ "/v1/scripts/{script_id}/run": {
+ "post": {
"tags": [
- "Credentials"
+ "Scripts"
],
- "summary": "Get credential by ID",
- "description": "Retrieves a specific credential by its ID",
- "operationId": "get_credential_v1_credentials__credential_id__get",
+ "summary": "Run script",
+ "description": "Run a script",
+ "operationId": "run_script_v1_scripts__script_id__run_post",
"parameters": [
{
- "name": "credential_id",
+ "name": "script_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the credential",
+ "description": "The unique identifier of the script",
"examples": [
- "cred_1234567890"
+ "s_abc123"
],
- "openapi_extra": {
- "x-fern-sdk-parameter-name": "credential_id"
- },
- "title": "Credential Id"
+ "title": "Script Id"
},
- "description": "The unique identifier of the credential"
+ "description": "The unique identifier of the script"
},
{
"name": "x-api-key",
@@ -4525,9 +4175,7 @@
"description": "Successful Response",
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/CredentialResponse"
- }
+ "schema": {}
}
}
},
@@ -4541,32 +4189,17 @@
}
}
}
- },
- "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/run/tasks/login": {
+ "/v1/sdk/run_action": {
"post": {
"tags": [
- "Agent"
+ "SDK"
],
- "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": "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": "x-api-key",
@@ -4585,22 +4218,6 @@
"title": "X-Api-Key"
},
"description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
- },
- {
- "name": "x-user-agent",
- "in": "header",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "X-User-Agent"
- }
}
],
"requestBody": {
@@ -4608,7 +4225,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/LoginRequest"
+ "$ref": "#/components/schemas/RunSdkActionRequest"
}
}
}
@@ -4619,7 +4236,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "$ref": "#/components/schemas/RunSdkActionResponse"
}
}
}
@@ -4636,69 +4253,65 @@
}
},
"x-excluded": true,
- "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"
- }
- ]
- }
- ]
+ "x-fern-sdk-method-name": "run_sdk_action"
}
},
- "/v1/run/tasks/download_files": {
- "post": {
+ "/v1/schedules": {
+ "get": {
"tags": [
- "Agent"
+ "Schedules"
],
- "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": "List all schedules for the organization",
+ "operationId": "schedules_list_all",
"parameters": [
{
- "name": "x-api-key",
- "in": "header",
+ "name": "page",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "default": 1,
+ "title": "Page"
+ }
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "maximum": 100,
+ "minimum": 1,
+ "default": 10,
+ "title": "Page Size"
+ }
+ },
+ {
+ "name": "status",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
{
+ "enum": [
+ "active",
+ "paused"
+ ],
"type": "string"
},
{
"type": "null"
}
],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
+ "description": "Filter by status: 'active' or 'paused'",
+ "title": "Status"
},
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ "description": "Filter by status: 'active' or 'paused'"
},
{
- "name": "x-user-agent",
- "in": "header",
+ "name": "search",
+ "in": "query",
"required": false,
"schema": {
"anyOf": [
@@ -4709,27 +4322,37 @@
"type": "null"
}
],
- "title": "X-User-Agent"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/DownloadFilesRequest"
- }
- }
+ "description": "Search by workflow title or schedule name",
+ "title": "Search"
+ },
+ "description": "Search by workflow title or schedule name"
+ },
+ {
+ "name": "x-api-key",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
}
- },
+ ],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkflowRunResponse"
+ "$ref": "#/components/schemas/OrganizationScheduleListResponse"
}
}
}
@@ -4744,34 +4367,32 @@
}
}
}
- },
- "x-excluded": true,
- "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"
- }
- ]
- }
- ]
+ }
}
},
- "/v1/scripts": {
- "post": {
+ "/v1/agents/{workflow_permanent_id}/folder": {
+ "put": {
"tags": [
- "Scripts"
+ "Agent Folders"
],
- "summary": "Create script",
- "description": "Create a new script with optional files and metadata",
- "operationId": "create_script_v1_scripts_post",
+ "summary": "Update agent 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": "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",
@@ -4796,22 +4417,28 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptRequest"
+ "$ref": "#/components/schemas/UpdateWorkflowFolderRequest"
}
}
}
},
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully updated workflow folder",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptResponse"
+ "$ref": "#/components/schemas/Workflow"
}
}
}
},
+ "400": {
+ "description": "Folder not found"
+ },
+ "404": {
+ "description": "Workflow not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -4823,47 +4450,84 @@
}
}
},
- "x-fern-sdk-method-name": "create_script"
- },
- "get": {
+ "x-fern-sdk-method-name": "update_workflow_folder"
+ }
+ },
+ "/v1/agents/{workflow_permanent_id}/tags": {
+ "post": {
"tags": [
- "Scripts"
+ "Agent Tags"
],
- "summary": "Get all scripts",
- "description": "Retrieves a paginated list of scripts for the current organization",
- "operationId": "get_scripts_v1_scripts_get",
+ "summary": "Apply agent tags",
+ "description": "Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.",
+ "operationId": "apply_workflow_tags_v1_workflows__workflow_permanent_id__tags_post",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
+ "name": "workflow_permanent_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Page number for pagination",
+ "type": "string",
+ "description": "Workflow permanent ID",
"examples": [
- 1
+ "wpid_123"
],
- "default": 1,
- "title": "Page"
+ "title": "Workflow Permanent Id"
},
- "description": "Page number for pagination"
+ "description": "Workflow permanent ID"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TagApplyRequest"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successfully applied tag changes",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TagsResponse"
+ }
+ }
+ }
},
+ "404": {
+ "description": "Workflow not found"
+ },
+ "422": {
+ "description": "Invalid tag key or value"
+ }
+ },
+ "x-fern-sdk-method-name": "apply_workflow_tags"
+ },
+ "get": {
+ "tags": [
+ "Agent Tags"
+ ],
+ "summary": "Get agent tags",
+ "description": "Get the current tag state for a workflow.",
+ "operationId": "get_workflow_tags_v1_workflows__workflow_permanent_id__tags_get",
+ "parameters": [
{
- "name": "page_size",
- "in": "query",
- "required": false,
+ "name": "workflow_permanent_id",
+ "in": "path",
+ "required": true,
"schema": {
- "type": "integer",
- "minimum": 1,
- "description": "Number of items per page",
+ "type": "string",
+ "description": "Workflow permanent ID",
"examples": [
- 10
+ "wpid_123"
],
- "default": 10,
- "title": "Page Size"
+ "title": "Workflow Permanent Id"
},
- "description": "Number of items per page"
+ "description": "Workflow permanent ID"
},
{
"name": "x-api-key",
@@ -4886,19 +4550,18 @@
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully retrieved tags",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Script"
- },
- "title": "Response Get Scripts V1 Scripts Get"
+ "$ref": "#/components/schemas/TagsResponse"
}
}
}
},
+ "404": {
+ "description": "Workflow not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -4910,62 +4573,61 @@
}
}
},
- "x-fern-sdk-method-name": "get_scripts"
+ "x-fern-sdk-method-name": "get_workflow_tags"
}
},
- "/v1/scripts/{script_id}": {
- "get": {
+ "/v1/agents/{workflow_permanent_id}/tags/{key}": {
+ "delete": {
"tags": [
- "Scripts"
+ "Agent Tags"
],
- "summary": "Get script by ID",
- "description": "Retrieves a specific script by its ID",
- "operationId": "get_script_v1_scripts__script_id__get",
+ "summary": "Delete agent tag",
+ "description": "Soft-delete a single tag from a workflow. Writes a DELETE event row.",
+ "operationId": "delete_workflow_tag_v1_workflows__workflow_permanent_id__tags__key__delete",
"parameters": [
{
- "name": "script_id",
+ "name": "workflow_permanent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "description": "Workflow permanent ID",
"examples": [
- "s_abc123"
+ "wpid_123"
],
- "title": "Script Id"
+ "title": "Workflow Permanent Id"
},
- "description": "The unique identifier of the script"
+ "description": "Workflow permanent ID"
},
{
- "name": "x-api-key",
- "in": "header",
- "required": false,
+ "name": "key",
+ "in": "path",
+ "required": true,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": "string",
+ "description": "Tag key to delete",
+ "examples": [
+ "env"
],
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
- "title": "X-Api-Key"
+ "title": "Key"
},
- "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ "description": "Tag key to delete"
}
],
"responses": {
"200": {
- "description": "Successful Response",
+ "description": "Successfully deleted tag (or no-op if absent)",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Script"
+ "$ref": "#/components/schemas/TagsResponse"
}
}
}
},
+ "404": {
+ "description": "Workflow not found"
+ },
"422": {
"description": "Validation Error",
"content": {
@@ -4977,31 +4639,499 @@
}
}
},
- "x-fern-sdk-method-name": "get_script"
+ "x-fern-sdk-method-name": "delete_workflow_tag"
}
},
- "/v1/scripts/{script_id}/deploy": {
- "post": {
+ "/v1/agents/{workflow_permanent_id}/tags/history": {
+ "get": {
"tags": [
- "Scripts"
+ "Agent Tags"
],
- "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 agent tag history",
+ "description": "Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.",
+ "operationId": "get_workflow_tag_history_v1_workflows__workflow_permanent_id__tags_history_get",
"parameters": [
{
- "name": "script_id",
+ "name": "workflow_permanent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
+ "description": "Workflow permanent ID",
+ "examples": [
+ "wpid_123"
+ ],
+ "title": "Workflow Permanent Id"
+ },
+ "description": "Workflow permanent ID"
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "maximum": 500,
+ "minimum": 1,
+ "description": "Max events to return",
+ "default": 100,
+ "title": "Limit"
+ },
+ "description": "Max events to return"
+ },
+ {
+ "name": "since",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Only return events at or after this timestamp",
+ "title": "Since"
+ },
+ "description": "Only return events at or after this timestamp"
+ },
+ {
+ "name": "key",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter to events for a single tag key",
+ "title": "Key"
+ },
+ "description": "Filter to events for a single tag key"
+ },
+ {
+ "name": "x-api-key",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved tag history",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TagHistoryResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Workflow not found"
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "x-fern-sdk-method-name": "get_workflow_tag_history"
+ }
+ },
+ "/v1/agents/runs/{workflow_run_id}/retry": {
+ "post": {
+ "tags": [
+ "Agents"
+ ],
+ "summary": "Retry a run",
+ "description": "Retry a workflow run using the original run parameters.",
+ "operationId": "retry_workflow_run_v1_workflows_runs__workflow_run_id__retry_post",
+ "parameters": [
+ {
+ "name": "workflow_run_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the workflow run to retry.",
+ "examples": [
+ "wr_123"
+ ],
+ "title": "Workflow Run Id"
+ },
+ "description": "The id of the workflow run to retry."
+ },
+ {
+ "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."
+ },
+ {
+ "name": "x-max-steps-override",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "X-Max-Steps-Override"
+ }
+ },
+ {
+ "name": "x-user-agent",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "X-User-Agent"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retried workflow run",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkflowRunResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Workflow run is not retryable"
+ },
+ "404": {
+ "description": "Workflow run not found"
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "x-fern-sdk-method-name": "retry_workflow_run"
+ }
+ },
+ "/v1/agents/runs": {
+ "get": {
+ "tags": [
+ "Agents"
+ ],
+ "summary": "Get all runs",
+ "description": "List workflow runs across all workflows for the current organization.\n\nResults are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.\n\n### search_key\n\nA case-insensitive substring search that matches against **any** of the following fields:\n\n| Searched field | Description |\n|---|---|\n| `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |\n| Parameter **key** | The `key` of any workflow parameter definition associated with the run |\n| Parameter **description** | The `description` of any workflow parameter definition |\n| Run parameter **value** | The actual value supplied for any parameter when the run was created |\n| `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |\n\nSoft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.\n\n### error_code\n\nAn **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).\n\n### Combining filters\n\nAll query parameters use AND logic:\n- `?status=failed` — only failed runs\n- `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error\n- `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match",
+ "operationId": "get_workflow_runs_v1_workflows_runs_get",
+ "parameters": [
+ {
+ "name": "page",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination.",
+ "default": 1,
+ "title": "Page"
+ },
+ "description": "Page number for pagination."
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Number of runs to return per page.",
+ "default": 10,
+ "title": "Page Size"
+ },
+ "description": "Number of runs to return per page."
+ },
+ {
+ "name": "status",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRunStatus"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter by one or more run statuses.",
+ "title": "Status"
+ },
+ "description": "Filter by one or more run statuses."
+ },
+ {
+ "name": "search_key",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.",
+ "examples": [
+ "login_url",
+ "credential_value",
+ "wr_abc123"
+ ],
+ "title": "Search Key"
+ },
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching."
+ },
+ {
+ "name": "error_code",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
+ "examples": [
+ "INVALID_CREDENTIALS",
+ "LOGIN_FAILED",
+ "CAPTCHA_DETECTED"
+ ],
+ "title": "Error Code"
+ },
+ "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution."
+ },
+ {
+ "name": "x-api-key",
+ "in": "header",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.",
+ "title": "X-Api-Key"
+ },
+ "description": "Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRun"
+ },
+ "title": "Response Get Workflow Runs V1 Workflows Runs Get"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "x-fern-sdk-method-name": "get_workflow_runs"
+ }
+ },
+ "/v1/agents/{workflow_id}/runs": {
+ "get": {
+ "tags": [
+ "Agents"
+ ],
+ "summary": "Get all runs by agent",
+ "description": "List runs for a specific workflow.\n\nSupports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.\n\n### search_key\n\nCase-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.\n\n### error_code\n\nExact-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`.",
+ "operationId": "get_workflow_runs_by_id_v1_workflows__workflow_id__runs_get",
+ "parameters": [
+ {
+ "name": "workflow_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "title": "Workflow Id"
+ }
+ },
+ {
+ "name": "page",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Page number for pagination.",
+ "default": 1,
+ "title": "Page"
+ },
+ "description": "Page number for pagination."
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "Number of runs to return per page.",
+ "default": 10,
+ "title": "Page Size"
+ },
+ "description": "Number of runs to return per page."
+ },
+ {
+ "name": "status",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRunStatus"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter by one or more run statuses.",
+ "title": "Status"
+ },
+ "description": "Filter by one or more run statuses."
+ },
+ {
+ "name": "search_key",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.",
+ "examples": [
+ "login_url",
+ "credential_value",
+ "wr_abc123"
+ ],
+ "title": "Search Key"
+ },
+ "description": "Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching."
+ },
+ {
+ "name": "error_code",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string",
+ "maxLength": 500
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.",
"examples": [
- "s_abc123"
+ "INVALID_CREDENTIALS",
+ "LOGIN_FAILED",
+ "CAPTCHA_DETECTED"
],
- "title": "Script Id"
+ "title": "Error Code"
},
- "description": "The unique identifier of the script"
+ "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",
@@ -5022,23 +5152,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/DeployScriptRequest"
- }
- }
- }
- },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/CreateScriptResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowRun"
+ },
+ "title": "Response Get Workflow Runs By Id V1 Workflows Workflow Id Runs Get"
}
}
}
@@ -5054,31 +5178,51 @@
}
}
},
- "x-fern-sdk-method-name": "deploy_script"
+ "x-fern-sdk-method-name": "get_workflow_runs_by_id"
}
},
- "/v1/scripts/{script_id}/run": {
- "post": {
+ "/v1/agents/{workflow_permanent_id}": {
+ "get": {
"tags": [
- "Scripts"
+ "Agents"
],
- "summary": "Run script",
- "description": "Run a script",
- "operationId": "run_script_v1_scripts__script_id__run_post",
+ "summary": "Get an agent by id",
+ "operationId": "get_workflow_v1_workflows__workflow_permanent_id__get",
"parameters": [
{
- "name": "script_id",
+ "name": "workflow_permanent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
- "description": "The unique identifier of the script",
- "examples": [
- "s_abc123"
+ "title": "Workflow Permanent Id"
+ }
+ },
+ {
+ "name": "version",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
],
- "title": "Script Id"
- },
- "description": "The unique identifier of the script"
+ "title": "Version"
+ }
+ },
+ {
+ "name": "template",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "default": false,
+ "title": "Template"
+ }
},
{
"name": "x-api-key",
@@ -5104,7 +5248,9 @@
"description": "Successful Response",
"content": {
"application/json": {
- "schema": {}
+ "schema": {
+ "$ref": "#/components/schemas/Workflow"
+ }
}
}
},
@@ -5118,18 +5264,38 @@
}
}
}
- }
+ },
+ "x-fern-sdk-method-name": "get_workflow"
}
},
- "/v1/sdk/run_action": {
- "post": {
+ "/v1/agents/{workflow_permanent_id}/versions": {
+ "get": {
"tags": [
- "SDK"
+ "Agents"
],
- "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": "Get agent 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",
@@ -5149,23 +5315,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/RunSdkActionRequest"
- }
- }
- }
- },
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RunSdkActionResponse"
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Workflow"
+ },
+ "title": "Response Get Workflow Versions V1 Workflows Workflow Permanent Id Versions Get"
}
}
}
@@ -5181,80 +5341,31 @@
}
}
},
- "x-excluded": true,
- "x-fern-sdk-method-name": "run_sdk_action"
+ "x-fern-sdk-method-name": "get_workflow_versions"
}
},
- "/v1/schedules": {
- "get": {
+ "/v1/agents/{workflow_permanent_id}/browser_session/reset_profile": {
+ "post": {
"tags": [
- "Schedules"
+ "Agents"
],
- "summary": "List all schedules for the organization",
- "operationId": "schedules_list_all",
+ "summary": "Reset persisted browser profile",
+ "description": "Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.",
+ "operationId": "reset_workflow_browser_profile",
"parameters": [
{
- "name": "page",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "minimum": 1,
- "default": 1,
- "title": "Page"
- }
- },
- {
- "name": "page_size",
- "in": "query",
- "required": false,
- "schema": {
- "type": "integer",
- "maximum": 100,
- "minimum": 1,
- "default": 10,
- "title": "Page Size"
- }
- },
- {
- "name": "status",
- "in": "query",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "enum": [
- "active",
- "paused"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter by status: 'active' or 'paused'",
- "title": "Status"
- },
- "description": "Filter by status: 'active' or 'paused'"
- },
- {
- "name": "search",
- "in": "query",
- "required": false,
+ "name": "workflow_permanent_id",
+ "in": "path",
+ "required": true,
"schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
+ "type": "string",
+ "description": "The permanent ID of the workflow. Starts with `wpid_`.",
+ "examples": [
+ "wpid_123"
],
- "description": "Search by workflow title or schedule name",
- "title": "Search"
+ "title": "Workflow Permanent Id"
},
- "description": "Search by workflow title or schedule name"
+ "description": "The permanent ID of the workflow. Starts with `wpid_`."
},
{
"name": "x-api-key",
@@ -5276,15 +5387,11 @@
}
],
"responses": {
- "200": {
- "description": "Successful Response",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/OrganizationScheduleListResponse"
- }
- }
- }
+ "204": {
+ "description": "Successfully cleared persisted browser profile"
+ },
+ "404": {
+ "description": "Workflow not found"
},
"422": {
"description": "Validation Error",
@@ -5295,16 +5402,20 @@
}
}
}
+ },
+ "500": {
+ "description": "Storage deletion failed; retry"
}
- }
+ },
+ "x-hidden": true
}
},
- "/v1/workflows/{workflow_permanent_id}/schedules": {
+ "/v1/agents/{workflow_permanent_id}/schedules": {
"post": {
"tags": [
"Schedules"
],
- "summary": "Create a schedule for a workflow",
+ "summary": "Create a schedule for an agent",
"operationId": "schedules_create",
"parameters": [
{
@@ -5372,7 +5483,7 @@
"tags": [
"Schedules"
],
- "summary": "List schedules for a workflow",
+ "summary": "List schedules for an agent",
"operationId": "schedules_list",
"parameters": [
{
@@ -5427,12 +5538,12 @@
}
}
},
- "/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}": {
+ "/v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}": {
"get": {
"tags": [
"Schedules"
],
- "summary": "Get a workflow schedule by id",
+ "summary": "Get an agent schedule by id",
"operationId": "schedules_get",
"parameters": [
{
@@ -5499,7 +5610,7 @@
"tags": [
"Schedules"
],
- "summary": "Update a workflow schedule",
+ "summary": "Update an agent schedule",
"operationId": "schedules_update",
"parameters": [
{
@@ -5576,7 +5687,7 @@
"tags": [
"Schedules"
],
- "summary": "Delete a workflow schedule",
+ "summary": "Delete an agent schedule",
"operationId": "schedules_delete",
"parameters": [
{
@@ -5640,12 +5751,12 @@
}
}
},
- "/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}/enable": {
+ "/v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}/enable": {
"post": {
"tags": [
"Schedules"
],
- "summary": "Enable a workflow schedule",
+ "summary": "Enable an agent schedule",
"operationId": "schedules_enable",
"parameters": [
{
@@ -5709,12 +5820,12 @@
}
}
},
- "/v1/workflows/{workflow_permanent_id}/schedules/{workflow_schedule_id}/disable": {
+ "/v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}/disable": {
"post": {
"tags": [
"Schedules"
],
- "summary": "Disable a workflow schedule",
+ "summary": "Disable an agent schedule",
"operationId": "schedules_disable",
"parameters": [
{
@@ -9510,6 +9621,21 @@
],
"title": "Save Browser Session Intent",
"description": "Whether the user intends to save a browser session, regardless of test outcome"
+ },
+ "folder_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Folder Id",
+ "description": "ID of the credential folder this credential belongs to, if any",
+ "examples": [
+ "cfld_1234567890"
+ ]
}
},
"type": "object",
@@ -17538,6 +17664,11 @@
}
],
"title": "Description"
+ },
+ "workflow_count": {
+ "type": "integer",
+ "title": "Workflow Count",
+ "default": 0
}
},
"type": "object",
@@ -17547,6 +17678,25 @@
"title": "TagKey",
"description": "Tag-key registry entry."
},
+ "TagKeyDeleteResponse": {
+ "properties": {
+ "key": {
+ "type": "string",
+ "title": "Key"
+ },
+ "removed_from_workflow_count": {
+ "type": "integer",
+ "title": "Removed From Workflow Count"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "removed_from_workflow_count"
+ ],
+ "title": "TagKeyDeleteResponse",
+ "description": "Response for ``DELETE /v1/tag-keys/{key}``."
+ },
"TagKeyUpdate": {
"properties": {
"description": {
@@ -21944,6 +22094,12 @@
}
],
"title": "Deleted At"
+ },
+ "agent_id": {
+ "type": "string",
+ "title": "Agent Id",
+ "description": "Alias of `workflow_permanent_id` — the stable agent identifier (starts with `wpid_`).",
+ "readOnly": true
}
},
"type": "object",
@@ -21956,7 +22112,8 @@
"is_saved_task",
"workflow_definition",
"created_at",
- "modified_at"
+ "modified_at",
+ "agent_id"
],
"title": "Workflow"
},
@@ -23721,10 +23878,10 @@
},
"WorkflowRunRequest-Input": {
"properties": {
- "workflow_id": {
+ "agent_id": {
"type": "string",
- "title": "Workflow Id",
- "description": "ID of the workflow to run. Workflow ID starts with `wpid_`.",
+ "title": "Agent Id",
+ "description": "ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.",
"examples": [
"wpid_123"
]
@@ -23960,7 +24117,7 @@
},
"type": "object",
"required": [
- "workflow_id"
+ "agent_id"
],
"title": "WorkflowRunRequest"
},
@@ -23969,7 +24126,7 @@
"workflow_id": {
"type": "string",
"title": "Workflow Id",
- "description": "ID of the workflow to run. Workflow ID starts with `wpid_`.",
+ "description": "ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.",
"examples": [
"wpid_123"
]