แหล่งที่มา (16 ไฟล์)
raw/API Events Overview.md— WebSocket vs Webhook overview + supported events listraw/API Interfaces & Events Summary.md— ตาราง endpoints ครบทุกหมวด + events 30005–30036raw/API Request Overview.md— โครงสร้าง request, URL formatraw/Request Structure.md— รายละเอียด base_url / api_path / endpoint / access_tokenraw/Response Result.md— รูปแบบ response (errcode, errmsg, data)raw/Authorization Rule.md— OAuth 2.0 flow, token lifecycleraw/Get Access Token.md— POST get_token, parameters, exampleraw/Refresh Access Token.md— POST refresh_tokenraw/Revoke Access Token.md— GET del_tokenraw/Monitor Events via WebSocket.md— WebSocket connection, subscribe, heartbeatraw/Monitor Events via Webhook.md— Webhook setup, payload formatraw/Monitor WebSocket API Events with Postman.md— Postman setup guideraw/Send a Request to Yeastar P-Series PBX System API with Postman.md— Postman quick startraw/Remove Blocked API IP Addresses.md— Unblock IP after 5 failed auth attemptsraw/Get Menu Options.md— GET system/get_menuoptionsraw/Send an Email.md— POST system/sendemailraw/Enable Yeastar P-Series PBX System API.md— เปิด API feature บน PBX
หน้าที่อัปเดต
wiki/entities/voip/yeastar/api.md— Yeastar P-Series API- เพิ่ม event 30036 (System Event Alert)
- เพิ่ม Security — Blocked IP section (5 failed auth → auto-block)
- อัปเดต sources frontmatter
Key Insights
- API ใช้ OAuth 2.0 protocol — access_token (30 min) + refresh_token (24 h)
- Max 8 valid tokens พร้อมกันต่อ application
- 5 failed auth attempts → IP ถูก block อัตโนมัติ → ไปปลดที่ Security > Security Rules > Blocked IPs
- Events 30005–30036 (31 events) ส่งผ่าน WebSocket หรือ Webhook
- เนื้อหาหลักส่วนใหญ่มีอยู่แล้วในการ ingest ก่อนหน้า (2026-04-23) — บันทึกนี้ supplement 3 ส่วนที่ขาด