Webhook
Orchestration Run Ended Event
Resia sends this when an Orchestration Run reaches succeeded, failed, or cancelled.
orchestration_run is the same resource that GET /v1/orchestration-runs/{orchestration_run_id} returns.
Reply with any 2xx to acknowledge the event. Resia uses the call.ended retry schedule.
Treat a repeated orchestration_run_id as a duplicate. Each HTTP attempt creates one request log.
Body·
required
application/json
The event Resia sends after an Orchestration Run reaches a terminal status.
- Properties: 14Type:orchestration
_run required - typeconst:orchestration_run.ended
Responses
- application/json
- application/json
Request Example for postorchestration_run.ended
{
"type": "orchestration_run.ended",
"orchestration_run": {
"orchestration_run_id": "",
"orchestration_agent_id": "",
"status": "queued",
"tags": {
"additionalProperty": ""
},
"analysis": {
"additionalProperty": "anything"
},
"error_code": "BUNDLE_VERIFICATION_FAILED",
"waiting_for": "",
"milestone": "",
"created_at": "",
"started_at": "",
"ended_at": "",
"charges": {
"token_charge_amount_in_cents": 300,
"call_charges_in_cents": 165,
"message_charges_in_cents": 4,
"total_in_cents": 469
},
"tool_activity": [
{
"sequence": 0,
"kind": "task_started",
"invocation_id": "",
"tool_name": "book_appointment",
"turn": 1,
"occurred_at": "",
"payload_text": "",
"payload_state": "unavailable",
"outcome": "returned"
}
],
"tool_activity_truncated": false
}
}
null
