API 和网页工作台使用同一套 Agent、通话记录和 Credits。在工作台里搭好的一切,都可以从你自己的系统里调用,反过来也一样。
| 功能 | 接口 |
|---|---|
| 列出 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 |