Skip to navigation

Resume an interrupted agent run

Resumes a run whose status is interrupted by recording the reviewer’s decisions on the artifacts its pending interrupts proposed. The decisions are stored as an agent application and the run continues with status: running. Generate a new agent_application.id per review; retrying with the same id and decisions is a no-op.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
Agent run ID

Request

This endpoint expects an object.
agent_applicationobjectRequired

The reviewer’s decisions, grouped under one caller-supplied application ID. Every decision must reference an interrupt that is currently pending on the run (see the run’s interrupts array).

Response

agent run resumed
objectstring
Object type identifier.
idstringformat: "uuid"
Unique identifier for the agent run.
created_atdatetime
Timestamp when the agent run record was created.
updated_atdatetime
Timestamp when the agent run record was last updated.
statusenum
Current lifecycle status of the agent run.
Allowed values:
thread_idstringOptionalformat: "uuid"
Identifier of the agent thread this run belongs to.
business_idstring or nullOptionalformat: "uuid"

Middesk business the run is scoped to. Null when the run was started with an inline business payload whose business did not exist yet.

agentstringOptional

Agent type that produced this run (for example, cip_orchestrator).

requesterobject or nullOptional

Principal that initiated the run. Populated with the authenticated user’s identity when a session caller initiates the run, and with the account when an API key caller initiates the run. null for system-initiated runs.

started_atdatetime or nullOptional
Timestamp when the agent run started.
ended_atdatetime or nullOptional
Timestamp when the agent run finished.
outputobject or nullOptional

Artifact envelope produced by the agent. Non-null only when status is completed; null for running, interrupted, and error runs.

interruptslist of objectsOptional

Pending interrupt requests awaiting input. Empty when the run is not interrupted. An interrupt that proposes artifacts for review is resumed by calling POST /v1/runs/{id}/resume with an agent_application whose decisions reference the interrupt’s id and decide every artifact it proposed. An interrupt that requests other input, such as a document upload, proposes no artifacts and is not resumed with decisions.

stepslist of objectsOptional

Top-level execution steps for this run. Opt-in: pass ?include=steps on GET /v1/runs/{id} to populate this field. Omitted by default.

Errors

400
Resume Agent Run Request Bad Request Error
404
Resume Agent Run Request Not Found Error
409
Resume Agent Run Request Conflict Error