/api/v1/health
ตรวจสถานะ API
ใช้ตรวจว่า API เปิดให้บริการอยู่หรือไม่ เหมาะสำหรับ health check ของระบบพาร์ทเนอร์
Example Request
curl "https://acc-market.net/api/v1/health"
const res = await fetch('https://acc-market.net/api/v1/health');
console.log(await res.json());
$response = file_get_contents('https://acc-market.net/api/v1/health');
echo $response;
import requests
res = requests.get('https://acc-market.net/api/v1/health')
print(res.json())
Example Response
{
"ok": true,
"data": {
"status": "ok",
"service": "partner-api"
},
"meta": {
"timestamp": "2026-05-30T03:00:00+07:00",
"version": "v1"
}
}
หมายเหตุ
- Endpoint นี้ไม่ต้องใช้ API Key