Skip to the page

List webhook deliveries

What was posted to an endpoint, newest first, with the answer and the tries.

opensend.webhooks.deliveries(id, input?)
Needs the scopewebhooks:readFrom a terminalopensend webhooks deliveries

Input

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

  • qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • afterstring

    The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.

  • beforestring

    The id of the first item you have. The answer ends with the item just before it. Give this or after, not both. Up to 64 characters.

  • 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"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"webhook_delivery"

    Always webhook_delivery.

  • data[].idstring

    The id of the delivery.

  • data[].webhookIdstring

    The id of the webhook it was for.

  • data[].typestring

    The event that was posted.

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

  • data[].statestring

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

    One ofpendingdeliveredfailed

  • data[].statusinteger

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

  • data[].attemptsinteger

    How many times it has been tried.

  • data[].errorstring

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

  • data[].nextAttemptAtstring | null

    When it is tried again, or null.

  • data[].createdAtstring

    When the event happened.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.