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.
Deletes a webhook.
Streams every webhook, following next_cursor. Raises the error of a failed page request.
Lists webhooks, one page at a time. query: Lettermint.Types.ListWebhooksQuery.t/0.
Replaces the signing secret. The response holds the new secret once.
Retrieves a webhook.
Sends a webhook.test delivery.
Updates a webhook.
Types
@type result(value) :: {:ok, value} | {:error, Lettermint.Error.t()}
Functions
@spec create( Lettermint.Client.t(), Lettermint.Types.StoreWebhookData.t() | map(), keyword() ) :: result(Lettermint.Types.WebhookSecretResponse.t())
Creates a webhook. The response holds its signing secret once.
@spec delete(Lettermint.Client.t(), String.t(), keyword()) :: result(Lettermint.Types.MessageResponse.t())
Deletes a webhook.
@spec iterate( Lettermint.Client.t(), Lettermint.Types.ListWebhooksQuery.t(), keyword() ) :: Enumerable.t(Lettermint.Types.WebhookListData.t())
Streams every webhook, following next_cursor. Raises the error of a failed page request.
@spec list(Lettermint.Client.t(), Lettermint.Types.ListWebhooksQuery.t(), keyword()) :: result(Lettermint.Types.ListWebhooksResponse.t())
Lists webhooks, one page at a time. query: Lettermint.Types.ListWebhooksQuery.t/0.
@spec regenerate_secret(Lettermint.Client.t(), String.t(), keyword()) :: result(Lettermint.Types.WebhookSecretResponse.t())
Replaces the signing secret. The response holds the new secret once.
@spec retrieve(Lettermint.Client.t(), String.t(), keyword()) :: result(Lettermint.Types.WebhookData.t())
Retrieves a webhook.
@spec test(Lettermint.Client.t(), String.t(), keyword()) :: result(Lettermint.Types.TestWebhookResponse.t())
Sends a webhook.test delivery.
@spec update( Lettermint.Client.t(), String.t(), Lettermint.Types.UpdateWebhookData.t() | map(), keyword() ) :: result(Lettermint.Types.WebhookMutationResponse.t())
Updates a webhook.