Payload Retention
Why You Would Use This
Section titled “Why You Would Use This”HookBridge stores webhook payloads so they can be inspected, replayed, and debugged. Payloads are retained for a limited time based on your plan. Understanding retention behavior helps you plan your replay and debugging workflows.
How It Works
Section titled “How It Works”- When a webhook is sent, HookBridge stores the payload durably before queuing it for delivery.
- Payloads are retained for a period determined by your plan.
- After the retention period expires, the payload is automatically cleaned up.
- Message metadata (status, timestamps, attempt history, response codes, errors) is kept longer than payloads and remains visible after the payload is removed.
- Any message with a retained payload can be replayed to its original endpoint, whether the previous delivery succeeded or failed.
What Happens After Retention Expires
Section titled “What Happens After Retention Expires”- The payload is deleted. It cannot be recovered.
- The message record and all metadata remain visible in the console and API.
- Attempting to replay a message whose payload has expired returns a
410 Goneresponse with the error codeRETENTION_EXPIRED. - If the payload has already been cleaned up by the automatic process, a replay attempt returns
PAYLOAD_UNAVAILABLE(also410 Gone).
Per-Message Retention Override
Section titled “Per-Message Retention Override”When sending a webhook, you can optionally set retention_hours to specify a shorter retention period for that individual message. The value cannot exceed your plan’s maximum retention.
curl -X POST https://send.hookbridge.io/v1/webhooks/send \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "endpoint_id": "YOUR_ENDPOINT_ID", "payload": {"event": "order.created"}, "retention_hours": 24 }'If omitted, the message uses your plan’s default retention period.
Operational Tips
Section titled “Operational Tips”- Replay messages promptly when you need to. Once retention ends, the payload is deleted and the message can no longer be replayed.
- Use exports to preserve delivery records for audit or compliance before payloads age out.
- If you need longer retention, consider upgrading your plan.
Personalize Examples
Enter your credentials to populate code examples throughout the docs.