Get all runs by agent
Changed onList runs for a specific workflow.
Supports filtering by status, search_key, and error_code. All filters are combined with AND logic.
search_key
Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, extra HTTP headers and webhook callback URL. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching. 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. The workflow title and workflow permanent ID are matched as well.
error_code
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.
include_child_runs
Child runs — runs this workflow started from inside another workflow run — are excluded by default, so the history shows only top-level runs. Pass include_child_runs=true to list them as well; every run carries a parent_workflow_run_id that is null for top-level runs.
Request
- Base URLhttps://api.skyvern.com
- URLhttps://api.skyvern.com/v1/agents/{workflow_id}/runs
- Authnone declared
Path parameters
Query parameters
Page number for pagination.
Number of runs to return per page.
Filter by one or more run statuses.
Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, extra HTTP headers and webhook callback URL. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching. 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. The workflow title and workflow permanent ID are matched as well.
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.
Only include runs created at or after this UTC timestamp (ISO 8601).
Only include runs created strictly before this UTC timestamp (ISO 8601).
Filter 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.
Include child workflow runs — runs started from inside another workflow run. Excluded by default so the history shows only top-level runs.
Headers
Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
Response
Successful Response
Example response
[
{
"proxy_location": {
"country": "US",
"subdivision": "CA",
"city": "New York"
},
"browser_settings": {
"timezone_id": "America/New_York"
}
}
]Changes
- warning
added the new
eventenum value to the//response property for the response status
- warning
- warning
added the new
job_recipe_applyenum value to the//response property for the response status - warning
added the new
job_recipe_extractenum value to the//response property for the response status - info
added the new optional
queryrequest parameterinclude_child_runs - info
added the new optional
queryrequest parametertags - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning