KantoorWeb.KartaInboundController (Kantoor v1.0.0)

Receiver for Karta's inbound push (POST /karta/inbound, contract section 4).

Order: configured? -> shared header -> signature on the raw bytes -> parse -> ingest. A 2xx is sent only after the ingest transaction committed, and carries the retention decision for the delivery (contract 3a). Karta retries 408/429/5xx and fails any other 4xx, hence:

  • bad/missing credentials: 401, never says why
  • no secrets configured, or a transient failure: 503 (retried)
  • disabled domain: 503 (retried, so mail survives a re-enable)
  • unknown or disabled recipient, malformed payload: 422 (not retried, logged)
  • duplicate delivery: 200 with the same body

Summary

Functions

create(conn, params)