Skip to main content
POST
/
task-runs
/
{run_id}
/
interaction
Submit interaction input
curl --request POST \
  --url https://api.deck.co/v2/task-runs/{run_id}/interaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<unknown>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "status": "<string>",
  "result": "<string>",
  "task_id": "<string>",
  "credential_id": "<string>",
  "session_id": "<string>",
  "workflow_id": "<string>",
  "agent_id": "<string>",
  "source_id": "<string>",
  "runtime_ms": 123,
  "input": "<unknown>",
  "output": "<unknown>",
  "storage": [
    {
      "id": "<string>",
      "object": "<string>",
      "file_name": "<string>",
      "file_type": "<string>",
      "file_size": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "errors": [
    {
      "type": "<string>",
      "code": "<string>",
      "message": "<string>",
      "field": "<string>"
    }
  ],
  "interaction": "<unknown>",
  "canceled_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Secret key (sk_live_...)

Path Parameters

run_id
string
required

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

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_.

object
string
required

Always task_run.

status
string
required

Run status: queued, running, cancelling, 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_.

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_.

workflow_id
null | string
required

The workflow this run belongs to, if any. Prefixed with wflo_.

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.

input
null | any
required

Input data provided when the run was created.

output
null | any
required

Output data produced by the task execution.

storage
null | object[]
required

Storage items (files) produced during 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).

canceled_at
null | string<date-time>
required

ISO 8601 timestamp of when the run was canceled, if applicable.

created_at
string<date-time>
required

ISO 8601 timestamp of when the resource was created.

updated_at
string<date-time>
required

ISO 8601 timestamp of when the resource was last updated.

request_id
string
required

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