emailService instance you use to send email.
Node.js
Webhook client
Manage webhook endpoints with the Paubox Node.js SDK.
Webhook methods are on the same
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage webhook endpoints with the Paubox Node.js SDK.
emailService instance you use to send email.
const paubox = require('paubox-node');
const service = paubox.emailService({ apiKey: 'YOUR_API_KEY' });
const endpoints = await service.listWebhookEndpoints();
const result = await service.createWebhookEndpoint({
target_url: 'https://example.com/webhooks/paubox',
events: ['inbound_mail_received', 'api_mail_log_delivered'],
signing_key: 'whsec_abc123',
active: true,
});
const endpoint = await service.getWebhookEndpoint(42);
const result = await service.updateWebhookEndpoint(42, {
active: false,
});
const result = await service.deleteWebhookEndpoint(42);