> This page is for Cloud Call Center.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.hams.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.hams.ai/_mcp/server.

# List deliveries

GET https://telephony.hams.ai/api/developer/v1/webhooks/deliveries

List recent deliveries. The newest delivery is first. Each delivery has the body that the system sent and the last error. Only the guaranteed events are in the list. The system never records best-effort events.

Reference: https://docs.hams.ai/cloud-call-center/reference/webhooks/list-deliveries

## Authentication

- `Authorization` header (bearer token, required) — An API key. Send it as `Authorization: Bearer ccc_live_…`

## Request

### Query parameters

- `endpoint_id` (string, optional, nullable)
- `status` (string, optional, nullable)
- `limit` (integer, optional, default: 50)

## Response

### 200

Successful Response

- `list of WebhookDeliveryRead`

## Errors

### 401 Unauthorized Error

The key is missing, revoked, expired, or not a developer key

- `detail` (string, required) — A message for a person. It can change at any time.
- `code` (string, required) — A stable key for a program, for example `validation_error` or `rate_limited`.
- `support_id` (string, required) — A short id to quote when you contact support.
- `errors` (list of ErrorResponseErrorsItems, optional) — The field errors. Present only for validation failures.

### 422 Unprocessable Entity Error

The request failed validation

- `detail` (string, required) — A message for a person. It can change at any time.
- `code` (string, required) — A stable key for a program, for example `validation_error` or `rate_limited`.
- `support_id` (string, required) — A short id to quote when you contact support.
- `errors` (list of ErrorResponseErrorsItems, optional) — The field errors. Present only for validation failures.

### 429 Too Many Requests Error

The request exceeds a rate limit. The `Retry-After` header gives the time when the window ends

- `detail` (string, required) — A message for a person. It can change at any time.
- `code` (string, required) — A stable key for a program, for example `validation_error` or `rate_limited`.
- `support_id` (string, required) — A short id to quote when you contact support.
- `errors` (list of ErrorResponseErrorsItems, optional) — The field errors. Present only for validation failures.

## Types

### WebhookDeliveryRead

The record of one delivery.

- `id` (string, required)
- `endpoint_id` (string, required)
- `event_id` (string, required)
- `event_type` (string, required)
- `status` (string, required)
- `attempts` (integer, required)
- `next_attempt_at` (datetime, required, nullable)
- `last_error` (string, required, nullable)
- `occurred_at` (datetime, required)
- `created_at` (datetime, required)
- `payload` (map from string to any, required)

### ErrorResponseErrorsItems

- `field` (string, optional)
- `message` (string, optional)
- `type` (string, optional)

## Examples

**Response**

```json
[
  {
    "id": "string",
    "endpoint_id": "string",
    "event_id": "string",
    "event_type": "string",
    "status": "string",
    "attempts": 1,
    "next_attempt_at": "2024-01-15T09:30:00Z",
    "last_error": "string",
    "occurred_at": "2024-01-15T09:30:00Z",
    "created_at": "2024-01-15T09:30:00Z",
    "payload": {}
  }
]
```

**SDK Code**

```python
import requests

url = "https://telephony.hams.ai/api/developer/v1/webhooks/deliveries"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://telephony.hams.ai/api/developer/v1/webhooks/deliveries';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://telephony.hams.ai/api/developer/v1/webhooks/deliveries"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://telephony.hams.ai/api/developer/v1/webhooks/deliveries")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://telephony.hams.ai/api/developer/v1/webhooks/deliveries")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://telephony.hams.ai/api/developer/v1/webhooks/deliveries', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://telephony.hams.ai/api/developer/v1/webhooks/deliveries");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://telephony.hams.ai/api/developer/v1/webhooks/deliveries")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```