跳轉到主要內容
V1 REST API 提供完整的程式化存取能力,讓您管理 Pathors 專案。所有端點皆使用 Developer Key 進行認證。

基礎 URL

https://api.pathors.com/v1

認證

所有 V1 API 請求都需要透過 Authorization 標頭傳入 Developer Key:
Authorization: Bearer dk_your_developer_key_here
Developer Key 可在 Pathors 儀表板的 Developer Keys 區塊建立。

資源

專案

建立與管理專案。

Agent 設定

設定 Agent 組態(全域提示、執行模式等)。

Pathway

讀取與修改對話流程圖(節點與邊)。

工具

管理 Agent 可使用的工具。

通話

發起外撥電話。

錯誤格式

所有錯誤皆遵循一致的格式:
{
  "error": {
    "message": "Description of the error",
    "details": {}
  }
}
狀態碼描述
400驗證錯誤
401無效或缺少 Developer Key
403權限不足
404找不到資源
409衝突(例如:重複的 ID)
500內部伺服器錯誤