Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions webhooks/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,11 @@ 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
{
"url": "https://your-app.com/webhook",
"events": ["completed", "failed"]
}
```

This is useful if you only care about job completion and don't need per-page updates.