# List Endpoints

Canonical: https://docs.bluehola.com/docs/webhooks/get-v1-webhook-endpoints
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--get">GET</span><code class="endpoint-path">/v1/webhook-endpoints</code></div>

List endpoints; secrets are not returned. Each endpoint carries `lastDelivery` (that endpoint's most recent delivery status / responseStatus / attempts / lastError / createdAt), or `null` if nothing has ever been delivered. Delivered/failed counts are deliberately not provided: that would be a COUNT aggregate that slows down linearly with message volume.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `customerId` | query | Required for customer Keys | string | Return only endpoints bound to this customer entity (`cust_...`). A customer Key must pass its own customer entity, otherwise `403` |
| `projectId` | query | No | string | Return only endpoints bound to this single Business Portfolio (`bm_...`) |

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

Each endpoint's lastDelivery is obtained with a single LEFT JOIN LATERAL query rather than a per-endpoint query or a DISTINCT ON, relying on a migration-added (endpoint_id, created_at DESC) index to keep the cost constant. Each filter matches the binding exactly: `customerId` does not return endpoints bound to a single Portfolio or account-level endpoints, and `projectId` does not return customer-bound or account-level endpoints. Without either filter, every endpoint under this account is returned.
