# List subscriptions

`GET` `https://goblins-call-api.onrender.com/v1/webhooks`

Returns your workspace’s webhook subscriptions. Signing secrets come back masked.

Needs a [workspace API key](https://www.cracklehq.com/docs/authentication).

## Query parameters

- `userId` (string, optional): A workspace ID. A key belongs to one workspace, so this is never needed with one; naming another workspace answers `403`.

Request:

cURL:

```bash
curl "https://goblins-call-api.onrender.com/v1/webhooks" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
```

Node.js:

```js
const response = await fetch('https://goblins-call-api.onrender.com/v1/webhooks', {
  headers: {
    Authorization: `Bearer ${process.env.CRACKLE_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

Python:

```python
import os
import requests

response = requests.get(
    "https://goblins-call-api.onrender.com/v1/webhooks",
    headers={"Authorization": f"Bearer {os.environ['CRACKLE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
```

Response · 200 OK:

```json
{
  "webhooks": [
    {
      "id": "wh_3f9a1c2b7d4e5f60",
      "url": "https://your-app.com/webhooks/crackle",
      "events": ["call.ended"],
      "enabled": true,
      "secret": "whsec_3f9a…b1c2"
    }
  ]
}
```

Source: https://www.cracklehq.com/docs/reference/webhooks/list
