---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "Replay a webhook endpoint"
description: "`events.webhook_endpoints.replay` (POST /v1/{name}:replay): Redelivers every dead-lettered delivery to the endpoint created in a time range, each as a new attempt."
type: reference
product: webhooks
summary: "Redelivers every dead-lettered delivery to the endpoint created in a time range, each as a new attempt."
updated: 2026-09-28
nav: false
---

Redelivers every dead-lettered delivery to the endpoint created in a time range, each as a new attempt.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint:replay`
- **Scope** `events:write`
- **Effect** `write` — a successful call changes state.
- **Collection** [webhook_endpoints](/docs/api/webhook_endpoints)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The name of the webhook endpoint. Required. |
| `start_time` | `timestamp` | Replay deliveries created at or after this time. Required. |
| `end_time` | `timestamp` | Replay deliveries created before this time; default now. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `replayed_count` | `int64` | Deliveries queued again. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`INVALID_STATE`](/docs/api/errors/INVALID_STATE) — The Resource is in a state that forbids the call.
- [`IDEMPOTENCY_KEY_REUSED`](/docs/api/errors/IDEMPOTENCY_KEY_REUSED) — An Idempotency-Key was reused with another body.
- [`IDEMPOTENCY_IN_PROGRESS`](/docs/api/errors/IDEMPOTENCY_IN_PROGRESS) — The first call with this Idempotency-Key is still running.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint:replay" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"start_time":{}}'
```

**TypeScript**

```ts
const response = await sylphx.events.webhookEndpoints.replay({ name: 'orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint', startTime: {} })
```

**Rust**

```rust
let mut req = sylphx::events::ReplayWebhookEndpointRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint".to_string();
req.start_time = Some(Default::default());
let response = sx.events().webhook_endpoints().replay(req).await?;
```

**CLI**

```bash
sylphx events webhook-endpoints replay orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint
```

**MCP**

```json
{ "method_id": "events.webhook_endpoints.replay", "args": {"name":"orgs/acme/projects/shop/envs/production/webhook_endpoints/webhook-endpoint","start_time":{}} }
```
