แหล่งที่มา (16 ไฟล์)

  • raw/API Events Overview.md — WebSocket vs Webhook overview + supported events list
  • raw/API Interfaces & Events Summary.md — ตาราง endpoints ครบทุกหมวด + events 30005–30036
  • raw/API Request Overview.md — โครงสร้าง request, URL format
  • raw/Request Structure.md — รายละเอียด base_url / api_path / endpoint / access_token
  • raw/Response Result.md — รูปแบบ response (errcode, errmsg, data)
  • raw/Authorization Rule.md — OAuth 2.0 flow, token lifecycle
  • raw/Get Access Token.md — POST get_token, parameters, example
  • raw/Refresh Access Token.md — POST refresh_token
  • raw/Revoke Access Token.md — GET del_token
  • raw/Monitor Events via WebSocket.md — WebSocket connection, subscribe, heartbeat
  • raw/Monitor Events via Webhook.md — Webhook setup, payload format
  • raw/Monitor WebSocket API Events with Postman.md — Postman setup guide
  • raw/Send a Request to Yeastar P-Series PBX System API with Postman.md — Postman quick start
  • raw/Remove Blocked API IP Addresses.md — Unblock IP after 5 failed auth attempts
  • raw/Get Menu Options.md — GET system/get_menuoptions
  • raw/Send an Email.md — POST system/sendemail
  • raw/Enable Yeastar P-Series PBX System API.md — เปิด API feature บน PBX

หน้าที่อัปเดต

  • wiki/entities/voip/yeastar/api.mdYeastar 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 ส่วนที่ขาด