Skip to content

Skyvern: List runs

Skyvern runs.getRunsV2: arguments, response, policy and SDK examples.

← Runs operations · Get started

Operation skyvern.get_runs_v2_v1_runs_get

Provider route: GET /v1/runs. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/skyvern with npm, or alter-sdk-skyvern with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { SkyvernIntegration } from "@alter-ai/skyvern";
async function execute(input: Parameters<SkyvernIntegration["runs"]["getRunsV2"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new SkyvernIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.runs.getRunsV2(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_skyvern import SkyvernIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = SkyvernIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.runs.get_runs_v2(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.pageintegerOptionalDefault: 1
Maximum: 100
Minimum: 1
query.page_sizeintegerOptionalDefault: 10
Maximum: 100
Minimum: 1
query.statusJSONOptional
query.status (anyOf 1)arrayAlternative
query.status (anyOf 1)[]stringEach itemOne of: created, queued, running, paused, timed_out, failed, terminated, completed, canceled
query.status (anyOf 2)nullAlternative
query.search_keyJSONOptionalCase-insensitive substring search (min 3 chars for trigram index) across the run’s title, URL, run ID, agent (workflow) ID and inputs, plus a workflow run’s webhook callback URL. A complete browser profile ID, browser session ID or credential ID matches the run that used it exactly (no substring match). A complete workflow run ID matches that run. A complete task ID matches the workflow run the task ran in, when this list includes that run, or the standalone task itself where standalone tasks are listed. A complete browser profile, browser session, workflow run or task ID is matched against those identifiers only, not the text fields. A credential ID matches when it is the run’s sequential credential, the credential the run selected from a pool or fell back to, or the credential bound by a credential parameter on the run’s workflow version when the run was created and the run recorded no selection for it. Browser profile and credential IDs apply to workflow runs; a browser session ID also matches a standalone task that used it.
query.search_key (anyOf 1)stringAlternativeMinimum length: 3
query.search_key (anyOf 2)nullAlternative
query.run_typeJSONOptional
query.run_type (anyOf 1)arrayAlternative
query.run_type (anyOf 1)[]stringEach itemOne of: task_v1, task_v2, task_v3, workflow_run, openai_cua, anthropic_cua, ui_tars, yutori_navigator
query.run_type (anyOf 2)nullAlternative
query.workflow_permanent_idJSONOptionalFilter to runs of these workflows (agents). Repeat the param to include multiple.
query.workflow_permanent_id (anyOf 1)arrayAlternativeMaximum items: 50
query.workflow_permanent_id (anyOf 1)[]stringEach item
query.workflow_permanent_id (anyOf 2)nullAlternative
query.tagsJSONOptionalFilter by run tags. Each term is a label (`production`), a group (`env:*`), or a group:label (`env:prod`). Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct terms, OR within a group’s labels (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). A label term matches the value across any/no group. Matches current tag values only.
query.tags (anyOf 1)arrayAlternativeMaximum items: 20
query.tags (anyOf 1)[]stringEach item
query.tags (anyOf 2)nullAlternative
query.failure_categoryJSONOptionalExact-match filter on a workflow run’s top classifier failure category (`failure_category[0].category`). Only failed, terminated, and timed_out runs are eligible; canceled runs are never returned by this filter. Applies to `run_type=workflow_run` only — combined with a task run_type it matches nothing.
query.failure_category (anyOf 1)stringAlternativeMaximum length: 100
query.failure_category (anyOf 2)nullAlternative

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$arrayRoot
$[]ModelEach itemExpand List runs — response body — item

Referenced models: List runs — response body — item

List runs — response body — item
FieldTypePresenceDescription and constraints
$objectRootLightweight run-history item backed by the task_runs table.
created_atstringRequired within parentFormat: date-time
created_byJSONOptionalID of the user who started the run
created_by (anyOf 1)stringAlternative
created_by (anyOf 2)nullAlternative
finished_atJSONOptional
finished_at (anyOf 1)stringAlternativeFormat: date-time
finished_at (anyOf 2)nullAlternative
run_idstringRequired within parent
script_runbooleanOptionalDefault: false
started_atJSONOptional
started_at (anyOf 1)stringAlternativeFormat: date-time
started_at (anyOf 2)nullAlternative
statusstringRequired within parent
task_run_idstringRequired within parent
task_run_typestringRequired within parent
titleJSONOptional
title (anyOf 1)stringAlternative
title (anyOf 2)nullAlternative
trigger_typeJSONOptional
trigger_type (anyOf 1)ModelAlternativeExpand List runs — response body — item trigger type How a workflow run was initiated
trigger_type (anyOf 2)nullAlternative
workflow_deletedbooleanOptionalDefault: false
workflow_permanent_idJSONOptional
workflow_permanent_id (anyOf 1)stringAlternative
workflow_permanent_id (anyOf 2)nullAlternative

Referenced models: List runs — response body — item trigger type How a workflow run was initiated

List runs — response body — item trigger type How a workflow run was initiated
FieldTypePresenceDescription and constraints
$stringRootHow a workflow run was initiated.

- manual: User clicked "Run" in the UI
- mcp: First-party MCP client or Skyvern CLI request
- api: Direct API call to the run endpoint
- scheduled: Triggered by a cron schedule
- webhook: Triggered by an external system via the webhook endpoint
- event: Triggered by an external event source
- job_recipe_extract: Launched by a job recipe extract request
- job_recipe_apply: Launched by a job recipe apply request
- seo_recipe_submit: Launched by an SEO recipe directory submission
Known values: manual, mcp, api, scheduled, webhook, event, job_recipe_extract, job_recipe_apply, seo_recipe_submit

SDK function policy ID: skyvern.get_runs_v2_v1_runs_get. Catalog operation: get_runs_v2_v1_runs_get. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.