Lettermint.Webhooks.Deliveries (Lettermint v2.2.0)

Copy Markdown View Source

Delivery attempts of a webhook. Needs :team_token.

Every function takes the options timeout: (milliseconds) last.

Summary

Functions

Streams every delivery of a webhook, following next_cursor. Raises the error of a failed page request.

Lists the deliveries of a webhook, one page at a time.

Sends a delivery's original payload to the webhook again now. The retry counts as a delivery attempt; if it fails with a retryable error, automatic retries continue. A delivery that cannot be retried returns a Lettermint.ConflictError.

Types

result(value)

@type result(value) :: {:ok, value} | {:error, Lettermint.Error.t()}

Functions

iterate(client, webhook_id, query \\ %{}, options \\ [])

Streams every delivery of a webhook, following next_cursor. Raises the error of a failed page request.

list(client, webhook_id, query \\ %{}, options \\ [])

Lists the deliveries of a webhook, one page at a time.

retrieve(client, webhook_id, delivery_id, options \\ [])

Retrieves one delivery.

retry(client, webhook_id, delivery_id, options \\ [])

Sends a delivery's original payload to the webhook again now. The retry counts as a delivery attempt; if it fails with a retryable error, automatic retries continue. A delivery that cannot be retried returns a Lettermint.ConflictError.