> Index of every page: https://docs.merchantservicedepot.com/llms.txt

# List webhook endpoints


`GET /v1/webhook_endpoints`



Auth: a secret key with the `webhookEndpoints.list` permission. Returns `200` with Webhook endpoint.

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/webhook_endpoints" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/webhook_endpoints", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MYELA_API_KEY}`,
  },
});

if (!res.ok) {
  const { error } = await res.json();
  // Branch on error.code — never on error.message.
  throw new Error(error.code);
}
const data = await res.json();
```

**Python**

```python
import os
import requests

res = requests.get(
    "https://payments-api-sandbox.merchantservicedepot.com/v1/webhook_endpoints",
    headers={
        "Authorization": f"Bearer {os.environ['MYELA_API_KEY']}",
    },
)

if not res.ok:
    # Branch on error["code"] — never on error["message"].
    raise RuntimeError(res.json()["error"]["code"])
data = res.json()
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Unique endpoint identifier. |
| `object` | "webhook_endpoint" | Stable resource discriminator. |
| `url` | string | Delivery destination. |
| `description` | string \| null | Optional endpoint description. |
| `enabledEvents` | string[] | Subscribed event types. |
| `status` | string | Endpoint state. |
| `secretLast4` | string | Last four characters of the signing secret. |
| `createdAt` | string | ISO 8601 creation timestamp. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "whe_01JEXAMPLE",
      "object": "webhook_endpoint",
      "url": "https://example.com/webhooks/myela",
      "description": null,
      "enabledEvents": [
        "invoice.paid",
        "payment.settled"
      ],
      "status": "enabled",
      "secretLast4": "m9Qx",
      "createdAt": "2026-08-10T20:49:51.653Z"
    }
  ],
  "hasMore": false
}
```

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