Webhook
Workflow Run Ended Event
Resia sends this when a Workflow Run reaches succeeded, failed, or cancelled.
workflow_run is the same resource that GET /v1/workflow-runs/{workflow_run_id} returns.
Reply with any 2xx to acknowledge the event. Resia uses the call.ended retry schedule.
Treat a repeated workflow_run_id as a duplicate. Each HTTP attempt creates one request log.
Body·
required
application/json
The event Resia sends after a Workflow Run reaches a terminal status.
- Properties: 11Type:workflow
_run required - typeconst:workflow_run.ended
Responses
- application/json
- application/json
Request Example for postworkflow_run.ended
{
"type": "workflow_run.ended",
"workflow_run": {
"workflow_run_id": "",
"workflow_agent_id": "",
"status": "queued",
"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
}
}
}
null
