# ดูประเภทข้อความที่สมัครรับได้

Source: https://checkslip.com/docs/list-event-types

GET `https://api.checkslip.com/api/webhooks/event-types`

ใช้ API key

แสดงประเภทข้อความ (event type) ทั้งหมดที่ส่งไปที่ระบบของคุณได้ เช่น slip.checked ซึ่งส่งเมื่อตรวจสอบรายการโอนกับธนาคารเสร็จ · subscribable เป็น false คือสมัครรับเองไม่ได้ เช่น webhook.test ที่ส่งเฉพาะเมื่อคุณสั่งส่งข้อความทดสอบ · ใช้ค่าใน type เป็น event_types ตอนเพิ่มหรือแก้ไข endpoint · ใช้ API key ที่มีสิทธิ์ webhook:read

## Parameters

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

## Responses

### 200 `application/json`

| ฟิลด์ | ชนิด | จำเป็น |
| --- | --- | --- |
| `items` | `EventTypeInfo[]` | ใช่ |
| `items[].type` | `slip.checked \| webhook.test` | ใช่ |
| `items[].description` | `string` | ใช่ |
| `items[].subscribable` | `boolean` | ใช่ |

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

401

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

**cURL**

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

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/webhooks/event-types", {
  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/event-types",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
data = res.json()
```

```json
{
  "items": [
    {
      "type": "slip.checked",
      "description": "string",
      "subscribable": true
    }
  ]
}
```
