Start an agent run in a space
Starts an agent inside this space: the run and its input files live there, so anything the agent files stays after the run ends.
Same body, same wait semantics and same run object as POST /v1/agent-runs — read the run back at GET /v1/spaces/{spaceId}/agents/{runId}, and steer, approve or cancel it on the ordinary /v1/agent-runs/{id} routes.
Learn more: Spaces
https://api.cloudraker.com/v1/spaces/{spaceId}/agentsTry 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 finished 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.
202
Accepted — queued, still working, or blocked on a person.
- 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.