Webhooks

Replay a failed webhook delivery

Create a new pending delivery with the same event ID, event type, and payload. Only failed deliveries using the current webhook contract can be replayed.

post/webhooks/{id}/deliveries/{deliveryId}/replay

Request

  • Base URL: https://shipmail.to/api/v1
  • URL: https://shipmail.to/api/v1/webhooks/{id}/deliveries/{deliveryId}/replay
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://shipmail.to/api/auth/oauth2/authorize, token URL https://shipmail.to/api/auth/oauth2/token)

Headers

Idempotency-Keystring

Unique key for idempotent requests. Printable ASCII, 1-255 characters. The response is cached for 24 hours. A message send also derives the message ID from the key, so after the cache expires a retry on the same endpoint returns the message already sent, without comparing the body, for as long as that message exists.

X-Shipmail-Organizationstring

OAuth access tokens only. The organization ID this request acts on. Required when the OAuth connection was approved for several organizations (400 validation_error without it); optional with one. An organization the connection was not approved for returns 403 authorization_error. Ignored for API keys, which belong to one organization.

Response

Replay delivery created.

object'webhook_delivery' required
idstring required
event_idstring required
event_type'webhook.test' | 'message.received' | 'message.sent' | 'message.delayed' | 'message.delivered' | 'message.bounced' | 'message.complained' | 'mailbox.rule_matched' | 'mailbox.export.completed' | 'mailbox.export.failed' | 'domain.verified' | 'domain.verification_failed' | 'domain.degraded' | 'org.reputation_warning' | 'org.sending_throttled' | 'org.sending_suspended' | 'org.reputation_recovered' | 'reply.overdue' | 'conversation.needs_action' | 'calendar.event_starting' | 'booking.created' | 'subscriber.added' | 'newsletter.sent' required
mode'live' | 'test' required

The API-key data plane that owns this resource. Test resources are isolated from live delivery, quota, suppression, and reputation.

status'pending' | 'delivered' | 'failed' required
attemptsinteger required
last_status_codeinteger nullable required
last_errorstring nullable required
created_atstring date-time required
delivered_atstring date-time nullable required
payloadobject required

The exact versioned webhook envelope sent to the endpoint.

next_attempt_atstring date-time nullable required
replayed_from_delivery_idstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.