unPLUGDevelopers

Webhook endpoints API

List deliveries

GET/v1/events/{id}/deliveries

Returns every delivery attempt for an event, to every endpoint, newest first.

Permissions: Secret key with webhooks:manage.

Path parameters#

  • idstring (uuid)Required

Query parameters#

  • limitinteger
    1 to 100. Default 25.
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page.

Response fields#

Returns 200 with list of Delivery

  • dataarray of Delivery
    Show attributesDelivery
    • idstring (uuid)
      The delivery attempt's id.
    • event_idstring (uuid)
      The event that was sent.
    • webhook_endpoint_idstring (uuid)
      Where it was sent.
    • attemptinteger
      1 for the first attempt, then counting up through the retries.
      Min 1
    • statusstring
      pending, succeeded or failed.
      One of pending, succeeded, failed
    • status_codeintegerNullable
      HTTP status your server returned. Null if there was no response.
    • response_msintegerNullable
      How long your server took to respond, in milliseconds.
    • errorstringNullable
      Why it failed when there was no HTTP status, for example timeout, connection_refused, tls_error or dns_error.
    • attempted_atstring (date-time)Nullable
      When the attempt was made.
    • next_retry_atstring (date-time)Nullable
      When the next retry is scheduled. Null after a success or when retries have run out.
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to get the next page.

Error descriptions#

404Not found
not_found

No such event, or it's older than 30 days.

Any endpoint can also return the common errors.