Executes a task, creating a new task run. The run executes asynchronously. Use events or poll the task run endpoint to track progress.
Secret key (sk_live_...)
Unique identifier for the task (prefixed with task_).
Request body for running a task.
The credential to authenticate with. Prefixed with cred_.
The source to run the task against. Prefixed with src_.
An existing session to reuse for this run. Prefixed with sess_.
Input data matching the task's input_schema.
Client-specified request identifier for tracing.
Created
A task run object representing a single execution of a task.
Unique identifier for the task run, prefixed with trun_.
Always task_run.
Run status: queued, running, cancelling, interaction_required, review_required, completed, canceled, or failed.
Run result after completion: success, failure, or unknown. Null while running.
The task that was executed. Prefixed with task_.
The credential used for authentication, if any. Prefixed with cred_.
The session this run executed within, if any. Prefixed with sess_.
The workflow this run belongs to, if any. Prefixed with wflo_.
The agent that executed this run. Prefixed with agt_.
The source this run connected to, if any. Prefixed with src_.
Execution time in milliseconds.
Input data provided when the run was created.
Output data produced by the task execution.
Storage items (files) produced during execution.
Error details if the run failed. Same structure as API-level errors.
Interaction details when the run is paused waiting for user input (e.g. MFA code, security question).
ISO 8601 timestamp of when the run was canceled, if applicable.
ISO 8601 timestamp of when the resource was created.
ISO 8601 timestamp of when the resource was last updated.
Unique identifier for the API request. Include this when contacting support.