Skip to main content
Rewind tells your harness when something happens to a run, so it can resume a conversation when a long run ends, show a pending approval, or warn about a quota. Deliveries follow Standard Webhooks: an HMAC-SHA256 signature over {id}.{timestamp}.{body}, with 5 minutes of tolerance on the timestamp.

Subscribe

Subscriptions belong to your organization: one receives the events of every end user, each naming its namespace. Deliveries go to public https:// URLs.

Verify and handle

Pass the body exactly as received, before any JSON parsing. Answer fast, then work. A retried delivery keeps its webhook-id header: deduplicate on it.
event.type narrows event.data to the right shape. The complete program, with a run that suspends and completes, is in examples/webhooks.

Events

Every event about a run carries the run’s state as the event left it, its namespace and its labels.

Manage subscriptions