CHECKFU_BASE_URL to the Checkfu deployment you want to register with. Configure the receiver URL, a stable registration key, and an operator-owned file excluded from source control. Reuse the deployment, receiver URL, key, and file when checking an uncertain result. Choose a separate receipt file for each deployment.
registration.ts
register-webhook.mts
npx tsx register-webhook.mts. The file is created with owner-only permissions on POSIX systems. Use an owner-only directory on Windows. Use its signing_secret as CHECKFU_WEBHOOK_SECRET in Receive webhooks. If visibility fails, keep the receipt and run the same command again.
The URL must be public HTTPS. A Webhook only receives events that happen after it is created.
Events
Subscribe to specific event types, or["*"] to receive every event.
A wildcard subscription also receives new event types as they are added. Use the receiver example to verify every delivery and dispatch the types you handle. If your code uses the SDK’s typed decoder, list the event types it handles in event_types. You can update the event types of an existing Webhook in place.
- Session:
session.status_run_started,session.status_idled,session.status_terminated,session.outputs_recorded - Automation:
automation.created,automation.updated,automation.paused,automation.unpaused,automation.archived - Automation run (scheduled runs only):
automation_run.started,automation_run.succeeded,automation_run.failed - Artifact:
artifact.created,artifact.version_added,artifact.published,artifact.unpublished,artifact.deleted - Agent:
agent.created,agent.updated,agent.archived - Environment:
environment.created,environment.updated,environment.archived,environment.deleted - Vault:
vault.created,vault.archived,vault.deleted - Vault credential:
vault_credential.created,vault_credential.archived,vault_credential.deleted - Memory store:
memory_store.created,memory_store.archived,memory_store.deleted - Webhook:
webhook.test(sent only by the test endpoint)
automation_run.succeeded means the scheduled run opened a Session. A session.status_idled notification signals either a pause for input or the end of a turn. Read the Session’s session.status_idle events to check turn and stop_reason. A requires_action stop waits for a tool response or approval. An end_turn stop records normal completion. See Handle tool calls for how to resume a paused turn.
Webhooks can arrive out of order. Read the turn number from the Session history. For work that depends on a particular turn completing, find its end_turn event and record the Session ID and turn so you can process it once.
An endpoint must be active and subscribed at the event’s recorded timestamp. If several subscription changes share a timestamp, the latest change in that endpoint’s history takes effect. Before posting, Checkfu reads the current subscription again and skips pending attempts for endpoints that are paused or unsubscribed.
A session.outputs_recorded notification means an output capture was saved or skipped. Use the event ID for deduplication and the Session ID in data.id to refresh the latest record. A delayed delivery can arrive after a newer capture. Check turn and status, and use output history to find an earlier capture.
Each payload identifies what happened and which resource changed. Nested resources also carry their parent ID, including automation_id on automation_run.* and vault_id on vault_credential.*. Fetch the resource from the API for full details.
Delivery
Checkfu waits 10 seconds for a response, and any2xx counts as delivered. Failed deliveries get up to 6 attempts spread over about 5 hours. For both direct and proxied delivery, the first retry is scheduled about 30 seconds after the response. An HTTP 429 follows the same schedule regardless of the receiver’s Retry-After header. Redirects (3xx) are never followed and disable the Webhook immediately.
Completed deliveries are retained for up to 14 days (up to 500 per Webhook), so you can inspect and replay them: