# Resend a webhook delivery

`POST https://api.cademi.com.br/api/v3/webhooks/{webhook_id}/deliveries/{webhook_delivery_id}/attempts`

Operation ID: `webhooks.deliveries.attempts.create` · API v3

Manually resends a completed webhook delivery. Only deliveries with status `delivered`, `failed`, or `dead` can be resent.

The destination URL is validated again before the delivery is queued. The delivery keeps the same event ID, and the new attempt is recorded when it is actually sent; previous attempts are preserved.

Required permissions: `webhooks.replay`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `webhook_id` | path | string | yes |  |
| `webhook_delivery_id` | path | string | yes |  |

## Responses

### 201

The resend was accepted. Returns the delivery, which is queued for a new attempt.

Body: `data`: WebhookDelivery.

Fields of WebhookDelivery:

| Field | Type | Required | Description |
|---|---|---|---|
| `attempts_count` | integer | yes |  |
| `created_at` | string (date-time) | yes |  |
| `deadline_at` | string (date-time) | no |  |
| `delivered_at` | string or null (date-time) | no |  |
| `event_id` | string | yes |  |
| `id` | string | yes |  |
| `last_attempt` | WebhookDeliveryAttempt or null | no |  |
| `next_attempt_at` | string or null (date-time) | no |  |
| `object` | string, one of `webhook_delivery` | yes |  |
| `status` | string, one of `pending`, `in_progress`, `delivered`, `failed`, `dead`, `canceled` | yes |  |
| `url` | string | yes | Canonical URL of the delivery under its webhook destination. |
| `webhook_id` | string | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The webhook endpoint or delivery was not found or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
