總覽說明
本文件列出 MaiAgent 平台可供串接的 API 端點:每支端點都有請求與回應欄位說明,以及 Shell、JavaScript、Python、PHP 四種語言的範例。第一次串接請先走完下方四步,再到端點清單找您要呼叫的端點。
開始使用
1. 取得 API 金鑰
組織內的成員可以在後台右上角頭像 → 帳號 → API 金鑰 為自己建立金鑰;具備「API Key 管理權限」的管理者也可以在 組織設定 → API Key 管理 替指定成員簽發。完整金鑰只在建立當下顯示一次。兩種金鑰的取得方式與權限範圍見 API 認證方式。
2. 基本網址與認證標頭
SaaS 的 API 網址是 https://api.maiagent.ai/api/v1/,地端與私有雲部署請換成貴公司的平台網域;端點路徑以 / 結尾。每個請求都要在 Authorization 標頭帶入金鑰,前綴是 Api-Key(不是 Bearer):
Authorization: Api-Key <您的 API 金鑰>網址規則見 網址與版本前綴,金鑰綁定成員與權限的規則見 共通規範:認證。
3. 第一次呼叫
以列出 Agent(GET /api/v1/chatbots/)為例:
curl https://api.maiagent.ai/api/v1/chatbots/ \
-H "Authorization: Api-Key YOUR_API_KEY"回應是分頁格式(count、next、previous、results),欄位一律是 camelCase,見 分頁 與 欄位格式。收到 401 時請確認金鑰狀態與標頭格式,各狀態碼的含意見 狀態碼。
4. 下一步
速率限制、錯誤回應格式、上傳大小上限等跨端點規則:API 共通規範
回應的狀態碼與錯誤範例:狀態碼
轉真人後接收事件:轉真人 Webhook 事件
從建立對話到接回覆的完整流程:技術人員手冊 快速上手
各端點的欄位與範例:下方端點清單,或左側「API 端點說明文件」各分類頁
串接範例程式碼
若需參考 API 完整用例及程式碼,可至以下 Github Repository 查看:
C# 範例
Python 範例
API 分類與端點列表
每支端點的請求與回應欄位、各語言範例在分類頁;回應狀態碼的含意以 狀態碼 為準。
AI 助理
POSTapi/v1/chatbots: 建立新 AI 助理GETapi/v1/embedding-models: 列出 Embedding ModelGETapi/v1/reranker-models: 列出 Reranker ModelGETapi/v1/large-language-models: 列出大型語言模型GETapi/v1/chatbots: 取得 AI 助理列表GETapi/v1/chatbots/{id}: 取得特定 AI 助理PUTapi/v1/chatbots/{id}: 更新 AI 助理PATCHapi/v1/chatbots/{id}: 部分更新 AI 助理DELETEapi/v1/chatbots/{id}: 刪除 AI 助理POSTapi/v1/chatbots/{id}/duplicate: 複製 AI 助理PATCHapi/v1/chatbots/{id}/enable-evaluation: 啟用或停用評估功能GETapi/v1/hooks: 列出組織的 HookPOSTapi/v1/hooks: 依樣板建立 HookGETapi/v1/hooks/{id}: 取得特定 HookPATCHapi/v1/hooks/{id}: 部分更新 HookDELETEapi/v1/hooks/{id}: 刪除 HookGETapi/v1/chatbots/{chatbotId}/hooks: 列出 AI 助理掛載的 HookPUTapi/v1/chatbots/{chatbotId}/hooks: 整批替換 AI 助理掛載的 HookGETapi/v1/schedules: 列出排程POSTapi/v1/schedules: 建立排程GETapi/v1/schedules/{id}: 取得特定排程PATCHapi/v1/schedules/{id}: 部分更新排程DELETEapi/v1/schedules/{id}: 刪除排程POSTapi/v1/schedules/{id}/run-now: 立即執行排程POSTapi/v1/schedules/{id}/toggle: 啟用或停用排程
附件與檔案
POSTapi/v1/attachments-upload: 建立新附件 (整合)POSTapi/v1/upload-presigned-url: 取得檔案上傳用的預簽署 URLPOSTapi/v1/attachments: Presigned 上傳附件GETapi/v1/attachments/{id}: 取得特定附件POSTapi/v1/conversations/{conversationPk}/attachments: 建立對話附件GETapi/v1/allowed-file-specs: 取得允許的檔案規格GETapi/v1/file-library/conversation-attachments: 列出對話附件DELETEapi/v1/file-library/conversation-attachments/{id}: 刪除對話附件
知識庫(新版)
POSTapi/v1/knowledge-bases: 建立知識庫GETapi/v1/knowledge-bases: 列出所有知識庫GETapi/v1/knowledge-bases/{id}: 取得特定知識庫詳情POSTapi/v1/knowledge-bases/{id}/search: 搜尋特定知識庫的內容PUTapi/v1/knowledge-bases/{id}: 更新知識庫PATCHapi/v1/knowledge-bases/{id}: 部分更新知識庫DELETEapi/v1/knowledge-bases/{id}: 刪除知識庫GETapi/v1/knowledge-bases/{id}/check-rrf-availability: 檢查 RRF 可用性GETapi/v1/knowledge-bases/{id}/export-labels-excel: 匯出標籤 ExcelPOSTapi/v1/knowledge-bases/{id}/import-labels-excel: 匯入標籤 ExcelGETapi/v1/knowledge-bases/{id}/export-metadata-excel: 匯出元資料 ExcelPOSTapi/v1/knowledge-bases/{id}/import-metadata-excel: 匯入元資料 ExcelPOSTapi/v1/knowledge-bases/{knowledgeBasePk}/labels: 建立新標籤GETapi/v1/knowledge-bases/{knowledgeBasePk}/labels: 列出知識庫中的標籤GETapi/v1/knowledge-bases/{knowledgeBasePk}/labels/{id}: 取得特定標籤詳情PATCHapi/v1/knowledge-bases/{knowledgeBasePk}/labels/{id}: 部分更新標籤DELETEapi/v1/knowledge-bases/{knowledgeBasePk}/labels/{id}: 刪除標籤POSTapi/v1/knowledge-bases/{knowledgeBasePk}/metadata-keys: 建立元資料欄位GETapi/v1/knowledge-bases/{knowledgeBasePk}/metadata-keys/{id}: 取得特定元資料欄位POSTapi/v1/knowledge-bases/{knowledgeBasePk}/files: 上傳檔案到知識庫PATCHapi/v1/knowledge-bases/{knowledgeBasePk}/files/batch-reparse: 批量重新解析檔案GETapi/v1/knowledge-bases/{knowledgeBasePk}/files: 列出知識庫中的檔案GETapi/v1/knowledge-bases/{knowledgeBasePk}/files/{id}: 取得特定檔案詳情PATCHapi/v1/knowledge-bases/{knowledgeBasePk}/files/{id}: 部分更新檔案DELETEapi/v1/knowledge-bases/{knowledgeBasePk}/files/{id}: 刪除檔案GETapi/v1/knowledge-bases/{knowledgeBasePk}/documents: 列出知識庫文件PATCHapi/v1/knowledge-bases/{knowledgeBasePk}/documents/{id}: 部分更新文件POSTapi/v1/knowledge-bases/{knowledgeBasePk}/faqs: 建立新的 FAQPATCHapi/v1/knowledge-bases/{knowledgeBasePk}/faqs/{id}/update-metadata: 更新 FAQ 元資料POSTapi/v1/knowledge-bases/{knowledgeBasePk}/faqs/batch-delete: 批量刪除 FAQGETapi/v1/knowledge-bases/{knowledgeBasePk}/faqs: 列出特定知識庫的所有 FAQGETapi/v1/knowledge-bases/{knowledgeBasePk}/faqs/{id}: 取得特定 FAQ 詳情PATCHapi/v1/knowledge-bases/{knowledgeBasePk}/faqs/{id}: 部分更新 FAQDELETEapi/v1/knowledge-bases/{knowledgeBasePk}/faqs/{id}: 刪除 FAQGETapi/v1/knowledge-bases/{id}/export-faq-excel: 匯出 FAQ Excel(或空白範本)POSTapi/v1/knowledge-bases/{id}/import-faq-excel: 匯入 FAQ Excel(非同步)GETapi/v1/knowledge-bases/{id}/faq-import-jobs: 列出 FAQ 匯入工作GETapi/v1/knowledge-bases/{id}/faq-import-jobs/{jobId}: 取得特定 FAQ 匯入工作GETapi/v1/parsers: 列出解析器GETapi/v1/parsers/{id}: 取得特定解析器
知識庫(舊版)
GETapi/v1/chatbots/{id}/knowledge-bases-files: 取得 AI 助理的知識庫檔案列表GETapi/v1/chatbots/{id}/knowledge-bases-faqs: 取得 AI 助理的知識庫 FAQ 列表GETapi/v1/chatbot-text-nodes: 取得 AI 助理的所有檔案的文本節點GETapi/v1/chatbot-text-nodes/{id}: 取得 AI 助理的特定檔案的文本節點POSTapi/v1/chatbots/{id}/search: 搜尋測試GETapi/v1/parsers/supported-file-types: 列出檔案類型支援的解析器
對話與訊息
POSTapi/v1/chatbots/{chatbotId}/completions: 發送訊息 (串流)POSTapi/v1/messages: 發送訊息 (建立)POSTapi/v1/messages/outgoing: 發送主動訊息POSTapi/v1/conversations: 建立新的對話GETapi/v1/messages: 取得訊息列表GETapi/v1/messages/{id}: 取得特定訊息GETapi/v1/conversations: 取得對話列表GETapi/v1/conversations/{id}: 取得特定對話PATCHapi/v1/conversations/{id}/rename: 重新命名對話DELETEapi/v1/conversations/{id}: 刪除對話POSTapi/v1/conversations/{id}/stop-response: 中止 AI 回覆POSTapi/v1/conversations/{id}/satisfaction: 提交對話滿意度GETapi/v1/conversations/{id}/events: 列出對話事件PATCHapi/v1/conversations/{id}/assign: 指派對話給成員PATCHapi/v1/conversations/{id}/claim: 認領對話PATCHapi/v1/conversations/{id}/transfer: 轉接對話給其他成員PATCHapi/v1/conversations/{id}/return-to-ai: 轉回 AI 回覆GETapi/v1/conversations/{conversationId}/outputs: 列出對話產出檔案POSTapi/v1/conversations/{conversationPk}/share: 分享對話POSTapi/v1/conversations/{conversationPk}/share/quick: 快速分享對話GETapi/v1/shared-conversations: 列出分享的對話GETapi/v1/shared-conversations/{id}: 取得特定分享對話PATCHapi/v1/shared-conversations/{id}: 更新分享對話DELETEapi/v1/shared-conversations/{id}: 刪除分享對話POSTapi/v1/shared-conversations/{id}/fork: 複製分享對話GETapi/v1/shared-conversations/my-shares: 取得我的分享列表POSTapi/v1/messages/{messagePk}/feedback: 建立訊息回饋PUTapi/v1/messages/{messagePk}/feedback/{id}: 更新訊息回饋DELETEapi/v1/messages/{messagePk}/feedback/{id}: 刪除訊息回饋GETapi/v1/records: 取得對話紀錄列表GETapi/v1/records/{id}: 取得特定對話紀錄POSTapi/v1/records/export-excel-requests: 建立對話紀錄匯出請求GETapi/v1/records/export-excel-requests/{exportId}: 取得對話紀錄匯出狀態
對話 Widget
POSTapi/v1/web-chats: 建立 Web ChatGETapi/v1/web-chats: 列出 Web ChatGETapi/v1/web-chats/{id}: 取得特定 Web ChatPUTapi/v1/web-chats/{id}: 更新 Web ChatPATCHapi/v1/web-chats/{id}: 部分更新 Web ChatPOSTapi/v1/web-chats/{id}/setup-contact-credentials: 設定聯絡人憑證POSTapi/v1/web-chats/{id}/voice-agent/token: 取得語音助理 TokenPOSTapi/v1/web-chats/{webchatPk}/batch-qas: 上傳批次 QA 檔案GETapi/v1/web-chats/{webchatPk}/batch-qas/{id}/export-excel: 匯出批次 QA 為 ExcelGETapi/v1/chatbots/{chatbotPk}/llm-usage-statistics: 取得 LLM 使用統計GETapi/v1/chatbots/{chatbotPk}/statistics: 取得 AI 助理統計數據
對話平台
GETapi/v1/inboxes: 列出對話平台POSTapi/v1/inboxes: 建立對話平台GETapi/v1/inboxes/{id}: 取得特定對話平台PUTapi/v1/inboxes/{id}: 更新對話平台PATCHapi/v1/inboxes/{id}: 部分更新對話平台DELETEapi/v1/inboxes/{id}: 刪除對話平台GETapi/v1/inboxes/{inboxPk}/webhooks: 列出對話平台的 WebhookPOSTapi/v1/inboxes/{inboxPk}/webhooks: 建立 WebhookGETapi/v1/inboxes/{inboxPk}/webhooks/{id}: 取得特定 WebhookPUTapi/v1/inboxes/{inboxPk}/webhooks/{id}: 更新 WebhookPATCHapi/v1/inboxes/{inboxPk}/webhooks/{id}: 部分更新 WebhookDELETEapi/v1/inboxes/{inboxPk}/webhooks/{id}: 刪除 Webhook
組織與成員
POSTapi/v1/auth/registration: 帳號註冊POSTapi/v1/auth/password/change: 更換密碼POSTapi/v1/organizations: 建立新組織POSTapi/v1/organizations/{organizationPk}/members: 新增成員至指定組織GETapi/v1/organizations: 取得組織列表GETapi/v1/organizations/{id}: 取得特定組織資訊GETapi/v1/users/current: 取得當前用戶詳細資訊GETapi/v1/permissions: 取得當前用戶權限GETapi/v1/organizations/{organizationPk}/members: 取得指定組織的成員列表GETapi/v1/organizations/{organizationPk}/members/{id}: 取得特定成員詳細資訊PUTapi/v1/organizations/{id}: 更新組織資訊PUTapi/v1/users/current: 更新當前用戶詳細資訊POSTapi/v1/auth/unified-invitations: 邀請成員加入組織GETapi/v1/auth/organization-mail-invitations: 列出組織邀請信紀錄POSTapi/v1/auth/organization-mail-invitations/{id}/resend: 重寄組織邀請信GETapi/v1/organizations/{organizationPk}/api-keys: 列出組織的 API KeyPOSTapi/v1/organizations/{organizationPk}/api-keys: 替成員簽發 API KeyGETapi/v1/organizations/{organizationPk}/api-keys/{id}: 取得特定 API KeyPATCHapi/v1/organizations/{organizationPk}/api-keys/{id}: 更新 API Key 設定DELETEapi/v1/organizations/{organizationPk}/api-keys/{id}: 撤銷 API KeyGETapi/v1/users/api-key-context: 查詢 API Key 所屬組織POSTapi/v1/members/embed-tokens: 換發成員嵌入 tokenGETapi/v1/oauth/applications: 列出 OAuth 應用程式POSTapi/v1/oauth/applications: 註冊 OAuth 應用程式GETapi/v1/oauth/applications/{id}: 取得特定 OAuth 應用程式PATCHapi/v1/oauth/applications/{id}: 更新 OAuth 應用程式DELETEapi/v1/oauth/applications/{id}: 刪除 OAuth 應用程式並撤銷其 tokenPOSTapi/v1/oauth/applications/{id}/regenerate-secret: 重新產生 client secretGETapi/v1/oauth/authorized-applications: 列出我授權過的 OAuth 應用程式DELETEapi/v1/oauth/authorized-applications/{id}: 撤銷我對某應用程式的授權DELETEapi/v1/organizations/{id}: 刪除組織DELETEapi/v1/organizations/{organizationPk}/members/{id}: 刪除指定成員GETapi/v1/organizations/{organizationPk}/usage-statistics/chatbots: 取得 AI 助理使用統計GETapi/v1/organizations/{organizationPk}/usage-statistics/chatbots/summary: 取得 AI 助理使用統計摘要GETapi/v1/me/memories: 列出自己的記憶POSTapi/v1/me/memories: 建立或更新自己的記憶PATCHapi/v1/me/memories/{id}: 修改或重新啟用自己的記憶DELETEapi/v1/me/memories/{id}: 刪除自己的記憶
角色與權限
POSTapi/v1/organizations/{organizationPk}/groups: 建立角色GETapi/v1/permissions: 列出權限清單GETapi/v1/organizations/{organizationPk}/groups: 取得角色列表GETapi/v1/organizations/{organizationPk}/groups/{id}: 取得角色的詳情GETapi/v1/organizations/{organizationPk}/groups/{groupPk}/group-chatbots: 取得角色的 AI 助理列表PATCHapi/v1/organizations/{organizationPk}/groups/{id}: 部分更新角色權限DELETEapi/v1/organizations/{organizationPk}/groups/{id}: 刪除角色DELETEapi/v1/organizations/{organizationPk}/groups/{groupPk}/group-chatbots/{id}: 移除角色裡的 AI 助理
聯絡人
GETapi/v1/contacts: 列出聯絡人POSTapi/v1/contacts: 建立聯絡人GETapi/v1/contacts/{id}: 取得聯絡人詳情PUTapi/v1/contacts/{id}: 更新聯絡人PATCHapi/v1/contacts/{id}: 部分更新聯絡人DELETEapi/v1/contacts/{id}: 刪除聯絡人GETapi/v1/contacts/{id}/conversations: 取得聯絡人的對話列表GETapi/v1/contacts/{id}/conversations/latest: 取得聯絡人最新對話POSTapi/v1/contacts/broadcast-message: 群發訊息POSTapi/v1/contacts/{id}/api-credentials: 為聯絡人建立 API 憑證PATCHapi/v1/contacts/{id}/api-credentials/{credentialId}: 更新聯絡人的 API 憑證DELETEapi/v1/contacts/{id}/api-credentials/{credentialId}: 刪除聯絡人的 API 憑證POSTapi/v1/contacts/{id}/mcp-credentials: 為聯絡人建立 MCP 憑證PATCHapi/v1/contacts/{id}/mcp-credentials/{credentialId}: 更新聯絡人的 MCP 憑證DELETEapi/v1/contacts/{id}/mcp-credentials/{credentialId}: 刪除聯絡人的 MCP 憑證GETapi/v1/contacts/bulk-import-template: 下載聯絡人批次匯入範本POSTapi/v1/contacts/bulk-import: 批次匯入聯絡人
工具與連接器
POSTapi/v1/tools: 建立工具GETapi/v1/tools: 列出工具GETapi/v1/tools/{id}: 取得特定工具PUTapi/v1/tools/{id}: 更新工具PATCHapi/v1/tools/{id}: 部分更新工具DELETEapi/v1/tools/{id}: 刪除工具POSTapi/v1/tools/available-tools: 列出可用工具POSTapi/v1/connectors: 建立連接器GETapi/v1/connectors: 列出連接器GETapi/v1/connectors/{id}: 取得特定連接器PUTapi/v1/connectors/{id}: 更新連接器PATCHapi/v1/connectors/{id}: 部分更新連接器DELETEapi/v1/connectors/{id}: 刪除連接器GETapi/v1/connectors/{id}/authorized-members: 列出連接器授權成員DELETEapi/v1/connectors/{id}/authorized-members/{memberId}: 移除連接器授權成員GETapi/v1/mcp/registry: 列出 MCP 工具登錄GETapi/v1/mcp/registry/{id}: 取得特定 MCP 工具登錄GETapi/v1/mcp/private-registry: 列出組織自架的 MCP ServerPOSTapi/v1/mcp/private-registry: 新增自架 MCP ServerGETapi/v1/mcp/private-registry/{id}: 取得特定自架 MCP ServerPATCHapi/v1/mcp/private-registry/{id}: 部分更新自架 MCP ServerDELETEapi/v1/mcp/private-registry/{id}: 刪除自架 MCP ServerPOSTapi/v1/mcp/private-registry/test-connection: 測試 MCP Server 連線GETapi/v1/tool-execution-records: 取得工具執行紀錄列表GETapi/v1/tool-execution-records/{id}: 取得特定工具執行紀錄GETapi/v1/tool-execution-records/chatbots: 取得執行紀錄的 AI 助理過濾選項GETapi/v1/tool-execution-records/tools: 取得執行紀錄的工具過濾選項GETapi/v1/tools/{toolPk}/tool-execution-records: 取得特定工具的執行紀錄列表GETapi/v1/tools/{toolPk}/tool-execution-records/{id}: 取得特定工具的特定執行紀錄GETapi/v1/tools/{toolPk}/tool-execution-records/chatbots: 取得特定工具執行紀錄的 AI 助理過濾選項GETapi/v1/tools/{toolPk}/tool-execution-records/tools: 取得特定工具執行紀錄的工具過濾選項
技能
POSTapi/v1/skills/upload: 上傳技能POSTapi/v1/skills: 建立技能GETapi/v1/skills: 列出技能GETapi/v1/skills/{id}: 取得特定技能PUTapi/v1/skills/{id}: 更新技能PATCHapi/v1/skills/{id}: 部分更新技能DELETEapi/v1/skills/{id}: 刪除技能GETapi/v1/skills/{id}/export: 匯出技能GETapi/v1/skills/{id}/package-structure: 瀏覽技能包目錄結構POSTapi/v1/skills/{id}/reupload: 重新上傳技能GETapi/v1/skills/{skillPk}/resources: 列出技能資源POSTapi/v1/skills/{skillPk}/resources: 上傳技能資源DELETEapi/v1/skills/{skillPk}/resources/{id}: 刪除技能資源GETapi/v1/skills/{skillPk}/resources/{id}/download: 下載技能資源
資料庫
POSTapi/v1/sql-databases: 建立 SQL 資料庫連線GETapi/v1/sql-databases: 列出 SQL 資料庫GETapi/v1/sql-databases/{id}: 取得特定 SQL 資料庫PUTapi/v1/sql-databases/{id}: 更新 SQL 資料庫PATCHapi/v1/sql-databases/{id}: 部分更新 SQL 資料庫DELETEapi/v1/sql-databases/{id}: 刪除 SQL 資料庫POSTapi/v1/sql-databases/{id}/test-connection: 測試資料庫連線POSTapi/v1/sql-databases/{id}/upload-files: 上傳檔案至資料庫POSTapi/v1/sql-databases/batch-delete: 批量刪除 SQL 資料庫GETapi/v1/sql-databases/{sqlDatabasePk}/tables: 列出資料表POSTapi/v1/sql-databases/{sqlDatabasePk}/tables: 建立資料表GETapi/v1/sql-databases/{sqlDatabasePk}/tables/{id}: 取得特定資料表PATCHapi/v1/sql-databases/{sqlDatabasePk}/tables/{id}: 部分更新資料表DELETEapi/v1/sql-databases/{sqlDatabasePk}/tables/{id}: 刪除資料表POSTapi/v1/sql-databases/{sqlDatabasePk}/tables/batch-delete: 批量刪除資料表POSTapi/v1/database-connection/test: 測試資料庫連線(通用)GETapi/v1/database-examples: 列出資料庫連線字串範例GETapi/v1/database-examples/{id}: 取得特定連線字串範例GETapi/v1/chatbots/{chatbotPk}/databases: 列出 AI 助理的資料庫配置POSTapi/v1/chatbots/{chatbotPk}/databases: 新增 AI 助理的資料庫配置GETapi/v1/chatbots/{chatbotPk}/databases/{id}: 取得特定資料庫配置PUTapi/v1/chatbots/{chatbotPk}/databases/{id}: 更新資料庫配置PATCHapi/v1/chatbots/{chatbotPk}/databases/{id}: 部分更新資料庫配置DELETEapi/v1/chatbots/{chatbotPk}/databases/{id}: 刪除資料庫配置
評估與測試集
GETapi/v1/dataset: 列出測試集POSTapi/v1/dataset: 建立空白測試集POSTapi/v1/dataset/upload: 上傳 CSV 或 Excel 建立測試集POSTapi/v1/dataset/generate-from-file: 從知識庫檔案生成測試集GETapi/v1/dataset/knowledge-base-files: 列出可生成測試案例的知識庫檔案GETapi/v1/dataset/{id}: 取得特定測試集GETapi/v1/dataset/{id}/details: 取得測試集與單輪測試案例PUTapi/v1/dataset/{id}: 更新測試集PATCHapi/v1/dataset/{id}: 部分更新測試集DELETEapi/v1/dataset/{id}: 刪除測試集GETapi/v1/test-case: 列出單輪測試案例POSTapi/v1/test-case: 建立單輪測試案例POSTapi/v1/test-case/upload: 上傳 CSV 或 Excel 加入測試案例POSTapi/v1/test-case/generate-from-file: 從知識庫檔案生成單輪測試案例GETapi/v1/test-case/generation-jobs: 列出測試案例生成任務GETapi/v1/test-case/generation-jobs/{jobId}: 查詢測試案例生成任務進度PUTapi/v1/test-case/{id}: 更新單輪測試案例PATCHapi/v1/test-case/{id}: 部分更新單輪測試案例DELETEapi/v1/test-case/{id}: 刪除單輪測試案例POSTapi/v1/test-case/bulk-delete: 批次刪除單輪測試案例GETapi/v1/multi-turn-test-case: 列出多輪測試案例POSTapi/v1/multi-turn-test-case: 建立多輪測試案例POSTapi/v1/multi-turn-test-case/generate-from-file: 從知識庫檔案生成多輪測試案例GETapi/v1/multi-turn-test-case/{id}: 取得特定多輪測試案例PUTapi/v1/multi-turn-test-case/{id}: 更新多輪測試案例PATCHapi/v1/multi-turn-test-case/{id}: 部分更新多輪測試案例DELETEapi/v1/multi-turn-test-case/{id}: 刪除多輪測試案例GETapi/v1/evaluations/evaluation-llms: 列出可用的評估模型POSTapi/v1/evaluations/evaluate: 執行單輪評估POSTapi/v1/evaluations/multi-turn-evaluate: 執行多輪評估GETapi/v1/evaluations: 列出評估GETapi/v1/evaluations/{id}: 取得評估結果GETapi/v1/evaluations/{id}/details: 取得單輪評估的逐題結果GETapi/v1/evaluations/{id}/multi-turn-results: 取得多輪評估的逐對話結果POSTapi/v1/evaluations/{id}/cancel: 取消執行中的評估POSTapi/v1/evaluations/{id}/resume: 繼續未完成的評估POSTapi/v1/evaluations/{id}/export: 匯出評估報表GETapi/v1/evaluations/{id}/export-status: 查詢最新匯出狀態GETapi/v1/evaluations/{id}/exports: 列出匯出紀錄PATCHapi/v1/evaluations/{id}: 編輯評估名稱與描述DELETEapi/v1/evaluations/{id}: 刪除評估
Credit
GETapi/v1/credit/wallets: 查詢 Credit 餘額GETapi/v1/credit/wallets/{id}: 取得錢包詳情GETapi/v1/credit/wallets/{id}/balance: 取得錢包餘額GETapi/v1/credit/wallets/{id}/expiring-credits: 查詢即將到期額度GETapi/v1/credit/wallets/{id}/topup-history: 查詢入帳紀錄GETapi/v1/credit/transactions: 列出消耗明細GETapi/v1/credit/transactions/{id}: 取得單筆消耗明細GETapi/v1/credit/transactions/history: 查詢消耗紀錄GETapi/v1/credit/transactions/history-summary: 查詢消耗總計GETapi/v1/organizations/{organizationPk}/usage-statistics/credit-categories: 查詢各分類 Credit 用量GETapi/v1/organizations/{organizationPk}/usage-statistics/credit-categories/{id}: 查詢單一分類 Credit 用量GETapi/v1/credit/wallets/{id}/new-member-quota-policy: 取得新成員預設額度設定PATCHapi/v1/credit/wallets/{id}/new-member-quota-policy: 更新新成員預設額度設定GETapi/v1/organizations/{organizationPk}/credit-quota-inboxes: 列出對話平台額度現況GETapi/v1/inboxes/{inboxPk}/credit-quotas: 列出對話平台的額度設定GETapi/v1/inboxes/{inboxPk}/credit-quotas/{id}: 取得對話平台的單筆額度設定POSTapi/v1/inboxes/{inboxPk}/credit-quotas: 為對話平台設定額度PATCHapi/v1/inboxes/{inboxPk}/credit-quotas/{id}: 更新對話平台的額度設定DELETEapi/v1/inboxes/{inboxPk}/credit-quotas/{id}: 停用對話平台的額度設定GETapi/v1/organizations/{organizationPk}/me/group-credit-quotas: 查詢自己所屬角色的額度GETapi/v1/credit/pricing-rules: 列出計價規則GETapi/v1/credit/pricing-rules/{id}: 取得單一計價規則GETapi/v1/credit/items: 列出計價項目GETapi/v1/credit/items/{id}: 取得單一計價項目
AI Gateway
GETapi/v1/models: 列出可用模型POSTapi/v1/chat/completions: 對話補全(支援串流與工具呼叫)POSTapi/v1/embeddings: 產生文字向量POSTapi/v1/audio/transcriptions: 語音轉文字POSTapi/v1/audio/speech: 文字轉語音
SCIM
GETapi/v1/scim/{orgUuid}/ServiceProviderConfig: 取得服務提供者設定(IdP 探索用)GETapi/v1/scim/{orgUuid}/Users: 列出或查詢成員(支援filter、startIndex、count)POSTapi/v1/scim/{orgUuid}/Users: 建立成員GETapi/v1/scim/{orgUuid}/Users/{userId}: 取得特定成員PUTapi/v1/scim/{orgUuid}/Users/{userId}: 整筆取代成員PATCHapi/v1/scim/{orgUuid}/Users/{userId}: 局部更新成員(停用、改名、改 externalId)DELETEapi/v1/scim/{orgUuid}/Users/{userId}: 停用成員GETapi/v1/scim/{orgUuid}/Groups: 列出群組(對應 MaiAgent 角色)POSTapi/v1/scim/{orgUuid}/Groups: 建立群組GETapi/v1/scim/{orgUuid}/Groups/{groupId}: 取得特定群組PUTapi/v1/scim/{orgUuid}/Groups/{groupId}: 整筆取代群組PATCHapi/v1/scim/{orgUuid}/Groups/{groupId}: 局部更新群組(改名、增減成員)DELETEapi/v1/scim/{orgUuid}/Groups/{groupId}: 刪除群組
會議記錄
GETapi/v1/meeting-records: 列出會議記錄POSTapi/v1/meeting-records: 建立會議記錄GETapi/v1/meeting-records/{id}: 取得特定會議記錄PATCHapi/v1/meeting-records/{id}: 部分更新會議記錄DELETEapi/v1/meeting-records/{id}: 刪除會議記錄POSTapi/v1/meeting-records/import-audio: 匯入音檔並開始轉錄GETapi/v1/meeting-records/{id}/transcript: 取得會議逐字稿(JSON)GETapi/v1/meeting-records/{meetingRecordPk}/summaries/{id}: 取得特定會議摘要POSTapi/v1/meeting-records/{id}/upload-transcript: 上傳逐字稿到知識庫GETapi/v1/meeting-records/{id}/download-srt: 下載 SRT 字幕檔GETapi/v1/meeting-records/{id}/download-mp3: 下載 MP3 音檔
最後更新於
這有幫助嗎?