DEVELOPER DOCUMENTATION
Redeliver Webhook Events
Requeue failed webhook deliveries for an endpoint, or one specific delivery by ID, regardless of its status.
/api/partner/v1/webhook-endpoints/{endpointId}/redeliverRequeues webhook deliveries for retry. With a deliveryId, requeues that specific delivery regardless of its status; without one, requeues all FAILED deliveries for the endpoint. Requeued deliveries are only attempted while the endpoint is ACTIVE — when recovering from auto-disable, re-enable first, then redeliver.
Requirements: webhooks:manage scope.
Request
Section titled “Request”endpointIdstringpathrequiredThe webhook endpoint ID.
deliveryIdstringbodyA specific delivery to requeue — the value of the X-OpenTrain-Delivery header. Omit to requeue every FAILED delivery on the endpoint.
Response
Section titled “Response”webhookEndpointobjectThe endpoint: {id, url, eventTypes, status, createdAt, consecutiveFailures, disabledAt, disabledReason} — same shape as GET /webhook-endpoints/{endpointId}.
requeuedintegerHow many deliveries were requeued.
messagestringWhen the requeued deliveries will be attempted — or a reminder that nothing is attempted while the endpoint is DISABLED.
Errors
Section titled “Errors”| Status | code | Meaning |
|---|---|---|
400 | BAD_REQUEST | Body not valid JSON |
401 | UNAUTHORIZED | Missing, invalid, or revoked token |
403 | FORBIDDEN | Token lacks webhooks:manage |
404 | NOT_FOUND | Endpoint or delivery not found on this install |