Update webhook
Changes the address, the events or whether an endpoint is switched on.
opensend.webhooks.update(id, input?)opensend webhooks updateInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
urlstringA new address. Up to 500 characters.
eventsstring[]The events to be told about from now on.
One of
email.sentemail.deliveredemail.delayedemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receivedemail.scheduledemail.canceledautomation.enteredautomation.finishedautomation.stepstatusstringenabledto post events,disabledto stop.One of
enableddisabledformatstringnativeorresend: how events are written and signed from now on.One of
nativeresend
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
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.