Skip to content

label.updated webhook: label name or colour changed

Use this event to keep external systems in step when an existing label is renamed or recoloured. The delivery is a POST carrying a JSON body, identified in the headers and in the payload so receivers can verify it, route it, and safely ignore repeats.

What triggers it and what to expect

The owner of the webhook needs labels:read. Treat the event type as label.updated and expect the same label shape returned by the matching GET endpoint inside data, rather than a partial diff. That means a rename or colour change arrives as a complete label record, so receivers should replace their stored copy instead of trying to patch individual fields. Creation, deletion, assignment and removal are separate events; do not infer them from this payload.

Headers: verify, route, and deduplicate

Verify the signature before trusting the payload. VT-Signature carries a timestamp and an HMAC-SHA256 value computed over the timestamp and the raw body; during the 24 hours after a secret rotation a second signature entry signed with the previous secret may also be present, so accept either valid entry during that window and follow the signature-verification guidance for the full procedure. VT-Webhook-Id identifies which webhook the delivery belongs to. VT-Event-Id matches the body's id and is deterministic for the same change, which makes it the right key for skipping duplicate deliveries. VT-Event-Type matches the body's type. VT-Delivery-Id stays the same across retries of one delivery, while VT-Delivery-Attempt starts at 1 and increments, so you can distinguish a retry from a genuinely new event. Check the full header contract in the accompanying protected modules schema0001 to schema0006 before implementing.

Body fields you can rely on

The JSON body is described by protected module schema0008. At the top level, id repeats the event ID for deduplication, type carries the event type, apiVersion identifies the data-shape version, createdAt is an ISO 8601 date-time for when the event was created, and companyId identifies the company. Inside data, the label carries its own id, name, colour as stored (the dashboard presents it as a hex code), and userCount, the number of users holding the label or 0 when none. The optional apiClient object appears only when the change was made through the API and identifies the key that made it, including its key ID, owner ID, and an integration name when one is set. Because data mirrors the GET shape, a practical example is a label renamed from one name to another: store the new name from data.name, refresh the colour from data.color, and use data.userCount to update any per-label user totals without a follow-up fetch.

Receiver checklist

Before processing, confirm the signature and that the event type is label.updated. Record the event ID and skip the delivery if it has already been handled, since retries reuse the delivery ID while the event ID stays stable for the same change. Replace the stored label with the data object, using its id as the key. If apiClient is present, log which key caused the change for audit purposes; if it is absent, the change did not come through the API. Return a successful response so the delivery is not retried unnecessarily, and keep the raw body available for signature checks rather than re-serialising parsed JSON.

label.updated receiver checklist
CheckWhat to do
SignatureValidate VT-Signature over the timestamp and raw body, allowing the previous-secret entry during the 24-hour rotation window.
Event typeConfirm VT-Event-Type and body type are label.updated before applying changes.
DuplicatesStore VT-Event-Id / body id and skip repeats; use VT-Delivery-Id and VT-Delivery-Attempt to recognise retries.
ApplyReplace the stored label with data, keyed by data.id, including name, colour and userCount.
ProvenanceRecord apiClient when present; its absence means the change was not made through the API.

Summary of the prose checklist; the protected modules schema0001-schema0008 remain authoritative for exact contract details.

Frequently asked questions

When is label.updated sent?

It fires when a label's name or colour is edited. The webhook owner needs the labels:read scope. It is distinct from creation, deletion, and from assigning or removing a label on a user.

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