user.quota-updated: leave quotas or rollover changed
This event fires when a user's leave quotas or rollover settings are set or removed. Treat it as a signal to refresh that user's quota state, not as the quota state itself.
What this event means
When quotas or rollover are set or removed for a user, this delivery tells you which user changed. It does not embed the new quota or rollover numbers. Your handler should therefore use the user in data to identify who changed, then call GET /v2/users/{id}/quotas for the authoritative current values. The webhook owner needs users:read for that follow-up read.
Verify and deduplicate the delivery
Verify the signature before trusting the body. The protected header contracts schema0001 through schema0006 define VT-Signature, VT-Webhook-Id, VT-Event-Id, VT-Event-Type, VT-Delivery-Id and VT-Delivery-Attempt. Use VT-Event-Id, which matches the body id, to skip duplicate deliveries. Note the distinction between the two identifiers: the event ID is deterministic for the same change, while the delivery ID is unique per delivery and stays the same across retries of that delivery. VT-Delivery-Attempt starts at 1 and increments on retries, so it is useful for logging but not for deduplication.
Reading the payload
The JSON body contract is protected module schema0008. At the top level it carries id, type, apiVersion, createdAt, companyId, data and an optional apiClient. For this event type is user.quota-updated and apiVersion is 2. The data object is the user record, in the same shape as GET /v2/users/{id} without expand, including fields such as id, name, email, isAdmin, locationId, departmentId, status, employeeId, startDate, endDate and labels, with location, department and holidays present only when expand includes them. apiClient is present only when the change was made through the API, and identifies the API key that made it.
Handling checklist
A reliable handling sequence is: verify the signature, check VT-Event-Type, deduplicate on the event ID, extract the user ID from data, fetch GET /v2/users/{id}/quotas, and only then update your local quota or rollover state. If you store the payload as the quota state, you will miss the actual values because data is the user, not the quotas. The same user payload shape is shared with user.updated and user.status-changed, so do not infer a quota change from those events or a profile change from this one; branch on type.
Frequently asked questions
Does the user.quota-updated payload contain the new quota values?
No. The data object contains the affected user in the same shape as GET /v2/users/{id} without expand. Fetch GET /v2/users/{id}/quotas to obtain the current quota and rollover values.
What permission does the webhook owner need?
The webhook owner needs users:read. That scope is required to read the follow-up quota values.
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 |