Webhooks and events
Everything that happens in an account is an event: entitlement.created, entitlement.revoked,
favorite.added, favorite.removed, collection.created, collection.updated,
collection.deleted, download.created. GET /v1/events (scope library:read) lists them,
newest first, for 90 days.
Endpoints
Section titled “Endpoints”A server that wants to hear about events registers an endpoint (scope webhooks):
POST /v1/me/webhook-endpoints{ "url": "https://example.com/hooks/samplecloud", "event_types": ["entitlement.created"] }The answer contains secret (whsec_…), shown only once. An empty event_types means all
events. The URL must be public HTTPS. POST /v1/me/webhook-endpoints/{id}/test sends a
webhook.test event; GET …/{id}/deliveries shows recent attempts.
Deliveries
Section titled “Deliveries”Deliveries follow Standard Webhooks: a POST with a JSON body
{ "type": "entitlement.created", "timestamp": "2026-12-04T10:00:00Z", "data": { "entitlement_id": "ent_…", "target": { "type": "pack", "id": "pck_…" }, "event_id": "evt_…" } }and the headers webhook-id (the event ID; use it to drop duplicates), webhook-timestamp and
webhook-signature: v1, + base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{body}, keyed
with the base64 part of the secret. Any Standard Webhooks library verifies it.
Answer 2xx within 10 seconds. Failed deliveries are retried after 1 and 5 minutes, then 30
minutes, 2, 5 and 10 hours, for about three days. An endpoint that keeps failing for three days is
disabled; enable it again with PATCH /v1/me/webhook-endpoints/{id} { "status": "active" }.