Official Documentation
import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.createWebhook({
domain_id: "...",
events: ["..."],
name: "...",
url: "...",
// ...
});
import { createWebhook } from "@nuro.dev/mailersend.ts";
const result = await createWebhook("API_KEY", {
domain_id: "...",
events: ["..."],
name: "...",
url: "...",
// ...
});
Official Documentation
import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.listWebhooks({
domain_id: "...",
});
import { listWebhooks } from "@nuro.dev/mailersend.ts";
const result = await listWebhooks("API_KEY", {
domain_id: "...",
});
Official Documentation
import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.webhookById("WEBHOOK_ID");
import { webhookById } from "@nuro.dev/mailersend.ts";
const result = await webhookById("API_KEY", "WEBHOOK_ID");
Official Documentation
import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.updateWebhook({
webhookId: "...",
// ...
});
import { updateWebhook } from "@nuro.dev/mailersend.ts";
const result = await updateWebhook("API_KEY", {
webhookId: "...",
// ...
});
Official Documentation
import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.deleteWebhook("WEBHOOK_ID");
import { deleteWebhook } from "@nuro.dev/mailersend.ts";
const result = await deleteWebhook("API_KEY", "WEBHOOK_ID");