Update task run
Changed onReports the outcome of a running task. Primarily used by the in-sandbox agent server to finalize a run (completed, failed, unknown or cancelled) with token usage and credit consumption. Re-posting the outcome the run settled with is a safe no-op; any other report on a finished run is refused with 409 run_not_active.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource's ID, as returned in its id field
Request body
The status that closes the run; any other answers 422.
Response
Task run updated
The run's own conversation (aichat_...): what it read, called and said. Read it with search_chats.
When a stop was requested. The run stays running until it reaches its next step, then settles as cancelled.
How the agent closed a completed run: verified (it re-checked the result), recorded (it reported without re-checking), or recovered (it never reported; summary is its last message). Null unless an agent turn completed the run.
The event that started this run, {type, data}, exactly as the run received it; data matches the event's webhook payload. Events that waited while the task was busy start one run together as {type, events: [{type, data}, ...]}, oldest first. Null for a run no event started. POST /task_runs/{id}/replay runs the task again on it.
The run (trun_...) whose event this run replays. Null unless started by POST /task_runs/{id}/replay.
The agent's final reply, once the run settled. Present on single-run responses, not in lists.
Why the reply did not parse or validate against response_format.
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
5 more changes in this revision
- warning