Karta.Webhooks.Catalogue (Karta v1.0.0)

The events a webhook can subscribe to. Each is sent once Karta has recorded it (after the transaction that records it commits); the message events are about one recipient of one outgoing message:

  • message.accepted - Karta accepted the message for the recipient and queued it;
  • message.suppressed - the recipient was on the server's suppression list when the message was accepted: it is not delivered;
  • message.delivered - the recipient's mail server accepted the message;
  • message.deferred - a delivery attempt failed temporarily; Karta tries again (next_attempt_at);
  • message.bounced - delivery failed for good: the recipient's server refused it, or the retry period ended;
  • message.opened, message.clicked - open and click tracking;
  • message.unsubscribed - the recipient unsubscribed with one click (List-Unsubscribe); the address is now on the suppression list;
  • message.complained - the recipient reported the message as spam (a feedback report, RFC 5965); the address is now on the suppression list;
  • domain.dns_failed - a DNS health check of a verified domain of the server's organisation turned to a problem (Karta.Domains.Health).

webhook.test is sent to one webhook when someone asks for a test event; no webhook subscribes to it.

Messaging events (messaging_types/0, Karta.Messaging.Events) are a separate list on purpose: types/0 is what a webhook with no event list ("every type") receives, those added later included, and a mail webhook must never start receiving messaging events by surprise. A messaging event reaches a webhook only when the webhook names it.

Summary

Functions

What an event type means, in a sentence.

The messaging events, in order. They are never part of types/0: a webhook receives them only when it names them.

The type of the test event (not subscribable).

The event types webhooks can subscribe to, in order.

Functions

description(type)

@spec description(String.t()) :: String.t() | nil

What an event type means, in a sentence.

messaging_types()

@spec messaging_types() :: [String.t()]

The messaging events, in order. They are never part of types/0: a webhook receives them only when it names them.

test_type()

@spec test_type() :: String.t()

The type of the test event (not subscribable).

types()

@spec types() :: [String.t()]

The event types webhooks can subscribe to, in order.