Skip to content

POST /v1/projects/{projectId}/webhooks/destinations/{destinationId}/retries

Requests an immediate attempt of the selected delivery if it is still the waiting head for its destination and event type. expectedAttemptCount is the failed-attempt counter recorded on the delivery and fences stale requests. This overrides the current backoff, including Retry-After, once. It preserves event identity and the retry budget. Delivered, active, disabled and dead-lettered deliveries cannot be retried. A 202 acknowledges the wake-up, not successful delivery. Supply an Idempotency-Key and retain it when retrying an ambiguous failure.

photon.projects.retryWebhookDelivery(input: RetryWebhookDeliveryInput, options?: RequestOptions): Promise<RetryWebhookDeliveryOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.retryWebhookDelivery({
  path: {
    destinationId: "destinationId",
    projectId: "projectId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
  body: {
    eventId: "eventId",
    eventType: "eventType",
    expectedAttemptCount: 0,
  },
});
{
  "status": "accepted"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

destinationIdstringrequired
projectIdstringrequired

Body

eventIdstringrequired
eventTypestringrequired
expectedAttemptCountintegerrequired

Returns

202 The waiting delivery was made eligible for an immediate attempt. RetryWebhookDeliveryResponse

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

statusunknownrequired