Skip to content

automation.deleted webhook event

The automation.deleted event fires whenever an automation of any type is removed. The delivery is intentionally small: the data object carries only the ID of the deleted automation. updated.

When this event fires

The event is sent whenever an automation of any type is deleted. The subscription owner must hold the automations:read scope. Per the event description, the data object carries only the ID of the deleted automation.

Headers to verify on every delivery

Each delivery carries a fixed set of headers. The signature header is the one you must validate before trusting the body; the event and delivery identifiers let you deduplicate and track retries.

Body fields

The body is a DeletedResourceWebhookEvent. It carries the event id, type, apiVersion, createdAt, companyId, a data object, and an optional apiClient object describing the API key that made the change. The data object contains the deleted resource id and, when known, the userId and locationId.

automation.deleted vs automation.updated

automation.updated is sent when an automation is changed, paused or re-enabled, and its data reflects the resource in the same shape the matching GET endpoint returns. automation.deleted is narrower: the data object carries only the ID of the deleted automation. Route the two events to different branches of your handler.

Receiver checklist

  1. Confirm the VT-Signature header validates against the raw body using the shared secret; accept a second v1 entry during the 24-hour rotation window.
  2. Reject deliveries whose VT-Event-Type is not automation.deleted.
  3. Use VT-Event-Id (or the body id) to skip duplicates; the same change always produces the same ID.
  4. Use VT-Delivery-Id to correlate retries and VT-Delivery-Attempt to observe attempt counts.
  5. Read data.id as the deleted automation's identifier; userId and locationId appear when known.
  6. If apiClient is present, record keyId, name and ownerId for audit purposes.

Minimal example body

A representative automation.deleted body contains the required fields only. The data object holds the deleted automation's id; userId and locationId appear when known. The apiClient object is omitted when the change was not made through the API.

Frequently asked questions

Does the automation.deleted payload include the automation's configuration?

The event description states that the data object carries only the ID of the deleted automation, and the DeletedResourceWebhookEvent schema lists the data object's id as required, with userId and locationId as optional when known.

How do I avoid processing the same automation.deleted event twice?

Use the VT-Event-Id header or the body id. The event ID is deterministic, so the same change always produces the same ID; webhook.test events are the exception and get a random ID.

What does the second v1 entry in VT-Signature mean?

For 24 hours after a secret rotation, the signature header carries a second v1 entry signed with the previous secret. Accept either entry during that window.

Why is apiClient missing from some deliveries?

apiClient is present only when the change was made through the API.

VT-Signature

FieldTypeRequiredDescriptionConstraints
VT-SignaturestringYest= ,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

FieldTypeRequiredDescriptionConstraints
VT-Webhook-IdstringYesthe ID of the webhook the delivery is for.

VT-Event-Id

FieldTypeRequiredDescriptionConstraints
VT-Event-IdstringYesthe event ID, the same as id in the body. Use it to skip duplicate deliveries.

VT-Event-Type

FieldTypeRequiredDescriptionConstraints
VT-Event-TypestringYesthe event type, the same as type in the body.Allowed values: $3b

VT-Delivery-Id

FieldTypeRequiredDescriptionConstraints
VT-Delivery-IdstringYesthe delivery ID, unique per delivery and kept across retries of the same delivery.

VT-Delivery-Attempt

FieldTypeRequiredDescriptionConstraints
VT-Delivery-AttemptintegerYesthe attempt number of this delivery, starting at 1.1 <= value