# Get webhook endpoint stats

```http
GET https://trydimmi.com/api/v1/webhook-endpoints/{endpoint}/stats
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `webhooks:read`.

## Path parameters

- `endpoint` (string, required): Id of the webhook endpoint, starting with whk_, such as whk_01jx2m8k4t. Find it with GET /webhook-endpoints.

## Response 200 (OK)

- `data` (object, required)
  - `attempts` (integer, required): How many requests were sent to the endpoint over the last day.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `p50_ms` (integer, required): The median time the endpoint took to answer over the last day, in milliseconds.
  - `p95_ms` (integer, required): The time within which 95% of the endpoint's answers came over the last day, in milliseconds.
  - `succeeded` (integer, required): How many of the last day's requests the endpoint accepted.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/webhook-endpoints/{endpoint}/stats' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "attempts": 123,
    "object": "<string>",
    "p50_ms": 123,
    "p95_ms": 123,
    "succeeded": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
