Invoke an agent
Runs an agent on an instruction — the prompt-shaped door. Give it input in plain words and, optionally, files; the agent plans and executes from there. This is the same runtime as POST /v1/agent-runs, minus the requirement to lead with files.
Sync by default. ?wait=<seconds> (default 60, max 120) holds the request; a run that outlives the window answers 202 with a statusUrl to poll. Steering, approvals, tasks, timeline and result all use the existing /v1/agent-runs/{id} surface.
Learn more: Agents guide
https://api.cloudraker.com/v1/agents/{id}/invokeTry it
Authorization
Path parameters
Query parameters
Request body JSON required
- webhookoptional
Where to deliver this run's events, given one of two ways.
{ "url": "…" }— a one-off https endpoint for this run only.{ "id": "whe_…" }— a saved endpoint fromPOST /v1/webhooks. Runs hold the reference, so pausing or re-pointing that endpoint applies to this run too.
Deliveries are at-least-once and signed — dedupe on
eventIdand verify againstGET /v1/webhooks/jwks.json.
Returns
200
The run finished (or blocked on a person) inside the wait window.
- 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.
202
Accepted — still working.
- 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.