> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List Webhook Endpoints

> Webhook endpoints of your organization

[← Webhooks](/api-reference/webhooks/overview)

The endpoints of the organization in `x-organization-id`, newest first. Secrets are never listed.

<Warning>
  **Beta.** Part of the webhooks API, currently in beta. The contract may still change before general availability.
</Warning>

<RequestExample>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl -X GET "https://api.dcycle.io/v2/webhook-endpoints" \
    -H "x-api-key: ${DCYCLE_API_KEY}" \
    -H "x-organization-id: ${DCYCLE_ORG_ID}"
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import os

  import requests

  response = requests.get(
      "https://api.dcycle.io/v2/webhook-endpoints",
      headers={
          "x-api-key": os.environ["DCYCLE_API_KEY"],
          "x-organization-id": os.environ["DCYCLE_ORG_ID"],
      },
      timeout=30,
  )
  response.raise_for_status()
  print(response.status_code, response.json())
  ```

  ```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const axios = require('axios');

  const response = await axios.get('https://api.dcycle.io/v2/webhook-endpoints', {
    headers: {
      'x-api-key': process.env.DCYCLE_API_KEY,
      'x-organization-id': process.env.DCYCLE_ORG_ID,
    },
  });
  console.log(response.status, response.data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "items": [
      {
        "id": "5c9e2f14-8b7a-4d3e-9f60-1a2b3c4d5e6f",
        "url": "https://erp.example.com/dcycle/webhooks",
        "description": "ERP integration",
        "event_types": [
          "ingest_job.finished"
        ],
        "enabled": true,
        "consecutive_failures": 0,
        "disabled_reason": null,
        "created_at": "2026-10-01T09:12:44.512031",
        "updated_at": "2026-10-01T09:12:44.512031"
      }
    ],
    "total": 1,
    "page": 1,
    "size": 10
  }
  ```
</ResponseExample>

## Request

### Headers

<ParamField header="x-api-key" type="string" required>
  API key of an **organization admin**.

  **Example:** `sk_live_1234567890abcdef`
</ParamField>

<ParamField header="x-organization-id" type="string" required>
  The organization that owns the endpoints.

  **Example:** `a8315ef3-dd50-43f8-b7ce-d839e68d51fa`
</ParamField>

### Query Parameters

<ParamField query="page" type="integer" default="1">Page number.</ParamField>
<ParamField query="size" type="integer" default="10">Page size, 1 to 500.</ParamField>

## Response

A page of endpoints (`200 OK`): `items`, `total`, `page`, `size`. Each item:

<ResponseField name="id" type="uuid">Endpoint id.</ResponseField>
<ResponseField name="url" type="string">Where the events are sent.</ResponseField>
<ResponseField name="description" type="string | null">Free text to recognize the endpoint.</ResponseField>
<ResponseField name="event_types" type="array[string]">Subscribed events. **Available values:** `ingest_job.finished`.</ResponseField>
<ResponseField name="enabled" type="boolean">Disabled endpoints receive nothing.</ResponseField>
<ResponseField name="consecutive_failures" type="integer">Deliveries in a row that ended `failed`. At 5 the endpoint is disabled.</ResponseField>
<ResponseField name="disabled_reason" type="string | null">`TOO_MANY_FAILURES` when Dcycle disabled the endpoint; `null` otherwise.</ResponseField>
<ResponseField name="created_at" type="datetime">UTC.</ResponseField>
<ResponseField name="updated_at" type="datetime">UTC.</ResponseField>

## Common Errors

### 401 Unauthorized

Missing or invalid API key.

### 403 Forbidden

`ORG_ADMIN_REQUIRED`: only organization admins can manage webhook endpoints. `LOGGED_USER_NOT_MEMBER`: the API key's user is not a member of the organization.

## Related Endpoints

<CardGroup cols={2}>
  <Card title="Create Webhook Endpoint" icon="plus" href="/api-reference/webhooks/create-endpoint">
    Register a URL
  </Card>

  <Card title="Get Webhook Endpoint" icon="magnifying-glass" href="/api-reference/webhooks/get-endpoint">
    One endpoint by id
  </Card>
</CardGroup>
