Unit.Resource.Webhook (Unit v1.0.0)

Copy Markdown View Source

Represents a Unit webhook subscription.

Delivery modes

  • AtMostOnce — fires once, no retry on failure
  • AtLeastOnce — batched (up to 64 events), retried on failure/timeout

Unit sends POST requests from whitelisted IP addresses. Your handler must respond with HTTP 200 within the configured timeout.

Summary

Types

t()

@type t() :: %Unit.Resource.Webhook{
  content_type: String.t() | nil,
  created_at: DateTime.t() | nil,
  delivery_mode: String.t() | nil,
  id: String.t(),
  include_resources: boolean(),
  label: String.t() | nil,
  status: String.t() | nil,
  token: String.t() | nil,
  type: String.t(),
  url: String.t() | nil
}