# Redeliver a webhook delivery — API reference

> Accepts a redelivery request and returns the delivery record with its current status.

Source: https://upfour.io/docs/api/webhook-subscriptions/redeliver-a-webhook-delivery

[Developers](https://upfour.io/docs/api.md)/[Webhook subscriptions](https://upfour.io/docs/api/webhook-subscriptions.md)

Accepts a redelivery request and returns the delivery record with its current status.

POST https://app.upfour.io/v1/webhook-subscriptions/{subscriptionID}/redeliver/{deliveryID}

scope webhook.write beta [Idempotency-Key supported](https://upfour.io/docs/api/idempotency.md) returns 202

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `subscriptionID` required | uuid | path parameter |
| `deliveryID` required | uuid | path parameter |

## Returns

A successful request returns `202` with application/json.

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | WebhookDelivery | |
| WebhookDelivery · 12 fields FieldTypeDescription `attempt` integer Number of the current attempt, at most 7. `created_at` string (date-time) `event` string `id` uuid `payload_json` any The event as sent to the receiver. `scheduled_at` string (date-time) `status` string one of`pending` `retrying` `delivered` `failed` `subscription_id` uuid `delivered_at` string (date-time) `next_retry_at` string (date-time) `response_body` string Never the receiver's answer, only a summary of the attempt: HTTP followed by the status code when the receiver answered (HTTP 200, HTTP 502), otherwise Delivery timed out, Delivery failed (for example a refused connection) or Delivery configuration or destination rejected. `response_code` integer | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 402 | [billing_action_unavailable](https://upfour.io/docs/api/errors#code-billing_action_unavailable) | This action is unavailable in the Company's billing state (`error.details.billing_state`), for example while credit is used up. **When:** A metered or limited action while the billing state, such as paused or without credit, blocks it; details holds the action and billing_state. **Fix:** Top up the credit or change the plan, then retry. `billing_action_unavailable`: this action is not available in the Company's billing state (`error.details.billing_state`), for example while the credit is used up. |
| 403 | [permission_denied](https://upfour.io/docs/api/errors#code-permission_denied) | The credentials do not permit this action. |
| 503 | [quota_gate_unavailable](https://upfour.io/docs/api/errors#code-quota_gate_unavailable) | The limit check itself failed, so the action was not carried out. **When:** The quota service could not decide while the request ran. **Fix:** Retry in a moment; nothing was changed. |
| 403 / 429 | [quota_limit_reached](https://upfour.io/docs/api/errors#code-quota_limit_reached) | The protection limit for this action is used up for now; `error.details` carries `purpose`, `limit`, `window` and `retry_after_seconds`, and the `Retry-After` header says when the same request can succeed. **When:** Counters and concurrency limits answer 429 with Retry-After, inventory and capacity limits answer 403; details holds purpose, limit and window. **Fix:** On 429 wait Retry-After seconds; on 403 free something up, request a higher limit where details.raise_request is true, or buy an extension. `quota_limit_reached`: the protection limit of this action is used up for now. `error.details` carries `purpose`, `limit`, `window` and `retry_after_seconds`; the `Retry-After` header says when the same request can succeed. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousList webhook deliveries](https://upfour.io/docs/api/webhook-subscriptions/list-webhook-deliveries.md) [NextRotate a webhook subscription secret](https://upfour.io/docs/api/webhook-subscriptions/rotate-a-webhook-subscription-secret.md)

## Request

### cURL

```bash
curl -s -X POST "https://app.upfour.io/v1/webhook-subscriptions/00000000-0000-4000-8000-000000000001/redeliver/00000000-0000-4000-8000-000000000002" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/webhook-subscriptions/00000000-0000-4000-8000-000000000001/redeliver/00000000-0000-4000-8000-000000000002", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.post(
    "https://app.upfour.io/v1/webhook-subscriptions/00000000-0000-4000-8000-000000000001/redeliver/00000000-0000-4000-8000-000000000002",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("POST", "https://app.upfour.io/v1/webhook-subscriptions/00000000-0000-4000-8000-000000000001/redeliver/00000000-0000-4000-8000-000000000002", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/webhook-subscriptions/00000000-0000-4000-8000-000000000001/redeliver/00000000-0000-4000-8000-000000000002");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 202

```json
{
  "data": {
    "attempt": 1,
    "created_at": "2026-10-27T09:00:00Z",
    "delivered_at": "2026-10-27T09:00:00Z",
    "event": "webhook.test",
    "id": "00000000-0000-4000-8000-000000000003",
    "payload_json": {
      "app_url": "http://example.com",
      "created_at": "2026-10-27T09:00:00Z",
      "data": {
        "message": "Webhook test"
      },
      "id": "00000000-0000-4000-8000-000000000004",
      "payload_version": 2,
      "type": "webhook.test"
    },
    "response_body": "HTTP 200",
    "response_code": 200,
    "scheduled_at": "2026-10-27T09:00:00Z",
    "status": "delivered",
    "subscription_id": "00000000-0000-4000-8000-000000000001"
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 402

```json
{
  "error": {
    "code": "billing_action_unavailable",
    "message": "This action is unavailable in the Company's billing state (error.details.billing_state), for example while credit is used up.",
    "request_id": "req_…"
  }
}
```

### 403

```json
{
  "error": {
    "code": "permission_denied",
    "message": "The credentials do not permit this action.",
    "request_id": "req_…"
  }
}
```

### 429

```json
{
  "error": {
    "code": "quota_limit_reached",
    "message": "The protection limit for this action is used up for now; error.details carries purpose, limit, window and retry_after_seconds, and the Retry-After header says when the same request can succeed.",
    "request_id": "req_…"
  }
}
```

### 503

```json
{
  "error": {
    "code": "quota_gate_unavailable",
    "message": "The limit check itself failed, so the action was not carried out.",
    "request_id": "req_…"
  }
}
```
