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

# Replay Webhook Delivery

> Queue an existing webhook delivery for another delivery cycle.

Replay resets the existing delivery to `PENDING` with a fresh eight-attempt
retry cycle. It reuses the same `event_id` and `delivery_id`; it does not create
a duplicate event record.

The endpoint must be `ACTIVE`, and a delivery currently in `DELIVERING` status
cannot be replayed. Your receiver must still deduplicate using the event ID.


## OpenAPI

````yaml reference/openapi.json POST /webhooks/deliveries/{delivery_id}/replay
openapi: 3.0.0
info:
  title: Unifystays API
  description: >-
    One unified hotel API across suppliers. Integrate once, then enable and
    manage suppliers from the Unifystays portal.
  version: '1.0'
  contact: {}
servers:
  - url: https://api-sandbox.unifystays.com
    description: Sandbox
  - url: https://api.unifystays.com
    description: Production
security:
  - x-api-key: []
tags: []
paths:
  /webhooks/deliveries/{delivery_id}/replay:
    post:
      tags:
        - Webhooks
      summary: Replay a webhook delivery
      description: >-
        Queues the same event and delivery again, resetting its retry cycle. The
        endpoint must be active.
      operationId: WebhookController_replayDelivery
      parameters:
        - name: delivery_id
          required: true
          in: path
          description: Numeric webhook delivery ID.
          schema:
            example: '1842'
            type: string
        - name: language
          description: Enter language code(ex. en)
          in: header
          schema: {}
      responses:
        '202':
          description: Webhook delivery queued for replay.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookQueuedResponseDto'
components:
  schemas:
    WebhookQueuedResponseDto:
      type: object
      properties:
        success:
          type: boolean
          example: true
          description: Whether the requested operation completed successfully.
        event_id:
          type: string
          example: evt_3bc2fa3d35cc4bbf98359b3fb85a4fb2
          description: Immutable webhook event identifier.
        delivery_id:
          type: string
          example: '1842'
          description: Numeric delivery identifier returned as a string.
      required:
        - success
        - event_id
        - delivery_id
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Environment-specific API key created in the Unifystays portal

````