---
title: "Replay parked events | Developer guide | R&D Copilot"
lang: en
canonical: https://rdcopilot.com/docs/replay/
content_version: f22ead94dbab730034cfd2fdab0de89d3e6d8582edc70b963ef2a73ffc4b0942
contact: https://rdcopilot.com/contact/
---

# Replay parked events

Find parked events, fix your endpoint and replay one event or a period, with the same id.

A parked event is one whose last attempt failed, and it is kept until you ask for it again.

After 6 failed attempts, an event is not sent again by itself: you fix the endpoint, then replay.

| Status | Meaning |
| --- | --- |
| delivered | Your endpoint confirmed the event. |
| retrying | An attempt failed and another one is waiting. |
| parked | The last attempt failed. The event is kept and is not sent again until you replay it. |
| replayed | A parked event was sent again on request. |

| To | Request |
| --- | --- |
| Find what is parked | `GET /deliveries?state=parked` |
| Replay one event | `POST /events/{eventId}/replay` |
| Replay a period of one subscription | `POST /subscriptions/{subscriptionId}/replay` |

## Find what is parked

List the deliveries in the state `parked`. Each row names the event, the subscription, how many attempts were made and the status your endpoint last answered.

Parked deliveries

curl

```bash
curl "$RDC_BASE_URL/inventory/v1/deliveries?state=parked&limit=100" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/deliveries?state=parked&limit=100`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/inventory/v1/deliveries?state=parked&limit=100',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/deliveries?state=parked&limit=100');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/inventory/v1/deliveries?state=parked&limit=100");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Answer 200

```json
{
  "items": [
    {
      "eventId": "5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68",
      "subscriptionId": "a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572",
      "state": "parked",
      "attempts": 6,
      "lastStatus": 503,
      "lastAttemptAt": "2026-11-21T00:17:08Z"
    }
  ],
  "nextCursor": null
}
```

## Fix the endpoint, then replay

Replay only after your endpoint answers 2xx again, otherwise the new attempts fail too. Replay one event by its `id`:

Replay one event

curl

```bash
curl -X POST "$RDC_BASE_URL/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Answer 202

```json
{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04",
  "status": "completed",
  "aggregateRevision": 1
}
```

Or replay a period of one subscription, for example everything that parked while you deployed:

Replay a period

curl

```bash
curl -X POST "$RDC_BASE_URL/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
    "from": "2026-11-20T00:00:00Z",
    "to": "2026-11-21T00:00:00Z"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354',
        'from': '2026-11-20T00:00:00Z',
        'to': '2026-11-21T00:00:00Z',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

A replay starts a new series of delivery attempts for the event, with the same schedule. The state of the delivery becomes `replayed`.

## A replayed event keeps its id

The event you receive again is the same event, with the same `id`, and `webhook-id` carries it. Your check for duplicates still works: skip what you already handled.

-   Replay events of one record in the order of their `aggregateRevision`, so the state you hold ends up current.
-   Skip an older revision that arrives after a newer one: see [Events](https://rdcopilot.com/docs/events/).

## A routine for parked events

A parked event waits until you replay it. Check for parked events as part of your routine, not only after an incident.

A routine that lists `parked` deliveries once a day and raises an alert on the first row finds every parked event.

## Related pages

-   [Webhooks](https://rdcopilot.com/docs/webhooks/): the schedule and the states.
-   [Go-live checklist](https://rdcopilot.com/docs/go-live/): the parked-event routine is on it.

[Previous · **Verify signatures**](https://rdcopilot.com/docs/signatures/) [Next · **Versioning and deprecation**](https://rdcopilot.com/docs/versioning/)

---

R&D Copilot · Made in EU · Contact: https://rdcopilot.com/contact/
