Get an agent run
Returns an agent run: where it is, the state of every step, what it is waiting on, and what it produced.
tasks[]is the step ledger.executor: "human"steps are yours to complete;summaryis what the agent recorded when a step closed.approvals[]lists the sign-offs the run is blocked on, each with the proposedparamsandfiles.waitingcounts both at a glance whilestatusiswaiting.resultandoutput.filescarry the outcome.agent.idandinput.filesare the immutable recipe for starting a successor after any terminal result.
Long-polling. ?wait=<seconds> (0–120) holds the request until the run finishes or blocks on a person.
Note: A
pausedrun is not a failure: it stopped short, kept everything it produced, and can be started again. Nothing an agent run imported or attached is ever taken back.Reading a
queuedrun is also what starts it once its files are ready, so poll it rather than waiting.expiresAtis the run's deadline — an unfinished run parks itself for good when it passes, so a human step has to land before then.
Note: Run scope is changing. Today any API key of your organization may read and steer any agent run of that organization. Turn on the organization feature flag
v1_scoped_runsand each key sees only the runs it created; a run created before you turned it on keeps answering every key. Scoping becomes the default in a future release, so give each integration its own key now.
Learn more: Agents guide
https://api.cloudraker.com/v1/agent-runs/{id}Try it
Authorization
Path parameters
Query parameters
Returns
200
The run.
- statusqueuedorprocessingorwaitingorpausedorcompletedorfailed+2 morerequired
Where the agent run is in its life.
Status Meaning queuedAccepted; its files are still being prepared processingThe agent is working waitingBlocked on a person — see waiting,approvalsandtasks[]pausedStopped short of finishing and resumable; not a failure completedFinished; resultandoutputare populatedfailedFinished without producing a result cancelledStopped on request expiredReached its expiresAtwithout finishingcompleted,failed,cancelledandexpiredare terminal. Acompletedrun that still had outstanding work also carriesincomplete: true.