# ดูกิจกรรมหนึ่งรายการ

Source: https://checkslip.com/docs/get-audit-event

GET `https://api.checkslip.com/api/audit/events/{event_id}`

ใช้ API key

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

## Parameters

| ฟิลด์ | ส่งทาง | ชนิด | จำเป็น |
| --- | --- | --- | --- |
| `event_id` | path | `string (uuid)` | ใช่ |

## Responses

### 200 `application/json`

| ฟิลด์ | ชนิด | จำเป็น |
| --- | --- | --- |
| `event_id` | `string (uuid)` | ใช่ |
| `category` | `MONEY \| ACCESS \| DATA_CHANGE \| SENSITIVE_READ \| SECURITY` | ใช่ |
| `outcome` | `SUCCESS \| FAILURE \| DENIED` | ใช่ |
| `occurred_at` | `string (date-time)` | ใช่ |
| `request_id` | `string (uuid) \| null` | ไม่ |
| `actor` | `object` | ใช่ |
| `actor.type` | `USER \| API_KEY \| ASSISTANT \| STAFF \| SYSTEM` | ใช่ |
| `actor.id` | `string (uuid) \| null` | ไม่ |
| `actor.on_behalf_of_user_id` | `string (uuid) \| null` | ไม่ |
| `channel` | `API \| DASHBOARD \| ASSISTANT \| STAFF \| SYSTEM` | ใช่ |
| `action` | `string` | ใช่ |
| `target` | `object` | ใช่ |
| `target.type` | `string` | ใช่ |
| `target.id` | `string` | ใช่ |
| `before` | `object \| null` | ไม่ |
| `after` | `object \| null` | ไม่ |
| `reason` | `string \| null` | ไม่ |
| `undo_of_event_id` | `string (uuid) \| null` | ไม่ |

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

401 403 404 429

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

**cURL**

```bash
curl https://api.checkslip.com/api/audit/events/0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4 \
  -H "Authorization: Bearer $CHECKSLIP_API_KEY"
```

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/audit/events/0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4", {
  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/audit/events/0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
data = res.json()
```

```json
{
  "event_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
  "category": "MONEY",
  "outcome": "SUCCESS",
  "occurred_at": "2026-11-05T09:30:00+07:00",
  "request_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
  "actor": {
    "type": "USER",
    "id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
    "on_behalf_of_user_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4"
  },
  "channel": "API",
  "action": "api_key.created",
  "target": {
    "type": "string",
    "id": "string"
  },
  "before": {},
  "after": {},
  "reason": "string",
  "undo_of_event_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4"
}
```
