Stitch / docs
Webhook Triggers

Filters

Choose which webhook events and payloads can start agent runs.


Filters check the incoming webhook before a run starts. All configured conditions must pass.

Event Names

Use events to accept specific event names from meta.event. An empty list accepts any event name. You can specify up to 32 names, each with 1–128 characters.

key: external-ticket
name: Handle ticket events
provider: webhook
integration: support-events
harness: coding-agent
sandbox: workspace
agentId: build
initialPrompt: Investigate the incoming ticket.
events: [ticket.created, ticket.updated]

Payload Filters

payloadFilter matches fields in data, not meta. Nested fields are combined with AND; values within a list are combined with OR.

payloadFilter:
  ticket:
    priority: [high, urgent]
    archived:
      not_in: [true]
    assignee:
      exists: true

This accepts tickets with high or urgent priority, an archived value other than true, and an assignee field. A missing archived field also passes this example.

Operators

OperatorMatch
inThe field matches any listed value
not_inThe field matches none of the listed values; missing fields also pass
existstrue requires the field to be present; false requires it to be absent

A plain list is shorthand for in. Use exists: true with not_in when the field must also be present:

payloadFilter:
  archived:
    exists: true
    not_in: [true]

exists checks field presence, so a field with a null value is present. Nested array objects match when any element matches.

Limits

SettingLimit
Values per list1–32 strings, numbers, booleans, or null values
Leaf rules64
Nesting depth10

The webhook schema exposes a payload object. Full CLI validation also checks the nested filter rules.

On this page