Lettermint.Webhooks (Lettermint v2.1.0)

Copy Markdown View Source

Webhook endpoints. Needs :team_token. Delivery attempts are in Lettermint.Webhooks.Deliveries. To verify incoming deliveries, use Lettermint.Webhook.

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

Summary

Functions

Creates a webhook. The response holds its signing secret once.

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

Replaces the signing secret. The response holds the new secret once.

Sends a webhook.test delivery.

Types

result(value)

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

Functions

create(client, body, options \\ [])

Creates a webhook. The response holds its signing secret once.

delete(client, webhook_id, options \\ [])

Deletes a webhook.

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

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

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

Lists webhooks, one page at a time. query: Lettermint.Types.ListWebhooksQuery.t/0.

regenerate_secret(client, webhook_id, options \\ [])

Replaces the signing secret. The response holds the new secret once.

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

Retrieves a webhook.

test(client, webhook_id, options \\ [])

Sends a webhook.test delivery.

update(client, webhook_id, body, options \\ [])

Updates a webhook.