﻿# Label Studio webhooks: reconcile annotation state instead of treating notifications as a complete history

Design Label Studio annotation consumers around documented payload options and failed-delivery behavior, with an independent reconciliation path for dataset state.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-label-studio-webhook-reconcile-annotation-state/
Language: en

## Determine which changes matter

An annotation pipeline may need to react to new labels, corrections and removals. The [Label Studio webhook guide](https://labelstud.io/guide/webhooks.html) describes subscriptions to those events. Select the event types required by the downstream dataset rather than treating every request as a new completed training example. A correction or deletion should update the appropriate existing entity, while a project-configuration change can alter how later annotations must be interpreted.

## Inspect the configured payload

The guide allows payload delivery to be disabled, leaving only the action key. The [event reference](https://labelstud.io/guide/webhook_reference) describes the information normally included for different actions. Design the consumer against the actual configuration and event type. An action-only notification does not contain the same identifiers and annotation values as a full creation event. Test the configured subscription with representative updates before depending on its contents for a dataset join.

## Account for failed delivery

The setup documentation states that failed webhook connections are not retried by Label Studio. A handler that performs long training work before responding can therefore create a gap between source changes and downstream state. Keep receipt separate from expensive processing and record what the application actually accepted. Do not assume a retry guarantee that the sender does not provide. If reliable processing needs an internal durable queue, document that queue as part of the consuming application's design.

## Reconcile with the source API

The [API guide](https://labelstud.io/guide/api) provides access to tasks and annotation operations. Build a reconciliation procedure appropriate to the project, including a way to discover removals rather than fetching only currently known changed objects. Compare source identity, modification state and destination membership. A webhook can accelerate updates while periodic reconciliation explains whether the destination has converged after downtime or a network failure. Those are complementary functions, not interchangeable delivery claims.

## Make the published dataset traceable

Record the source project and reconciliation boundary used to create a dataset release. Preserve [removal lineage](/journal/data-guide-dataset-removal-lineage-tombstone/) and [content identity](/journal/data-guide-exact-hash-normalization-boundary/) where changed material affects training records. Test an annotation correction and deletion end to end, not only a successful creation event. A stream of visible notifications is useful operational evidence, but completeness requires checking the resulting dataset against the authoritative source state under a defined update policy.
