Skip to the page

Send test event

Posts one signed sample event to an endpoint and answers with what the endpoint said.

opensend.webhooks.test(id)
Needs the scopewebhooks:writeFrom a terminalopensend webhooks test

Input

id goes first, on its own, and the rest in one object. One object that holds id works too.

  • idstringRequired

    The 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.

  • idstring

    The id of the delivery.

  • webhookIdstring

    The id of the webhook it was for.

  • typestring

    The event that was posted.

    One ofemail.sentemail.deliveredemail.delayedemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receivedemail.scheduledemail.canceledautomation.enteredautomation.finishedautomation.step

  • statestring

    pending while it is still being tried, delivered once your address answered 2xx, failed after the last try.

    One ofpendingdeliveredfailed

  • statusinteger

    The HTTP status of the last answer, or 0 when there was none.

  • attemptsinteger

    How many times it has been tried.

  • errorstring

    What went wrong on the last try. Empty when nothing did.

  • nextAttemptAtstring | null

    When it is tried again, or null.

  • createdAtstring

    When the event happened.