Webhooks

On Business, receive events such as track.offline as signed requests at your own address. Events, the signature, retries and resending.

Aktualisiert am 22. Oktober 2026, Die Dokumentation ist auf Englisch.

A webhook endpoint is an address plus the events it wants. We send each event as a signed POST the moment it happens. Endpoints are part of Business; manage them in API keys or with /v1/webhooks. On Pro, read the same events from GET /v1/events, which keeps them for 30 days.

They go out through our proxy network, so your endpoint never sees our servers' address, and never to private or internal addresses.

Events

EventWhen
track.offlineA track can no longer be played
track.restoredIt plays again
release.detectedA new release appeared on a profile
release.removedA release disappeared
release.restoredIt is back
change.confirmedAny change is confirmed, alongside the events above
change.resolvedSomeone marked a change as resolved
artist.added, artist.removedThe roster changed
artist.verified, artist.verification_failedA verification went through, or did not
usage.limit_near80 percent of the plan's artists are in use
export.readyA requested export can be downloaded

The request

http
POST /your/endpoint
Content-Type: application/json
X-LabelSentry-Event: track.offline
X-LabelSentry-Delivery: 2b7d...
X-LabelSentry-Signature: t=1792675200,v1=5f2c9e...
json
{ "id": "a2cd...", "type": "track.offline", "created_at": "2026-10-22T18:23:04Z",
  "data": { "object": "change", "id": "8808...", "type": "track_offline", "summary": "Harbour Lights is offline" } }

data is the same object the API returns for it, here a change.

Check the signature

The signature is an HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with the endpoint's secret. While a secret is being rotated, the header carries a v1 for each of the two secrets; accept either. The SDKs do this for you:

ts
import { verifyWebhook } from "@labelsentry/sdk";

const event = await verifyWebhook(rawBody, req.headers["x-labelsentry-signature"], process.env.HOOK_SECRET);

Reject requests older than five minutes, so a captured request cannot be sent again later. Use id to recognise an event you already handled: the order of deliveries is not guaranteed.

Answer and retries

Answer with any 2xx status within 10 seconds. Anything else is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours. An endpoint that fails for three days is paused and its admins get an email. Every delivery shows its status, answer and duration, and can be sent again.

Alert webhooks

A Custom Webhook alert destination still works as before: it sends every change its rules let through, signed the same way, with X-LabelSentry-Event: change.confirmed. Endpoints are the better choice for new integrations, because they carry every event type and can be resent.

Weiterlesen

Noch eine Frage?

Remi sucht für dich in allen Hilfeseiten.

Noch Fragen? Schreib an [email protected].