# List Webhook Event Attempts

> GET /webhooks/:id/events/:event_id/attempts — every delivery try for one event.

`GET /webhooks/:id/events/:event_id/attempts`

Lists every try at delivering one event, oldest first: the first send, the automatic retries and any replays. The whole list comes back in one response (`has_more` is always `false`).

> **Note:** Needs an API key with read access.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The webhook id. |
| `event_id` | string | Yes | The event id (`msg_…`). |

**Node.js**

```js
const res = await fetch('https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts', {
  method: 'GET',
  headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);
```

**Ruby**

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

uri = URI('https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
req = Net::HTTP::Get.new(uri)
req['Authorization'] = 'Bearer mb_xxxxxxxxx'
res = http.request(req)
puts res.body
```

**PHP**

```php
<?php
$ch = curl_init('https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer mb_xxxxxxxxx',
        'User-Agent: my-app/1.0',
    ],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Python**

```python
import requests

res = requests.get(
    "https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts",
    headers={"Authorization": "Bearer mb_xxxxxxxxx"},
)
print(res.json())
```

**Go**

```go
package main

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

func main() {
    req, _ := http.NewRequest("GET", "https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts", nil)
    req.Header.Set("Authorization", "Bearer mb_xxxxxxxxx")
    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    out, _ := io.ReadAll(res.Body)
    fmt.Println(string(out))
}
```

**Rust**

```rust
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let res = Client::new()
        .get("https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts")
        .header("Authorization", "Bearer mb_xxxxxxxxx")
        .header("User-Agent", "my-app/1.0")
        .send()
        .await?;
    println!("{}", res.text().await?);
    Ok(())
}
```

**Java**

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts"))
    .header("Authorization", "Bearer mb_xxxxxxxxx")
    .header("User-Agent", "my-app/1.0")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

**.NET**

```csharp
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts");
request.Headers.Add("Authorization", "Bearer mb_xxxxxxxxx");
request.Headers.Add("User-Agent", "my-app/1.0");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

**cURL**

```bash
curl -X GET 'https://www.senddart.com/api/webhooks/17/events/msg_5c1e9a0f3b7d2e84a6c1/attempts' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

### Response

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "webhook_event_attempt",
      "id": "90398",
      "event_id": "msg_5c1e9a0f3b7d2e84a6c1",
      "attempt": 1,
      "status": "failed",
      "response_status": 503,
      "error": null,
      "created_at": "2026-11-21T10:15:32.118Z"
    },
    {
      "object": "webhook_event_attempt",
      "id": "90412",
      "event_id": "msg_5c1e9a0f3b7d2e84a6c1",
      "attempt": 2,
      "status": "succeeded",
      "response_status": 200,
      "error": null,
      "created_at": "2026-11-21T10:16:33.402Z"
    }
  ]
}
```

**The attempt object**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `attempt` | number | No | The try number, starting at 1. A replay takes the next number. |
| `status` | string | No | `succeeded` when your endpoint answered `2xx`, otherwise `failed`. |
| `response_status` | number | null | No | The HTTP status your endpoint answered with. `null` when there was no answer. |
| `error` | string | null | No | Why the try failed when there was no usable answer, such as a timeout. |

An unknown webhook or event id returns `404 not_found`.
