API 和網頁工作台使用同一套 Agent、通話和點數。在工作台建立的一切都能從你自己的系統操作,反過來也一樣。
| 功能 | 端點 |
|---|---|
| 列出 Agent | GET /api/v1/voice/agents |
| 建立 Agent | POST /api/v1/voice/agents |
| 取得 / 更新 Agent | GET · PATCH /api/v1/voice/agents/{id} |
| 列出通話 | GET /api/v1/voice/calls |
| 取得通話(逐字稿) | GET /api/v1/voice/calls/{id} |
| 刪除通話 | DELETE /api/v1/voice/calls/{id} |
| 刪除某位來電者的通話 | POST /api/v1/voice/calls/delete-by-caller |
| 拒撥名單 | GET · POST /api/v1/voice/do-not-call |
| 從名單移除 | DELETE /api/v1/voice/do-not-call/{phone} |
| 語言、聲音、範本 | GET /api/v1/voice/catalog |
| Agent 的測試 | GET · POST /api/v1/voice/agents/{id}/tests |
| 執行測試 / 查看結果 | POST /api/v1/voice/agents/{id}/test-runs · GET /api/v1/voice/test-runs/{id} |
| 號碼接到 Agent | PATCH /api/v1/voice/phone-numbers/{id} |
| 詞庫 | GET · POST /api/v1/voice/vocabularies |
| 打字對話(Chat) | POST /api/v1/voice/chats · POST /api/v1/voice/chats/{id}/messages · POST /api/v1/voice/chats/{id}/end |