Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

sac Submodule

inbound-log

Raw record of everything that arrived through the channels, including what was discarded and why.

Source path: libraries/sac/src/inbound

Module file: inbound.module.ts

Introduction

Every received message is persisted before interpretation, which buys three things a ticket message cannot: idempotency (IMAP redelivers and webhooks replay, and the unique `external_id` is what stops one message becoming two tickets), an audit trail of what was DISCARDED — auto-replies, bounces, list mail, loops — which by definition produces no ticket message and would otherwise vanish, and the original payload for when interpretation gets it wrong.

This is the screen that answers "the customer says they e-mailed and nobody replied". A failed or wrongly discarded message can be reprocessed from here; the worker refuses to reprocess something already processed, so a job delivered twice never duplicates the message in the timeline.

HTTP Endpoints

4 endpoints

Inbound log, newest first, with the resulting ticket when there is one.

Query
page, pageSize, search, status, source_kind

Received, processed and discarded in the last 24h, plus open failures with no time window.

Raw payload, for when the interpretation was wrong and the original is needed.

Params
id (int)

Reprocess a message that failed or was discarded by mistake.

Params
id (int)