# ดูรายการไฟล์หลักฐาน

Source: https://checkslip.com/docs/list-evidence-exports

GET `https://api.checkslip.com/api/audit/exports`

ใช้ API key

แสดงไฟล์หลักฐานที่บัญชีนี้ขอไว้ ใหม่สุดก่อน พร้อม status ของแต่ละไฟล์ QUEUED (รอคิว), RUNNING (กำลังสร้าง), READY (พร้อมดาวน์โหลด), FAILED (สร้างไม่สำเร็จ) และ EXPIRED (ไฟล์ถูกลบแล้ว) · ใช้ next_cursor เพื่อดูหน้าถัดไป · ไม่หักเครดิต · ใช้ API key ที่มีสิทธิ์ audit:read หรือเข้าสู่ระบบบนเว็บแอป

## Parameters

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

## Responses

### 200 `application/json`

| ฟิลด์ | ชนิด | จำเป็น |
| --- | --- | --- |
| `items` | `EvidenceExport[]` | ใช่ |
| `items[].export_id` | `string (uuid)` | ใช่ |
| `items[].status` | `QUEUED \| RUNNING \| READY \| FAILED \| EXPIRED` | ใช่ |
| `items[].from_day` | `string (date)` | ใช่ |
| `items[].to_day` | `string (date)` | ใช่ |
| `items[].streams` | `AUDIT_EVENTS[]` | ใช่ |
| `items[].created_at` | `string (date-time)` | ใช่ |
| `items[].created_by` | `ExportCreator` | ไม่ |
| `items[].created_by.type` | `USER \| API_KEY \| ASSISTANT \| STAFF \| SYSTEM` | ใช่ |
| `items[].created_by.id` | `string (uuid) \| null` | ไม่ |
| `items[].ready_at` | `string (date-time) \| null` | ไม่ |
| `items[].expires_at` | `string (date-time) \| null` | ไม่ |
| `items[].manifest` | `ExportManifest \| null` | ไม่ |
| `next_cursor` | `string \| null` | ใช่ |

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

400 401 403 429

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

**cURL**

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

**Node.js**

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

```json
{
  "items": [
    {
      "export_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
      "status": "QUEUED",
      "from_day": "2026-11-05",
      "to_day": "2026-11-05",
      "streams": [
        "AUDIT_EVENTS"
      ],
      "created_at": "2026-11-05T09:30:00+07:00",
      "created_by": {
        "type": "USER",
        "id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4"
      },
      "ready_at": "2026-11-05T09:30:00+07:00",
      "expires_at": "2026-11-05T09:30:00+07:00",
      "manifest": {
        "format": "checkslip-audit-export/3",
        "record_count": 1,
        "sha256": "string",
        "size_bytes": 1
      }
    }
  ],
  "next_cursor": "string"
}
```
