---
canonical_url: "https://docs.composio.dev/reference/api-reference/webhook-endpoints/getWebhookEndpoints"
markdown_url: "https://docs.composio.dev/reference/api-reference/webhook-endpoints/getWebhookEndpoints.md"
product: "platform"
version: "3.1"
last_updated: null
---

# List webhook endpoints

**Documentation:** /reference/api-reference/webhook-endpoints/getWebhookEndpoints

> **API version:** This page documents Composio REST API v3.1, the current version, at `https://backend.composio.dev/api/v3.1`. `https://backend.composio.dev/api/v3` is the previous version and remains supported.

Lists webhook endpoints for the authenticated project, optionally filtered by toolkit.

---

## GET `/api/v3.1/webhook_endpoints`

**Endpoint:** `https://backend.composio.dev/api/v3.1/webhook_endpoints`

**Summary:** List webhook endpoints

Lists webhook endpoints for the authenticated project, optionally filtered by toolkit.

### Authentication

**ApiKeyAuth** - API Key in `header` header `x-api-key`

### Query Parameters

- `toolkit_slug` (string): Filter by toolkit slug

### Responses

#### 200 - Success

**Response Schema:**

- `items` (array<object>) *(required)*
  - Array items:
    - `id` (string) *(required)*: Webhook endpoint nano ID
    - `toolkit_slug` (string) *(required)*: Toolkit this endpoint is for
    - `client_id` (string,null) *(required)*: OAuth app client ID

**Example Response:**

```json
{
  "items": [
    {
      "id": "string",
      "toolkit_slug": "string",
      "client_id": null
    }
  ]
}
```

#### 401 - Unauthorized

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 500 - Internal server error

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

### Example requests

Python uses `requests`; TypeScript uses Node.js fetch. Replace sample IDs and values before sending these requests.

Set `COMPOSIO_API_KEY` before running these requests.

#### Python

```python
import os
import requests

response = requests.request("GET", "https://backend.composio.dev/api/v3.1/webhook_endpoints",
    headers={"x-api-key": os.environ["COMPOSIO_API_KEY"]})
response.raise_for_status()
print(response.text)
```

#### TypeScript

```typescript
const response = await fetch("https://backend.composio.dev/api/v3.1/webhook_endpoints", {
  method: "GET",
  headers: { "x-api-key": process.env["COMPOSIO_API_KEY"]! },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

#### API

```bash
curl -X GET "https://backend.composio.dev/api/v3.1/webhook_endpoints" \
  -H "x-api-key: $COMPOSIO_API_KEY"
```

---

## REST API version

The current REST API version is **v3.1**, served at `https://backend.composio.dev/api/v3.1`. Prefer it for new code and new examples.

`https://backend.composio.dev/api/v3` is the previous version. It is frozen with pinned tool-version defaults and remains supported — existing v3 integrations keep working and do not need to migrate.