Agents

Get run details

Changed on

Retrieve detailed information about a specific agent run, including the full prompt, session link, and resolved configuration.

get/agent/runs/{runId}

Request

  • Base URL
    https://app.warp.dev/api/v1
  • Auth
    HTTP bearer

Path parameters

runIdstring required

The unique identifier of the run

Query parameters

include_diagnosticsboolean

Include diagnostic messages for this run.

Response

Run details

run_idstring required

Unique identifier for the run

task_idstring required

Unique identifier for the task (typically matches run_id). Deprecated - use run_id instead.

titlestring required

Human-readable title for the run

state'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' | 'BLOCKED' | 'ERROR' | 'CANCELLED' required

Current state of the run:

  • QUEUED: Run is waiting to be picked up
  • PENDING: Run is being prepared
  • CLAIMED: Run has been claimed by a worker
  • INPROGRESS: Run is actively being executed
  • SUCCEEDED: Run completed successfully
  • FAILED: Run failed
  • BLOCKED: Run is blocked (e.g., awaiting user input or approval)
  • ERROR: Run encountered an error
  • CANCELLED: Run was cancelled by user
execution_location'LOCAL' | 'REMOTE'

Execution location of the run's latest execution, including ended executions:

  • LOCAL: The latest execution is assigned to the machine running Warp or Oz, or to the same process as its cloud parent.
  • REMOTE: The latest execution is remote or unassigned, or the run has no executions. This is not a liveness indicator. A newer execution can change the classification; the task's legacy worker assignment is ignored.
promptstring required

The prompt/instruction for the agent

submitted_promptstring

The prompt exactly as it was submitted, without any extra context added by Warp. Includes any follow-up messages sent before the run started, separated by blank lines.

created_atstring date-time required

Timestamp when the run was created (RFC3339)

updated_atstring date-time required

Timestamp when the run was last updated (RFC3339)

run_timestring duration

Total runtime as an ISO 8601 duration (e.g. "PT2M30S"), computed server-side from run executions.

started_atstring date-time nullable

Timestamp when the agent started working on the run (RFC3339)

finished_atstring date-time nullable required

Timestamp when the run last reached a terminal state (RFC3339). Null while the run is still active, and for terminal runs with no recorded finish time (runs executed locally, and runs that finished before finish times were recorded).

source'LINEAR' | 'API' | 'MCP' | 'SLACK' | 'TEAMS' | 'LOCAL' | 'SCHEDULED_AGENT' | 'WEB_APP' | 'GITHUB_ACTION' | 'CLOUD_MODE' | 'CLI' | 'JIRA' | 'SELF_IMPROVEMENT' | 'GITHUB_WEBHOOK' | 'GITLAB_WEBHOOK' | 'AZURE_DEVOPS_WEBHOOK' | 'AUTOFIX' | 'RUN_SCORER' | 'ORCHESTRATION' | 'BENCHMARK_TRIAL' | 'CREATE_BENCHMARK_TASK' | 'CUSTOM_WEBHOOK'

Source that created the run:

  • LINEAR: Created from Linear integration
  • API: Created via the Warp API
  • MCP: Created through the Factory MCP server's send_task tool
  • SLACK: Created from Slack integration
  • TEAMS: Created from Microsoft Teams integration
  • LOCAL: Created from local CLI/app
  • SCHEDULED_AGENT: Created by a scheduled agent
  • WEB_APP: Created from the Warp web app
  • GITHUB_ACTION: Created from a GitHub action
  • CLOUD_MODE: Created from a Cloud Mode
  • CLI: Created from the CLI
  • JIRA: Created from Jira integration
  • SELF_IMPROVEMENT: Created by Warp's self-improvement pipeline
  • GITHUB_WEBHOOK: Created from a GitHub webhook event
  • GITLAB_WEBHOOK: Created from a GitLab webhook event
  • AZURE_DEVOPS_WEBHOOK: Created from an Azure DevOps webhook event
  • AUTOFIX: Created by Warp's autofix pipeline
  • RUN_SCORER: Created by Warp's run-scoring judge
  • ORCHESTRATION: Created as a child run by the orchestration layer (parent_run_id set)
  • BENCHMARK_TRIAL: Created as a factory benchmark trial
  • CREATE_BENCHMARK_TASK: Created by a Factory foreman authoring a benchmark task from a completed run
  • CUSTOM_WEBHOOK: Created by a factory automation subscribed to a custom webhook source
session_idstring

UUID of the shared session (if available)

session_linkstring uri

URL to view the agent session

trigger_urlstring uri

URL to the run trigger (e.g. Slack thread, Linear issue, schedule)

factory_uidstring

UID of the factory whose agent executed the run. Absent for runs not executed by a factory agent.

conversation_idstring

UUID of the conversation associated with the run

parent_run_idstring

UUID of the parent run that spawned this run

root_run_idstring required

UUID of the top-level run of this run's orchestration tree. Equals run_id for a top-level run.

metadataRunMetadata

Custom key/value metadata attached to a run at creation time and immutable afterward; at most 20 keys, with keys 1-64 bytes matching [a-zA-Z0-9._-]+ (case-sensitive) and values 0-256 bytes of UTF-8 with no NUL characters. Requests with invalid metadata are rejected. A run's effective metadata is merged per key at creation: explicit request keys override keys inherited from the parent run, which override automatic keys (ticket_id and ticket_source on Linear- and Jira-triggered runs).

is_sandbox_runningboolean

Whether the sandbox environment is currently running

is_run_type_cancellableboolean

Whether the run's type is eligible for cancellation via the API. State-independent: false for GitHub Action and local runs; true for all other run types (including self-hosted). Clients should still gate the control on the run's current state.

debug_agent_availableboolean

Whether a debug agent can currently be started inside this run's retained setup-failure session. Only true for a run that failed during environment setup, whose retained execution is still reachable, and whose debug window has not closed. See POST /agent/runs/{runId}/followups.

Changes

    • info

      added the new optional query request parameter include_diagnostics

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • breaking

      response property agent_config/credential_strategy list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      added subschema #1 to the // response property oneOf list for the response status

    • breaking

      the // response's property type changed from string to no type for status

    • breaking

      removed the required property //////// from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      removed the CREATOR enum value from the / response property for the response status

    • info

      removed the EXECUTOR enum value from the / response property for the response status

    • info

      removed the claude enum value from the // response property for the response status

    • info

      removed the codex enum value from the // response property for the response status

    • info

      removed the gemini enum value from the // response property for the response status

    • info

      removed the oz enum value from the // response property for the response status

    • info

      added the required property /// to the response with the status