> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Replay a Failed Event Delivery

> Redeliver an event to its webhook endpoint by the ID of a prior delivery attempt.

Use this endpoint to re-send a delivery to its webhook endpoint. SpherePay makes exactly one automatic attempt per event per endpoint and never retries on its own, so recovering a delivery that failed while your endpoint was down is a deliberate call to this endpoint.

The path takes the **delivery** ID, not the event ID. Find it on the `delivery` object returned by [list events](/api-reference/events/get) or in the full history from [get event](/api-reference/events/get-id), or read it off the `Sphere-Delivery-Id` header of the original request.

A replay re-sends the byte-for-byte identical payload with a fresh `Sphere-Timestamp` and `Sphere-Signature`, plus the headers `Sphere-Delivery-Type: replay` and `Sphere-Replay-Reason: manual`. Your verification code path is the same for originals and replays. A successful replay moves the delivery to `delivered`; a failed one leaves it `failed` and records another attempt. The attempt history is preserved either way.

<Warning>
  Replays are delivered at-least-once on top of whatever your endpoint already received, and a delivery that already succeeded can be replayed. Deduplicate on the event `id` and apply the [`sequence` staleness check](/concepts/webhooks/event-payloads#the-sequence-field) so a replay is always safe to receive.
</Warning>


## OpenAPI

````yaml openapi/spherepay.yaml POST /v2/events/replay/{eventDeliveryId}
openapi: 3.0.0
info:
  contact: {}
  description: The Sphere REST API for payments, transfers, and accounts.
  title: Sphere API
  version: '2'
servers:
  - description: Production
    url: https://api.spherepay.co
security:
  - bearer: []
tags: []
paths:
  /v2/events/replay/{eventDeliveryId}:
    post:
      summary: Replay an Event Delivery V2
      description: >-
        Redeliver an event to its webhook endpoint by the ID of a prior delivery
        attempt.
      operationId: postV2EventsReplayByEventDeliveryId
      parameters:
        - in: path
          name: eventDeliveryId
          required: true
          schema:
            type: string
      responses:
        '201':
          description: >-
            The replay is queued for delivery. No content is returned; poll the
            event to observe the new attempt.
        '400':
          content:
            application/json:
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: address/invalid
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Invalid request parameters
                    status: 400
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Bad Request
        '404':
          content:
            application/json:
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: resource/not-found
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Resource not found
                    status: 404
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Not Found
        '422':
          content:
            application/json:
              examples:
                Validation Error:
                  summary: Validation Error
                  value:
                    code: validation/failed
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Validation failed
                    errors:
                      - detail: Invalid email format
                        pointer: /email
                      - detail: Name is required
                        pointer: /name
                    status: 422
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Unprocessable Entity - Validation Error
components:
  schemas:
    ProblemDetailsDto:
      properties:
        code:
          type: string
        correlationId:
          type: string
        detail:
          type: string
        errors:
          items:
            properties:
              detail:
                type: string
              header:
                type: string
              parameter:
                type: string
              pointer:
                type: string
            required:
              - detail
            type: object
          type: array
        status:
          type: integer
        title:
          type: string
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````