Add webhook
Adds an endpoint that is told about the events you pick. The signing secret is in this answer and is never shown again.
webhooks_createArguments
urlstringRequiredA public
https://address of yours that takes a POST. Up to 500 characters.eventsstring[]The events to be told about. Without it the webhook gets every event. Default:
["email.sent","email.delivered","email.delayed","email.bounced","email.opened","email.clicked","email.complained","email.failed","email.received","email.scheduled","email.canceled","automation.entered","automation.finished","automation.step"].One of
email.sentemail.deliveredemail.delayedemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receivedemail.scheduledemail.canceledautomation.enteredautomation.finishedautomation.stepformatstringHow an event is written and signed.
resendsends thesvix-id,svix-timestampandsvix-signatureheaders and the body an endpoint built for Resend already reads. Without it,native.One of
nativeresendsecretstringThe signing secret the endpoint already checks with, as Resend gave it:
whsec_and Base64. Only for theresendformat. Without it a new secret is made.
Returns
The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.
object"webhook"Always
webhook.idstringThe id of the webhook.
urlstringThe address events are posted to.
eventsstring[]The events it is told about.
One of
email.sentemail.deliveredemail.delayedemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receivedemail.scheduledemail.canceledautomation.enteredautomation.finishedautomation.stepstatusstringenabledwhile events are posted to it,disabledwhen it is switched off.One of
enableddisabledformatstringHow an event is written and signed:
nativeis this API,resendis the headers, signature and body an endpoint built for Resend expects.One of
nativeresendlastDeliveryAtstring | nullWhen an event was last posted to it, or
null.lastStatusinteger | nullThe HTTP status your address answered with last time, or
null.createdAtstringWhen the webhook was added.
secretstringThe secret to check signatures with. It is shown this once and cannot be read again.