diff --git a/webhooks/events.mdx b/webhooks/events.mdx index 16a37e9f..6cdd32ee 100644 --- a/webhooks/events.mdx +++ b/webhooks/events.mdx @@ -335,7 +335,7 @@ Sent when the agent job is cancelled by the user. ## Event Filtering -By default, you receive all events. To subscribe to specific events only, use the `events` array in your webhook config: +Subscribe to a subset of events to skip the per-page updates you don't need and reduce traffic to your endpoint. Pass an `events` array in your webhook config to choose which events you receive; omit it to receive all events. ```json { @@ -343,5 +343,3 @@ By default, you receive all events. To subscribe to specific events only, use th "events": ["completed", "failed"] } ``` - -This is useful if you only care about job completion and don't need per-page updates.