Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sparkpost/webhooks.ts>Webhooks

Send emails from deno via the SparkPost API
Latest
class Webhooks
extends Base
import { Webhooks } from "https://deno.land/x/sparkpost@0.1.1/webhooks.ts";

Methods

create(webhook: any)

Creates a new webhook

delete(id: string)

Delete an existing webhook

get(id: string, options: any)

Get a single webhook by ID

getBatchStatus(id: string, options: any)

Gets recent status information about a webhook.

Lists descriptions of the events, event types, and event fields that could be included in a Webhooks post to your target URL.

getSamples(options: any)

Lists examples of the event data that will be posted to a webhook consumer.

list(options: any)

Lists all webhooks

update(id: string, webhook: any)

Update an existing webhook

validate(id: string, options: any)

Sends an example message event batch from the Webhook API to the target URL.