Skip to content

label.assigned Webhook Event

The label.assigned event notifies your endpoint when a label is attached to a user. The payload is intentionally narrow: it identifies the label and the user, while the delivery headers carry signing, event, delivery and retry information. Use this page to configure the subscription, verify the request and avoid processing the same change twice.

When this event fires

A delivery is sent when a label becomes associated with a user. The webhook owner must hold the labels:read permission. The event is distinct from label.removed, which reports the opposite change, and from label.created, label.updated and label.deleted, which concern the label record itself rather than its assignment to a user.

Delivery headers

Each request carries a set of headers that identify the webhook, the event, the delivery and the attempt. The signature header is the one to verify before trusting the body. The event ID and delivery ID serve different deduplication purposes: the event ID is stable for the same change, while the delivery ID is unique per delivery and remains the same across retries. The User-Agent value is set by the sending platform and is not something your endpoint chooses.

Payload shape

The body is JSON and follows the LabelAssignmentWebhookEvent shape. The data object contains only labelId and userId. That means the event tells you which label was assigned and to which user, but it does not include the label name, the user's profile or any other expanded resource. If your workflow needs those details, fetch them separately through the matching read endpoints. The apiClient field appears only when the change was made through the API.

Verification and deduplication checklist

  1. Confirm the request carries a VT-Signature header and verify it against the raw body before parsing. 2. Check that VT-Event-Type matches label.assigned. 3. Use VT-Event-Id or the body id to skip a change you have already processed. 4. Use VT-Delivery-Id to distinguish retries of the same delivery from separate deliveries. 5. Read VT-Delivery-Attempt to see whether this is the first attempt or a retry. 6. Treat data.labelId and data.userId as identifiers only and resolve any additional details through the API.

What this event does not tell you

A label.assigned delivery does not mean the label was created, changed or deleted. Those changes have their own events. It also does not mean the user's profile, status or quota changed. If your integration needs to react to those changes, subscribe to the corresponding user or label events rather than inferring them from an assignment.

Header-to-purpose map
HeaderPurpose
VT-SignatureSigned timestamp and HMAC-SHA256 of the raw body; verify before parsing.
VT-Webhook-IdIdentifies the webhook the delivery is for.
VT-Event-IdEvent ID, same as id in the body; use to skip duplicates.
VT-Event-TypeEvent type, same as type in the body.
VT-Delivery-IdUnique per delivery and kept across retries of the same delivery.
VT-Delivery-AttemptAttempt number, starting at 1.
User-AgentDocumented sender string for deliveries in this webhook contract; it is a fixed literal, not a value your endpoint sets.

Header names and values are part of the webhook contract; do not rename them. The User-Agent row records the documented value and is not a claim about your own sender.

Frequently asked questions

What causes a label.assigned delivery?

A delivery is sent when a label is assigned to a user. The webhook owner must have the labels:read permission.

Which fields are in the label.assigned payload?

The data object contains labelId and userId. The body also includes id, type, apiVersion, createdAt, companyId and, when the change was made through the API, apiClient.

How should I deduplicate label.assigned deliveries?

Use the event ID, which is the same as the VT-Event-Id header and the body id, to skip a change you have already handled. Use the delivery ID to tell retries of the same delivery apart from separate deliveries.

How is this different from label.removed?

label.assigned reports that a label was attached to a user. label.removed reports that a label was detached from a user. Both carry only labelId and userId in data and both require labels:read.

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