Goal
Receive Trio events through webhooks and process them safely in production.When to Use
Use webhooks when your system should react to events without polling loops. Typical cases:- trigger alerts
- start downstream workflows
- update external systems
Setup Flow
- Expose a public HTTPS endpoint that accepts
POSTJSON. - Start
live-monitororlive-digestwithwebhook_url. - Return
2xxquickly from your handler. - Process heavy work asynchronously.
Minimal Handler Pattern
Event Types to Handle
Commontype values:
job_startedjob_stoppedwatch_triggeredsummary_generatederror
Reliability Requirements
- Use idempotency logic to avoid duplicate side effects.
- Log
type,timestamp, andjob_id(if present). - Retry downstream actions with bounded backoff.
- Keep webhook handlers fast; do not block on long work.
Recovery Pattern
If continuous coverage is required:- detect terminal state (
job_stopped) - create a replacement job
- persist and monitor the new
job_id
Next Steps
- Troubleshoot deliveries: Debugging Playbook
- Compare delivery modes: Choose Your Workflow
- Endpoint behavior: Live Monitor