Destinations

Resend a delivery

Changed on

Trigger a redelivery of a failed notification. The redelivery has a new delivery ID in the "Delivery history" endpoint. The payload is identical to the original delivery, including the event_id which can be used to deduplicate notifications.

post/v1/notifications/destinations/{destinationId}/deliveries/{deliveryId}/resend

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

destinationId, string uuid required

ID of the http destination, a UUID v7.

deliveryId, string uuid required

ID of the delivery, a UUID v7.

Response

A single delivery.

Delivery required
id, string required

UUID v7 identifier of the delivery.

destination_id, string required

UUID v7 identifier of the destination.

event_id, string

Identifier of the event occurrence.

event_type, string required

Event type name, for example kai.cost.budget.exceeded.

event_occurred_at, string date-time

When the event happened, not when it was sent.

region, string

Region where the delivery was created, in uppercase. For example, US or EU.

mode, 'live' | 'test' required

Indicates whether the delivery is for a live event or a test.

status, 'scheduled' | 'succeeded' | 'failed' | 'expired' required

Delivery status. scheduled means delivery is pending; succeeded means delivery completed successfully; failed means delivery attempts ended without success; expired means the delivery reached its expiry time before it succeeded.

attempt_count, integer required

Number of attempts made so far.

failure_reason, 'render_failed' | 'http_error' | 'retries_exhausted' | 'destination_inactive' | 'client_error' | 'expired'

Reason why delivery did not succeed: render_failed means the notification could not be prepared; http_error means the endpoint returned an unsuccessful HTTP response; retries_exhausted means no more attempts will be made; destination_inactive means the destination could not receive notifications; client_error means the request was rejected; expired means the delivery reached its expiry time.

last_status_code, integer

HTTP status code of the last attempt.

payload, string

The payload sent to the destination. Present when fetching a single delivery only.

next_attempt_at, string date-time
expires_at, string date-time required

Time after which no more delivery attempts are made.

completed_at, string date-time
created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes