Skip to main content
POST
Submit interaction input

Authorizations

Authorization
string
header
required

Secret key (sk_live_...)

Headers

Idempotency-Key
string

Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See Idempotency.

Maximum string length: 256
Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

run_id
string
required

Unique identifier for the task run (prefixed with trun_).

Pattern: ^trun_
Example:

"trun_AbC123xYz456"

Body

Request body for submitting interaction input to a paused task run.

input
any

Field values matching the interaction's field names. Each key corresponds to a field name from the interaction object (e.g. { "code": "123456" }).

Response

OK

A task run object representing a single execution of a task.

id
string
required

Unique identifier for the task run, prefixed with trun_.

Pattern: ^trun_
Example:

"trun_AbC123xYz456"

object
string
required

Always task_run.

status
string
required

Run status: queued, running, canceling, interaction_required, review_required, completed, canceled, or failed.

result
null | string
required

Run result after completion: success, failure, or unknown. Null while running.

task_id
string
required

The task that was executed. Prefixed with task_.

trigger_id
null | string
required

The trigger that created this run, if any. Prefixed with trg_. null for runs created directly through the API.

workflow_id
null | string
required

The workflow whose step dispatched this run. Prefixed with wflo_. null for a standalone run.

workflow_run_id
null | string
required

The workflow run this run is a step of. Prefixed with wrun_. null for a standalone run.

step
null | string
required

Name of the workflow step that dispatched this run. null for a standalone run.

credential_id
null | string
required

The credential used for authentication, if any. Prefixed with cred_.

session_id
null | string
required

The session this run executed within, if any. Prefixed with sess_.

agent_id
string
required

The agent that executed this run. Prefixed with agt_.

source_id
null | string
required

The source this run connected to, if any. Prefixed with src_.

runtime_ms
required

Execution time in milliseconds.

output
null | any
required

Output data produced by the task execution.

errors
null | object[]
required

Error details if the run failed. Same structure as API-level errors.

interaction
null | any
required

Interaction details when the run is paused waiting for user input (e.g. MFA code, security question). Carries errors when Deck tried to answer it through managed interactions and couldn't.

created_at
string<date-time>
required

ISO 8601 timestamp of when the resource was created.

Example:

"2026-08-24T12:00:00Z"

updated_at
string<date-time>
required

ISO 8601 timestamp of when the resource was last updated.

Example:

"2026-08-24T12:00:00Z"

request_id
string
required

Unique identifier for the API request. Include this when contacting support.

input
null | any

Input data provided when the run was created.

tokenized
null | string[]

Names of input fields whose values were tokenized when the run was created. The listed fields are removed from input. Returned alongside input (only when include=input is requested and one or more fields were vaulted); omitted otherwise.

storage
null | object[]

Files captured during the run, each with inline extraction (if any). Returned only when include=storage is requested.

storage_deduplicated
null | object[]

Files skipped by deduplication during the run. Returned only when include=storage_deduplicated is requested and the run's task has storage.deduplication enabled; omitted otherwise. An empty array means deduplication ran and no files were skipped.

artifacts
null | object

Run-level visibility artifacts (screenshots). Returned only when include=artifacts is requested.

policies
(Payment · object | Volume · object | Action · object | Custom · object)[]

The task's policies when this run was created. Omitted when there were none.

A task policy. Each policy has a type and one field for that type.

interactions
object[]

Every interaction the run hit, oldest first. Never includes submitted values. Returned only when include=interactions is requested.

interactions_suppressed
boolean

true when the run was created with interactions_suppressed. Omitted otherwise.

prompt
null | string

The task prompt this run executed with. Returned only when include=routines is requested.

routines
null | object[]

The routines this run executed, as they were when it ran, including each routine's version and code. Empty when the source has no routine. Returned only when include=routines is requested.

browser
null | object

Browser files captured during the run. Returned only when include=browser is requested. Entries are listed with List task run browser logs.