---
title: "List subscriptions"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List subscriptions

Path: Simplcron API › Webhooks

`GET /v1/webhooks`

Read lifecycle event subscriptions in this environment.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/v1/webhooks' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/webhooks';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/webhooks"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

List for the authenticated environment

#### Example

```json
{
  "webhooks": [
    {
      "id": "string",
      "url": "http://example.com",
      "events": [
        "task.execution"
      ],
      "createdAt": "2019-08-24T14:15:22Z",
      "revokedAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `webhooks` (`listWebhooks.response.200.webhooks`; array of object, required)
  - `id` (`listWebhooks.response.200.webhooks.id`; string, required)
  - `url` (`listWebhooks.response.200.webhooks.url`; string, required) — Allowed public HTTPS destination on port 443; redirects are not followed.
    - format: `uri`
  - `events` (`listWebhooks.response.200.webhooks.events`; array of string, required)
    - one of `"task.execution"`, `"task.completed"`, `"task.failed"`
  - `createdAt` (`listWebhooks.response.200.webhooks.createdAt`; string, optional)
    - format: `date-time`
  - `revokedAt` (`listWebhooks.response.200.webhooks.revokedAt`; any of, optional)
    - any of the following: `string`, `null`

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listWebhooks.response.401.error`; string, required)

### 403

The credential lacks permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listWebhooks.response.403.error`; string, required)


Source: https://simplcron.dev/docs/api/list-webhooks/index.md
