# List webhook endpoints

Source: https://docs.coderhelm.com/api/reference/webhook-endpoints/list-webhook-endpoints

`GET /api/webhooks/endpoints`

The team's webhook endpoints, oldest first. Secrets are never listed.

## Authentication

A team API key: `Authorization: Bearer chk_...`. The key needs the `webhooks` scope. See [Authentication](https://docs.coderhelm.com/api/authentication).

## Responses

### 200

The endpoints.

Headers: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`.

### 401

The key is missing, malformed, revoked or expired, or the person who made it left the team.

### 403

The key lacks the scope this endpoint needs (`missing_scope`).

### 429

Over the key's rate limit (`rate_limited`), or, for endpoints that start work, over the team's monthly token limit (`token_limit_reached`).

Headers: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `Retry-After`.

### 500

Something failed on CoderHelm's side. Safe to retry reads.

## Example request

cURL:

```bash
curl -X GET 'https://api.coderhelm.com/api/webhooks/endpoints' \
  -H "Authorization: Bearer $CODERHELM_API_KEY"
```

TypeScript:

```ts
const res = await fetch("https://api.coderhelm.com/api/webhooks/endpoints", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.CODERHELM_API_KEY}`,
  },
});
if (!res.ok) {
  const { error, code } = await res.json();
  throw new Error(`${res.status} ${code}: ${error}`);
}
const data = await res.json();
```

Python:

```python
import os
import requests

headers = {
    "Authorization": f"Bearer {os.environ['CODERHELM_API_KEY']}",
}
res = requests.request("GET", "https://api.coderhelm.com/api/webhooks/endpoints", headers=headers)
if not res.ok:
    raise RuntimeError(f"{res.status_code}: {res.json().get('error')}")
data = res.json()
```

## Example response

```json
{
  "endpoints": [
    {
      "created_at": "2026-10-20T09:00:00Z",
      "created_by": "lead@example.com",
      "description": "Deploy bot",
      "disabled_reason": "",
      "enabled": true,
      "events": [
        "*"
      ],
      "id": "ep_01jbendpt4a7b0c3d6e9f2g5h8",
      "secret_hint": "whsec_…Q2c=",
      "updated_at": "2026-10-20T09:00:00Z",
      "url": "https://hooks.example.com/coderhelm"
    }
  ],
  "max": 20
}
```
