Webhook

webhook.updated

A webhook endpoint`s URL, subscriptions, name, or enabled state changed.

When it fires

After UpdateWebhookService succeeds. changes lists which fields were updated. The endpoint URL itself is not in the payload, only the field name in changes, because receiver URLs often carry a token of their own.

Payload

ts
{
    type: 'webhook.updated',
    data: {
        webhook: {
            id: string
            name: string
            eventTypes: Array<string>
            enabled: boolean
        }
        changes: Array<'name' | 'url' | 'description' | 'eventTypes' | 'enabled' | 'disabledAt' | 'updatedAt'>
    }
}

Example

json
{
    "type": "webhook.updated",
    "data": {
        "webhook": {
            "id": "0192a1b2-c3d4-7000-8000-0000000000d0",
            "name": "PagerDuty bridge",
            "eventTypes": ["key.deleted", "key.rotated", "webhook.delivery_failed"],
            "enabled": true
        },
        "changes": ["eventTypes", "updatedAt"]
    }
}