Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.webhooks.update(
'430eed87-632a-4ea6-90db-0aace67ec228',
{
endpoint: 'https://new-webhook.example.com/handler',
events: ['email.sent', 'email.delivered'],
status: 'enabled',
},
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.webhooks.update(
'430eed87-632a-4ea6-90db-0aace67ec228',
{
endpoint: 'https://new-webhook.example.com/handler',
events: ['email.sent', 'email.delivered'],
status: 'enabled',
},
);
{
"object": "webhook",
"id": "430eed87-632a-4ea6-90db-0aace67ec228"
}
Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.webhooks.update(
'430eed87-632a-4ea6-90db-0aace67ec228',
{
endpoint: 'https://new-webhook.example.com/handler',
events: ['email.sent', 'email.delivered'],
status: 'enabled',
},
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.webhooks.update(
'430eed87-632a-4ea6-90db-0aace67ec228',
{
endpoint: 'https://new-webhook.example.com/handler',
events: ['email.sent', 'email.delivered'],
status: 'enabled',
},
);
{
"object": "webhook",
"id": "430eed87-632a-4ea6-90db-0aace67ec228"
}
Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Body Parameters
The URL where webhook events will be sent.
Array of event types to subscribe to.See event types for available options.
The webhook status. Can be either enabled or disabled.