# ดู endpoint หนึ่งอัน

Source: https://checkslip.com/docs/get-endpoint

GET `https://api.checkslip.com/api/webhooks/endpoints/{endpoint_id}`

ใช้ API key

แสดง endpoint หนึ่งอันของบัญชีนี้ตาม endpoint_id · ไม่มีค่า secret เต็ม มีแค่ secret_hint · endpoint_id ที่ไม่มีอยู่ ถูกลบแล้ว หรือเป็นของบัญชีอื่น ตอบ 404 เหมือนกัน · ใช้ API key ที่มีสิทธิ์ webhook:read

## Parameters

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

## Responses

### 200 `application/json`

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

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

401 403 404

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

**cURL**

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

**Node.js**

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

```json
{
  "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"
}
```
