---
search:
  tags:
    - webhooks
    - POST
seo:
  description: >-
    Reference for the POST /v1/webhook-deliveries/{deliveryId}/replay endpoint
    in the Vortex Payments API.
sidebar:
  label: POST /v1/webhook-deliveries/{deliveryId}/replay
  badge: POST
title: POST /v1/webhook-deliveries/{deliveryId}/replay
type: openapi-operation
---
`POST /v1/webhook-deliveries/{deliveryId}/replay`

**curl**

```bash
curl "https://api.vortex.nyc/v1/webhook-deliveries/{deliveryId}/replay?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"replayedByRef":"operator","dispatch":true}'
```

**TypeScript**

```ts
import { replayWebhookDelivery, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await replayWebhookDelivery({
  client: vortex,
  path: { deliveryId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"replayedByRef":"operator","dispatch":true},
});
```

**Request body** (`application/json`, required)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "idempotencyKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "id": "string",
    "environment": "sandbox",
    "endpointId": "string",
    "eventType": "string",
    "aggregateType": "string",
    "aggregateId": "string",
    "status": "pending",
    "attemptCount": 0,
    "lastAttemptAt": "string",
    "httpStatusCode": 0,
    "failureReason": "string",
    "canonicalEventId": "string",
    "replayedFromDeliveryId": "string",
    "createdAt": "string",
    "updatedAt": "string"
  },
  "requestId": "string"
}
```
