Skip to content

Skyvern: Get artifacts for a run

Skyvern artifacts.getRunArtifacts: arguments, response, policy and SDK examples.

← Artifacts operations · Get started

Operation skyvern.get_run_artifacts_v1_runs_run_id_artifacts_get

Provider route: GET /v1/runs/{run_id}/artifacts. 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["artifacts"]["getRunArtifacts"]>[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.artifacts.getRunArtifacts(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.artifacts.get_run_artifacts(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.run_idstringRequired within parentThe id of the task run or the workflow run.
queryobjectOptionalAdditional keys: not allowed
query.artifact_typeJSONOptional
query.artifact_type (anyOf 1)arrayAlternative
query.artifact_type (anyOf 1)[]ModelEach itemExpand Get artifacts for a run — request body — query artifact type array item
query.artifact_type (anyOf 2)nullAlternative

Referenced models: Get artifacts for a run — request body — query artifact type array item

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 Get artifacts for a run — response body — item

Referenced models: Get artifacts for a run — response body — item

Get artifacts for a run — request body — query artifact type array item
FieldTypePresenceDescription and constraints
$stringRootOne of: recording, audio, session_replay, eval_score, eval_trajectory, eval_rubrics, browser_console_log, browser_session_action_log, skyvern_log, skyvern_log_raw, screenshot, screenshot_llm, screenshot_action, screenshot_final, screenshot_proxy, screenshot_pre_submit, llm_prompt, llm_request, llm_response, llm_response_parsed, llm_response_rendered, visible_elements_id_css_map, visible_elements_id_frame_map, visible_elements_tree, visible_elements_tree_trimmed, visible_elements_tree_in_prompt, hashed_href_map, visible_elements_id_xpath_map, html, html_scrape, html_action, html_pre_submit, trace, har, script_file, pdf, step_archive, task_archive, download, unknown
Get artifacts for a run — response body — item
FieldTypePresenceDescription and constraints
$objectRoot
ai_suggestion_idJSONOptional
ai_suggestion_id (anyOf 1)stringAlternative
ai_suggestion_id (anyOf 2)nullAlternative
archivedbooleanOptionalDefault: false
artifact_idstringRequired within parent
artifact_typeModelRequired within parentExpand Get artifacts for a run — response body — item artifact type
browser_session_idJSONOptional
browser_session_id (anyOf 1)stringAlternative
browser_session_id (anyOf 2)nullAlternative
bundle_keyJSONOptional
bundle_key (anyOf 1)stringAlternative
bundle_key (anyOf 2)nullAlternative
checksumJSONOptional
checksum (anyOf 1)stringAlternative
checksum (anyOf 2)nullAlternative
created_atstringRequired within parentThe creation datetime of the task.
file_sizeJSONOptional
file_size (anyOf 1)JSONAlternative
file_size (anyOf 1) (anyOf 1)integerAlternative
file_size (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
file_size (anyOf 2)nullAlternative
modified_atstringRequired within parentThe modification datetime of the task.
observer_cruise_idJSONOptional
observer_cruise_id (anyOf 1)stringAlternative
observer_cruise_id (anyOf 2)nullAlternative
observer_thought_idJSONOptional
observer_thought_id (anyOf 1)stringAlternative
observer_thought_id (anyOf 2)nullAlternative
organization_idstringRequired within parent
run_idJSONOptional
run_id (anyOf 1)stringAlternative
run_id (anyOf 2)nullAlternative
signed_urlJSONOptional
signed_url (anyOf 1)stringAlternative
signed_url (anyOf 2)nullAlternative
step_idJSONOptional
step_id (anyOf 1)stringAlternative
step_id (anyOf 2)nullAlternative
task_idJSONOptional
task_id (anyOf 1)stringAlternative
task_id (anyOf 2)nullAlternative
uristringRequired within parent
workflow_run_block_idJSONOptional
workflow_run_block_id (anyOf 1)stringAlternative
workflow_run_block_id (anyOf 2)nullAlternative
workflow_run_idJSONOptional
workflow_run_id (anyOf 1)stringAlternative
workflow_run_id (anyOf 2)nullAlternative

Referenced models: Get artifacts for a run — response body — item artifact type

Get artifacts for a run — response body — item artifact type
FieldTypePresenceDescription and constraints
$stringRootKnown values: recording, audio, session_replay, eval_score, eval_trajectory, eval_rubrics, browser_console_log, browser_session_action_log, skyvern_log, skyvern_log_raw, screenshot, screenshot_llm, screenshot_action, screenshot_final, screenshot_proxy, screenshot_pre_submit, llm_prompt, llm_request, llm_response, llm_response_parsed, llm_response_rendered, visible_elements_id_css_map, visible_elements_id_frame_map, visible_elements_tree, visible_elements_tree_trimmed, visible_elements_tree_in_prompt, hashed_href_map, visible_elements_id_xpath_map, html, html_scrape, html_action, html_pre_submit, trace, har, script_file, pdf, step_archive, task_archive, download, unknown

SDK function policy ID: skyvern.get_run_artifacts_v1_runs_run_id_artifacts_get. Catalog operation: get_run_artifacts_v1_runs__run_id__artifacts_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.