Skip to content

Skyvern: Get run timeline

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

← Runs operations · Get started

Operation skyvern.get_run_timeline_v1_runs_run_id_timeline_get

Provider route: GET /v1/runs/{run_id}/timeline. 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"]["getRunTimeline"]>[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.getRunTimeline(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_run_timeline(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 workflow run or task_v2 run.

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 run timeline — response body — item

Referenced models: Get run timeline — response body — item

6 more schemas are linked from the tables above, on the schema pages.

Get run timeline — response body — item
FieldTypePresenceDescription and constraints
$objectRoot
attemptJSONOptional
attempt (anyOf 1)integerAlternativeDefault: 1
attempt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
blockJSONOptional
block (anyOf 1)ModelAlternativeExpand Get run timeline — response body — item block actions, attachments, attempt number, block type, block workflow run id, body, complete criterion, continue on failure, created at, current index, current value, data extraction goal, data schema, description, downloaded file count, duration, engine, error codes, executed branch expression, executed branch id, executed branch next block, executed branch result, failure reason, final url, finish reason, include action history in verification, include extracted text, instructions, label, loop values, modified at, navigation goal, navigation payload, negative descriptor, organization id, output, parent workflow run block id, positive descriptor, prompt, recipients, script run, status, subject, task id, terminate criterion, url, workflow run block id, workflow run id
block (anyOf 2)nullAlternative
childrenarrayOptionalDefault: []
children[]ModelEach itemExpand Get run timeline — response body — item
created_atstringRequired within parentFormat: date-time
modified_atstringRequired within parentFormat: date-time
thoughtJSONOptional
thought (anyOf 1)ModelAlternativeExpand Get run timeline — response body — item thought answer, cached token count, created at, input token count, last llm model, modified at, observation, organization id, output, output token count, reasoning token count, task id, thought, thought cost, thought id, thought scenario, thought type, user input, workflow id, workflow permanent id, workflow run block id, workflow run id
thought (anyOf 2)nullAlternative
typestringRequired within parentKnown values: thought, block

Referenced models: Get run timeline — response body — item thought answer, cached token count, created at, input token count, last llm model, modified at, observation, organization id, output, output token count, reasoning token count, task id, thought, thought cost, thought id, thought scenario, thought type, user input, workflow id, workflow permanent id, workflow run block id, workflow run id, Get run timeline — response body — item block actions, attachments, attempt number, block type, block workflow run id, body, complete criterion, continue on failure, created at, current index, current value, data extraction goal, data schema, description, downloaded file count, duration, engine, error codes, executed branch expression, executed branch id, executed branch next block, executed branch result, failure reason, final url, finish reason, include action history in verification, include extracted text, instructions, label, loop values, modified at, navigation goal, navigation payload, negative descriptor, organization id, output, parent workflow run block id, positive descriptor, prompt, recipients, script run, status, subject, task id, terminate criterion, url, workflow run block id, workflow run id, Get run timeline — response body — item

Get run timeline — response body — item thought answer, cached token count, created at, input token count, last llm model, modified at, observation, organization id, output, output token count, reasoning token count, task id, thought, thought cost, thought id, thought scenario, thought type, user input, workflow id, workflow permanent id, workflow run block id, workflow run id
FieldTypePresenceDescription and constraints
$objectRoot
answerJSONOptional
answer (anyOf 1)stringAlternative
answer (anyOf 2)nullAlternative
cached_token_countJSONOptional
cached_token_count (anyOf 1)JSONAlternative
cached_token_count (anyOf 1) (anyOf 1)integerAlternative
cached_token_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
cached_token_count (anyOf 2)nullAlternative
created_atstringRequired within parentFormat: date-time
input_token_countJSONOptional
input_token_count (anyOf 1)JSONAlternative
input_token_count (anyOf 1) (anyOf 1)integerAlternative
input_token_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
input_token_count (anyOf 2)nullAlternative
last_llm_modelJSONOptional
last_llm_model (anyOf 1)stringAlternative
last_llm_model (anyOf 2)nullAlternative
modified_atstringRequired within parentFormat: date-time
observationJSONOptional
observation (anyOf 1)stringAlternative
observation (anyOf 2)nullAlternative
organization_idstringRequired within parent
outputJSONOptional
output (anyOf 1)objectAlternativeAdditional keys: allowed
output (anyOf 2)nullAlternative
output_token_countJSONOptional
output_token_count (anyOf 1)JSONAlternative
output_token_count (anyOf 1) (anyOf 1)integerAlternative
output_token_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
output_token_count (anyOf 2)nullAlternative
reasoning_token_countJSONOptional
reasoning_token_count (anyOf 1)JSONAlternative
reasoning_token_count (anyOf 1) (anyOf 1)integerAlternative
reasoning_token_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
reasoning_token_count (anyOf 2)nullAlternative
task_idstringRequired within parent
thoughtJSONOptional
thought (anyOf 1)stringAlternative
thought (anyOf 2)nullAlternative
thought_costJSONOptional
thought_cost (anyOf 1)JSONAlternative
thought_cost (anyOf 1) (anyOf 1)numberAlternative
thought_cost (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
thought_cost (anyOf 2)nullAlternative
thought_idstringRequired within parent
thought_scenarioJSONOptional
thought_scenario (anyOf 1)stringAlternativeScenario in which a thought was generated.

Note: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values
can be added without database migrations. See observer_thoughts.observer_thought_scenario column.
Known values: generate_plan, user_goal_check, failure_describe, summarization, generate_metadata, extract_loop_values, generate_task_in_loop, generate_general_task, termination
thought_scenario (anyOf 2)nullAlternative
thought_typeJSONOptionalDefault: plan
thought_type (anyOf 1)stringAlternativeType of thought recorded during task execution.

Note: Stored as VARCHAR in the database (not a PostgreSQL ENUM), so new values
can be added without database migrations. See observer_thoughts.observer_thought_type column.
Known values: plan, metadata, user_goal_check, internal_plan, failure_describe, termination
thought_type (anyOf 2)nullAlternative
user_inputJSONOptional
user_input (anyOf 1)stringAlternative
user_input (anyOf 2)nullAlternative
workflow_idJSONOptional
workflow_id (anyOf 1)stringAlternative
workflow_id (anyOf 2)nullAlternative
workflow_permanent_idJSONOptional
workflow_permanent_id (anyOf 1)stringAlternative
workflow_permanent_id (anyOf 2)nullAlternative
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
Get run timeline — response body — item block actions, attachments, attempt number, block type, block workflow run id, body, complete criterion, continue on failure, created at, current index, current value, data extraction goal, data schema, description, downloaded file count, duration, engine, error codes, executed branch expression, executed branch id, executed branch next block, executed branch result, failure reason, final url, finish reason, include action history in verification, include extracted text, instructions, label, loop values, modified at, navigation goal, navigation payload, negative descriptor, organization id, output, parent workflow run block id, positive descriptor, prompt, recipients, script run, status, subject, task id, terminate criterion, url, workflow run block id, workflow run id block type
FieldTypePresenceDescription and constraints
$stringRootKnown values: task, task_v2, for_loop, while_loop, conditional, code, text_prompt, download_to_s3, upload_to_s3, file_upload, send_email, file_url_parser, validation, action, navigation, extraction, login, wait, file_download, goto_url, pdf_parser, http_request, web_search, human_interaction, print_page, workflow_trigger, google_sheets_read, google_sheets_write, powerbi_query, pdf_fill, split_pdf, email_inbox, data_export, terminate, agent_step
Login Task — response body — script run ai fallback triggered, script id, script revision id
FieldTypePresenceDescription and constraints
$objectRoot
ai_fallback_triggeredbooleanOptionalDefault: false
script_idJSONOptional
script_id (anyOf 1)stringAlternative
script_id (anyOf 2)nullAlternative
script_revision_idJSONOptional
script_revision_id (anyOf 1)stringAlternative
script_revision_id (anyOf 2)nullAlternative

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