# ดูรายการ endpoint

Source: https://checkslip.com/docs/list-endpoints

GET `https://api.checkslip.com/api/webhooks/endpoints`

ใช้ API key

แสดง endpoint ทั้งหมดของบัญชี พร้อม url, event_types ที่รับ, enabled (เปิดหรือปิดอยู่) และ 4 ตัวท้ายของ signing secret ใน secret_hint · endpoint ที่ปิดอยู่มีเหตุใน disabled_reason คือ MANUAL (ปิดเอง), GONE (ปลายทางตอบ 410) หรือ FAILING (ส่งไม่สำเร็จต่อเนื่อง 5 วัน) · endpoint ที่ปิดอยู่ไม่มีข้อความใหม่เก็บไว้ให้ · ใช้ next_cursor เพื่อดูหน้าถัดไป · ใช้ API key ที่มีสิทธิ์ webhook:read

## Parameters

| ฟิลด์ | ส่งทาง | ชนิด | จำเป็น |
| --- | --- | --- | --- |
| `traceparent` | header | `string` | ไม่ |
| `limit` | query | `integer` | ไม่ |
| `cursor` | query | `string` | ไม่ |

## Responses

### 200 `application/json`

| ฟิลด์ | ชนิด | จำเป็น |
| --- | --- | --- |
| `items` | `Endpoint[]` | ใช่ |
| `items[].id` | `string` | ใช่ |
| `items[].url` | `string (uri)` | ใช่ |
| `items[].description` | `string \| null` | ใช่ |
| `items[].event_types` | `slip.checked \| webhook.test[]` | ใช่ |
| `items[].enabled` | `boolean` | ใช่ |
| `items[].disabled_reason` | `MANUAL \| GONE \| FAILING \| null` | ใช่ |
| `items[].secret_hint` | `string` | ใช่ |
| `items[].previous_secret_expires_at` | `string (date-time) \| null` | ไม่ |
| `items[].created_at` | `string (date-time)` | ใช่ |
| `items[].updated_at` | `string (date-time)` | ใช่ |
| `next_cursor` | `string \| null` | ใช่ |

### Error ที่อาจได้

400 401 403

error ในรูป Problem Details ดูรหัสทั้งหมดที่ [รหัสข้อผิดพลาด](https://checkslip.com/docs/errors)

**cURL**

```bash
curl https://api.checkslip.com/api/webhooks/endpoints \
  -H "Authorization: Bearer $CHECKSLIP_API_KEY"
```

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/webhooks/endpoints", {
  headers: {
    Authorization: `Bearer ${process.env.CHECKSLIP_API_KEY}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

res = requests.get(
    "https://api.checkslip.com/api/webhooks/endpoints",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
data = res.json()
```

```json
{
  "items": [
    {
      "id": "string",
      "url": "https://example.com/hooks/checkslip",
      "description": "string",
      "event_types": [
        "slip.checked"
      ],
      "enabled": true,
      "disabled_reason": "MANUAL",
      "secret_hint": "string",
      "previous_secret_expires_at": "2026-11-05T09:30:00+07:00",
      "created_at": "2026-11-05T09:30:00+07:00",
      "updated_at": "2026-11-05T09:30:00+07:00"
    }
  ],
  "next_cursor": "string"
}
```
