# List update deliveries — API reference

> Returns delivery counts and recent failures for a status-page update.

Source: https://upfour.io/docs/api/status-pages/list-update-deliveries

[Developers](https://upfour.io/docs/api.md)/[Status pages](https://upfour.io/docs/api/status-pages.md)

Returns delivery counts and recent failures for a status-page update.

GET https://app.upfour.io/v1/status-pages/{pageID}/updates/{updateID}/deliveries

scope status_page.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `pageID` required | uuid | path parameter |
| `updateID` required | uuid | path parameter |

## Returns

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

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | DeliverySummary | |
| DeliverySummary · 9 fields FieldTypeDescription `address_suppressed` integer `billing_paused` integer `counts` map of integer  · nullable `held` map of integer  · nullable `recent_failures` DeliveryFailure[]  · nullable Each item · 4 fields FieldTypeDescription `attempts` integer `kind` string `last_error` string `updated_at` string (date-time) | | |

## 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. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

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).

[PreviousUpdate a status page update](https://upfour.io/docs/api/status-pages/update-a-status-page-update.md) [NextAdd an update entry](https://upfour.io/docs/api/status-pages/add-an-update-entry.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/updates/00000000-0000-4000-8000-000000000002/deliveries" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

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

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/updates/00000000-0000-4000-8000-000000000002/deliveries",
    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("GET", "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/updates/00000000-0000-4000-8000-000000000002/deliveries", 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/status-pages/00000000-0000-4000-8000-000000000001/updates/00000000-0000-4000-8000-000000000002/deliveries");
curl_setopt_array($ch, [
    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

### 200

```json
{
  "data": {
    "address_suppressed": 0,
    "billing_paused": 0,
    "counts": {
      "bundled": 0,
      "cancelled": 0,
      "expired": 0,
      "failed": 0,
      "pending": 0,
      "sent": 0,
      "unclear": 0
    },
    "held": {
      "address_suppressed": 0,
      "billing_paused": 0,
      "brake": 0,
      "broadcast_stop": 0,
      "complaint_throttle": 0,
      "fair_use_window": 0,
      "page_limit": 0,
      "quota_stage": 0
    },
    "recent_failures": []
  }
}
```

### 400

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

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
