﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
canonical_url: "https://docs.composio.dev/reference/api-reference/webhook-subscriptions/getWebhookSubscriptions"
markdown_url: "https://docs.composio.dev/reference/api-reference/webhook-subscriptions/getWebhookSubscriptions.md"
product: "platform"
version: "3.1"
last_updated: null
---

# List webhook subscriptions

**Documentation:** /reference/api-reference/webhook-subscriptions/getWebhookSubscriptions

> **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 all webhook subscriptions for the authenticated project with pagination. Currently limited to one subscription per project. Viewers get a 403.

---

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

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

**Summary:** List webhook subscriptions

Lists all webhook subscriptions for the authenticated project with pagination. Currently limited to one subscription per project. Viewers get a 403.

### Authentication

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

### Query Parameters

- `limit` (number,null): Number of items per page, max allowed is 50
- `cursor` (string): Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.

### Responses

#### 200 - Webhook subscriptions retrieved

**Response Schema:**

- `items` (array<object>) *(required)*
  - Array items:
    - `id` (string (webhookSubscriptionId)) *(required)*: Unique subscription ID
    - `webhook_url` (string) *(required)*: Webhook destination URL
    - `version` (enum: "V1" | "V2" | "V3") *(required)*: Webhook payload version
    - `enabled_events` (array<string>) *(required)*: Subscribed event types
    - `secret` (string) *(required)*: Signing secret for HMAC verification
    - `created_at` (string) *(required)*: ISO 8601 timestamp
    - `updated_at` (string) *(required)*: ISO 8601 timestamp
- `next_cursor` (string,null)
- `total_pages` (number) *(required)*
- `current_page` (number) *(required)*
- `total_items` (number) *(required)*

**Example Response:**

```json
{
  "items": [
    {
      "id": "string",
      "webhook_url": "string",
      "version": "V1",
      "enabled_events": [
        "..."
      ],
      "secret": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "next_cursor": null,
  "total_pages": 1,
  "current_page": 1,
  "total_items": 1
}
```

#### 400 - Invalid pagination

**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>)

#### 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>)

#### 403 - Your role does not allow viewing webhook subscriptions

**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_subscriptions",
    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_subscriptions", {
  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_subscriptions" \
  -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.