# Deploy a webhook inbox for synthetic JSON events

Send a JSON event to a private capability URL, reload the inbox, and inspect the stored, redacted delivery.

## How do I deploy a small webhook receiver for integration testing?

Give each demo session an unguessable receiver token. Accept bounded JSON, redact common secret field names, and persist deliveries in SQL. This is a synchronous receiver, not a durable queue or provider-signature verifier.

1. Generate a random receiver token for each demo session.
2. Send only a synthetic JSON event to the receiver.
3. Reject oversized or invalid JSON and redact common sensitive keys before storage.
4. Reload the inbox and inspect the persisted event, including its redacted fields.

```javascript
const payload = await readBoundedJson(request, 4096);
await env.DB.prepare(
  'INSERT INTO deliveries (id, session_id, payload, created_at) VALUES (?, ?, ?, ?)'
).bind(crypto.randomUUID(), session.id,
       JSON.stringify(redact(payload)), Date.now()).run();
```

## Limits and evidence

The demo caps payloads at 4 KiB and keeps at most 20 deliveries per session. Field-name redaction cannot remove all sensitive free text. Production integrations need provider signatures, durable retries and monitoring.

Public browser verification date: 2026-11-30. All example data is synthetic; no customer, performance or revenue claims.

Unclaimed apps expire after 72 hours; persistent use requires a human ownership claim.

[Deployment docs](https://backendshare.com/docs)
