Send test event
Posts one signed sample event to an endpoint and answers with what the endpoint said.
opensend.webhooks.test(id)opensend webhooks testInput
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.
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_delivery"Always
webhook_delivery.idstringThe id of the delivery.
webhookIdstringThe id of the webhook it was for.
typestringThe event that was posted.
One of
email.sentemail.deliveredemail.delayedemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receivedemail.scheduledemail.canceledautomation.enteredautomation.finishedautomation.stepstatestringpendingwhile it is still being tried,deliveredonce your address answered 2xx,failedafter the last try.One of
pendingdeliveredfailedstatusintegerThe HTTP status of the last answer, or 0 when there was none.
attemptsintegerHow many times it has been tried.
errorstringWhat went wrong on the last try. Empty when nothing did.
nextAttemptAtstring | nullWhen it is tried again, or
null.createdAtstringWhen the event happened.