Automation Updated Webhook: automation.updated
Use this event to keep external systems in step when an automation rule is edited, paused, or re-enabled. It covers every automation type, and the payload identifies the specific type so your handler can apply the right logic.
What triggers it
Any edit to an existing automation — including switching it off or back on — produces this delivery, whatever kind of automation it is. Receiving it requires the webhook owner to hold the automations:read scope. Treat pausing and re-enabling as updates rather than separate event types: your handler should read the current isActive value in the payload to know whether the rule is now applied. The related automation created event covers initial creation, and the automation deleted event covers removal, where the payload carries only the deleted automation ID.
Headers to verify and track
Verify every delivery before processing it. The VT-Signature header carries a timestamp and an HMAC-SHA256 signature computed over the timestamp and the raw request body; after a secret rotation, a second signature entry signed with the previous secret may appear for 24 hours. The VT-Webhook-Id header identifies which webhook the delivery belongs to. The VT-Event-Id header repeats the event ID found in the body and is the value to use for duplicate detection. The VT-Event-Type header repeats the event type from the body, which for this page is automation.updated. The VT-Delivery-Id header is unique per delivery and stays the same across retries of that delivery, while VT-Delivery-Attempt starts at 1 and increments on each retry. The User-Agent header identifies the webhook sender.
Top-level body fields
The body is JSON. Its top-level fields are id, type, apiVersion, createdAt, companyId, and data, with an optional apiClient object. The id is the event ID and matches VT-Event-Id; because it is deterministic, the same change always produces the same ID, so you can safely skip duplicates. The type field is automation.updated for this event, and automation.created is the only other value this payload shape uses. The apiVersion is 2. The createdAt value is an ISO 8601 timestamp for when the event was created. The companyId identifies the company the automation belongs to. The apiClient object appears only when the change was made through the API and contains the API key ID, an optional integration name, and the key owner's user ID.
Reading the automation payload by type
The data object describes the automation after the change. Every variant shares id, type, name, isActive, ownerId, and createdAt. The name is unique among the company's automations, isActive shows whether the automation is currently applied, and ownerId is the user who created it. Scope fields then narrow where the rule applies: locationIds, departmentIds, and labelIds, where an empty list means all locations, all departments, or users with or without labels respectively. Beyond that, branch on data.type. A blackout-period variant adds startDate, endDate, recurring, and reason. A maximum-users-away variant adds its date window, recurring flag, autoRejectResponse, and a maxUsersAway object whose type is percentage or absolute. A seniority-entitlement variant adds leaveTypeId, prorate, periods, calculateFrom, and an optional awardSeniorityEntitlementDaysOn. An entitlement-by-role variant adds leaveTypeId, startDate, amount, units, and labelId. A probation-period variant adds leaveTypeIds, lengthDays, and reason. A leave-duration-limit variant adds period, minimumDuration, maximumDuration, units, recurring, autoRejectResponse, and leaveTypeIds. A leave-request-notice-period variant adds minLeaveDurationForAdvanceNotice, requiredAdvanceNoticeDays, autoRejectResponse, and leaveTypeIds. In several variants an empty leaveTypeIds list means all leave types, and minimumDuration or maximumDuration can be null when no bound is set.
Handler checklist
A practical handler checklist: verify the signature against the raw body before parsing; confirm the event type is automation.updated; store the event ID and ignore any ID already processed; use VT-Delivery-Id and VT-Delivery-Attempt to distinguish a retry of the same delivery from a new event; branch on data.type before reading type-specific fields; check isActive to handle pauses and re-enables; and record apiClient when present to trace API-originated changes. Respond with a 2XX status once processing is accepted, as shown in the response examples.
Frequently asked questions
When is automation.updated sent?
It fires after any existing automation is edited, paused, or re-enabled, regardless of automation type. The webhook owner needs the automations:read scope to receive it.
How do I tell which automation type changed?
Check the data.type value inside the payload. That field distinguishes blackout-period, maximum-users-away, seniority-entitlement, entitlement-by-role, probation-period, leave-duration-limit, and leave-request-notice-period, and each variant carries its own fields.
How should duplicate deliveries be handled?
Use the event ID from the body, which matches the VT-Event-Id header. It is deterministic for a given change, so storing processed IDs lets you ignore repeat deliveries. Test deliveries are the exception and use a random ID.
VT-Signature
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Signature | string | Yes | t= ,v1= . "> . For 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret. See Signature verification at the top of this document. |
VT-Webhook-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Webhook-Id | string | Yes | the ID of the webhook the delivery is for. |
VT-Event-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Id | string | Yes | the event ID, the same as id in the body. Use it to skip duplicate deliveries. |
VT-Event-Type
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Event-Type | string | Yes | the event type, the same as type in the body. | Allowed values: $3b |
VT-Delivery-Id
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Id | string | Yes | the delivery ID, unique per delivery and kept across retries of the same delivery. |
VT-Delivery-Attempt
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| VT-Delivery-Attempt | integer | Yes | the attempt number of this delivery, starting at 1. | 1 <= value |