Setting up a webhook
- Open Settings > Webhooks.
- Click Add webhook.
- Enter a name, the URL of your endpoint, and select the events you want to receive.
- Save. InboxMate generates a signing secret — copy it immediately, it is shown only once.
Delivery format
Every event is delivered as an HTTP POST with a JSON body:Verifying the signature
Compute HMAC-SHA256 over the raw request body using your webhook secret, prefix withsha256=, and compare against the X-AgentHub-Signature header in constant time.
Supported events
Each payload includes the IDs you need to look up further context through the API.
Retries and dead-lettering
- Responses in the 2xx range are treated as success.
- 4xx responses are treated as permanent failures (no retry) — fix your endpoint and replay from the UI.
- 5xx, timeouts, and network errors are retried with exponential backoff. After 3 failed attempts the event is moved to dead letter.
- Request timeout is 10 seconds.
200 as soon as you have accepted the payload.
Delivery log and replay
Every attempt — successful or not — is recorded in the webhook’s delivery log for 30 days. For each row you see the event type, HTTP status code, duration, response excerpt, and attempt number. If a delivery fails permanently or dead-letters, click Replay on the failed row to re-queue the event. The dispatcher picks it up within 10 seconds and a new log entry appears when the retry lands.Idempotency
Replays and retries send the same event ID (X-AgentHub-Event-Id). Keep a short-lived cache of processed IDs on your side so repeated deliveries are safe.