For the complete documentation index, see llms.txt. This page is also available as Markdown.

工具與連接器

建立工具

POST /api/v1/tools/

請求內容

請求參數

欄位
類型
必填
說明

name

object

否

Tool name may only contain letters, digits, underscores (_) and hyphens (-). Not required for MCP tools; for API tools it is the tool name given to the LLM.

displayName

string

是

A name with any characters, used by users for configuration and management.

description

string

否

Tool description shown to users. Not required for MCP tools.

prompt

string

否

Tool description/prompt given to the LLM. If empty, the description field is used. Not required for MCP tools.

toolType

string (enum: api, function, mcp, desktop, flex, quick_reply, quick_menu)

否

api: API ; function: Function ; mcp: MCP ; desktop: Desktop ; flex: Flex Message ; quick_reply: Quick Reply ; quick_menu: Quick Menu;

apiUrl

string

否

httpMethod

object

否

rawHeaders

object

否

sensitiveHeaders

array[string]

否

rawQueryParams

object

否

Query string parameters appended to every request of this API tool. Values support the same {{variable}} template rendering as raw_headers. On key collision with LLM-generated arguments, these values ...

rawParametersSchema

object

否

functionCode

string

否

mcpUrl

string

否

mcpRegistry

string (uuid)

否

Registry backing this MCP tool. Null for manual-URL MCP tools.

mcpAllowedTools

object

否

rawMcpHeader

object

否

Default headers used when the Contact has no matching MCP Credential.

authSubject

object

否

Shared uses the tool level token plus per contact credentials; contact requires per contact authentication only; caller mints a short-lived token for the conversation-bound member (falls back to per c...

flexTemplateJson

object

否

FlexMessage JSON template. Required for FLEX_MESSAGE tools. Stores the full LINE FlexMessage JSON structure (bubble / carousel / box / text / image / button etc.).

flexSchema

object

否

AI dynamic field schema for FlexMessage. JSON object whose keys are field paths parsed from flex_template_json (e.g. text / image url / button label / button uri / button message). Each value may be e...

quickReplyConfig

object

否

Authoring config for QUICK_REPLY tools. Structured JSON describing the chip buttons: static list or dynamic (LLM-generated) mode, each field either a fixed value or an LLM prompt.

quickMenuConfig

object

否

Authoring config for QUICK_MENU tools. Structured JSON describing the persistent input-bar menu rendered by the web chat only: layout (grid / list), default open state, and 2-6 items each carrying a d...

category

string (enum: knowledge_base, web_search, web_fetch, code_execution, file_processing, image_video_generation, database_query, third_party_integration, browser_operation, agent_collaboration, other)

否

knowledge_base: Knowledge base retrieval ; web_search: Web search ; web_fetch: Web page fetch ; code_execution: Code execution ; file_processing: File processing ; image_video_generation: ...

displayCopyByLocale

object

否

outputRenderTemplateByLocale

object

否

toolDisplayMode

object

否

groups

array[IdName]

否

Groups this tool is assigned to. Non-owner members must pick at least one group they belong to.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


列出工具

GET /api/v1/tools/

參數

參數名稱
必填
類型
說明

clientPlatform

❌

string

呼叫端平台。傳入 "desktop" 時會包含 desktop 類型工具,其餘值或未傳入則預設排除 desktop 工具

createdByMe

❌

boolean

「只看我建立的」:true(或 1)時只回目前登入者建立的項目,在既有可見範圍內再縮小;不帶、false 或其他值時與未加此條件相同。全域(平台提供)項目沒有建立者,開啟時不會出現。

isGlobal

❌

boolean

設定為 "true" 以獲取全域工具,否則獲取組織工具

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

toolType

❌

string

過濾工具類型:api, function, mcp, desktop

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定工具

GET /api/v1/tools/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


更新工具

PUT /api/v1/tools/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool.

請求內容

請求參數

欄位
類型
必填
說明

name

object

否

Tool name may only contain letters, digits, underscores (_) and hyphens (-). Not required for MCP tools; for API tools it is the tool name given to the LLM.

displayName

string

是

A name with any characters, used by users for configuration and management.

description

string

否

Tool description shown to users. Not required for MCP tools.

prompt

string

否

Tool description/prompt given to the LLM. If empty, the description field is used. Not required for MCP tools.

toolType

string (enum: api, function, mcp, desktop, flex, quick_reply, quick_menu)

否

api: API ; function: Function ; mcp: MCP ; desktop: Desktop ; flex: Flex Message ; quick_reply: Quick Reply ; quick_menu: Quick Menu;

apiUrl

string

否

httpMethod

object

否

rawHeaders

object

否

sensitiveHeaders

array[string]

否

rawQueryParams

object

否

Query string parameters appended to every request of this API tool. Values support the same {{variable}} template rendering as raw_headers. On key collision with LLM-generated arguments, these values ...

rawParametersSchema

object

否

functionCode

string

否

mcpUrl

string

否

mcpRegistry

string (uuid)

否

Registry backing this MCP tool. Null for manual-URL MCP tools.

mcpAllowedTools

object

否

rawMcpHeader

object

否

Default headers used when the Contact has no matching MCP Credential.

authSubject

object

否

Shared uses the tool level token plus per contact credentials; contact requires per contact authentication only; caller mints a short-lived token for the conversation-bound member (falls back to per c...

flexTemplateJson

object

否

FlexMessage JSON template. Required for FLEX_MESSAGE tools. Stores the full LINE FlexMessage JSON structure (bubble / carousel / box / text / image / button etc.).

flexSchema

object

否

AI dynamic field schema for FlexMessage. JSON object whose keys are field paths parsed from flex_template_json (e.g. text / image url / button label / button uri / button message). Each value may be e...

quickReplyConfig

object

否

Authoring config for QUICK_REPLY tools. Structured JSON describing the chip buttons: static list or dynamic (LLM-generated) mode, each field either a fixed value or an LLM prompt.

quickMenuConfig

object

否

Authoring config for QUICK_MENU tools. Structured JSON describing the persistent input-bar menu rendered by the web chat only: layout (grid / list), default open state, and 2-6 items each carrying a d...

category

string (enum: knowledge_base, web_search, web_fetch, code_execution, file_processing, image_video_generation, database_query, third_party_integration, browser_operation, agent_collaboration, other)

否

knowledge_base: Knowledge base retrieval ; web_search: Web search ; web_fetch: Web page fetch ; code_execution: Code execution ; file_processing: File processing ; image_video_generation: ...

displayCopyByLocale

object

否

outputRenderTemplateByLocale

object

否

toolDisplayMode

object

否

groups

array[IdName]

否

Groups this tool is assigned to. Non-owner members must pick at least one group they belong to.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


部分更新工具

PATCH /api/v1/tools/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool.

請求內容

請求參數

欄位
類型
必填
說明

name

object

否

Tool name may only contain letters, digits, underscores (_) and hyphens (-). Not required for MCP tools; for API tools it is the tool name given to the LLM.

displayName

string

否

A name with any characters, used by users for configuration and management.

description

string

否

Tool description shown to users. Not required for MCP tools.

prompt

string

否

Tool description/prompt given to the LLM. If empty, the description field is used. Not required for MCP tools.

toolType

string (enum: api, function, mcp, desktop, flex, quick_reply, quick_menu)

否

api: API ; function: Function ; mcp: MCP ; desktop: Desktop ; flex: Flex Message ; quick_reply: Quick Reply ; quick_menu: Quick Menu;

apiUrl

string

否

httpMethod

object

否

rawHeaders

object

否

sensitiveHeaders

array[string]

否

rawQueryParams

object

否

Query string parameters appended to every request of this API tool. Values support the same {{variable}} template rendering as raw_headers. On key collision with LLM-generated arguments, these values ...

rawParametersSchema

object

否

functionCode

string

否

mcpUrl

string

否

mcpRegistry

string (uuid)

否

Registry backing this MCP tool. Null for manual-URL MCP tools.

mcpAllowedTools

object

否

rawMcpHeader

object

否

Default headers used when the Contact has no matching MCP Credential.

authSubject

object

否

Shared uses the tool level token plus per contact credentials; contact requires per contact authentication only; caller mints a short-lived token for the conversation-bound member (falls back to per c...

flexTemplateJson

object

否

FlexMessage JSON template. Required for FLEX_MESSAGE tools. Stores the full LINE FlexMessage JSON structure (bubble / carousel / box / text / image / button etc.).

flexSchema

object

否

AI dynamic field schema for FlexMessage. JSON object whose keys are field paths parsed from flex_template_json (e.g. text / image url / button label / button uri / button message). Each value may be e...

quickReplyConfig

object

否

Authoring config for QUICK_REPLY tools. Structured JSON describing the chip buttons: static list or dynamic (LLM-generated) mode, each field either a fixed value or an LLM prompt.

quickMenuConfig

object

否

Authoring config for QUICK_MENU tools. Structured JSON describing the persistent input-bar menu rendered by the web chat only: layout (grid / list), default open state, and 2-6 items each carrying a d...

category

string (enum: knowledge_base, web_search, web_fetch, code_execution, file_processing, image_video_generation, database_query, third_party_integration, browser_operation, agent_collaboration, other)

否

knowledge_base: Knowledge base retrieval ; web_search: Web search ; web_fetch: Web page fetch ; code_execution: Code execution ; file_processing: File processing ; image_video_generation: ...

displayCopyByLocale

object

否

outputRenderTemplateByLocale

object

否

toolDisplayMode

object

否

groups

array[IdName]

否

Groups this tool is assigned to. Non-owner members must pick at least one group they belong to.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


刪除工具

DELETE /api/v1/tools/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool.

程式碼範例

回應內容

狀態碼
說明

204

No response body

4XX

Error response; X-Error-Code carries its code (see "Error codes").


列出可用工具

POST /api/v1/tools/available-tools/

請求內容

請求參數

欄位
類型
必填
說明

mcpUrl

string

是

MCP 伺服器 URL(必填)

rawMcpHeader

object

否

MCP Header(JSON 格式)

mcpAllowedTools

array[string]

否

MCP 允許使用的工具列表

toolId

string (uuid)

否

Tool ID for per-member OAuth token lookup

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400

回應結構範例

回應範例值


建立連接器

POST /api/v1/connectors/

請求內容

請求參數

欄位
類型
必填
說明

mcpRegistryId

string (uuid)

是

displayName

string

否

Custom display name for this connector (defaults to MCP Registry name)

description

string

否

Custom description for this connector (defaults to MCP Registry description)

defaultCategory

object

否

Org-level override of the MCP Registry default category for this connector's dynamic tools. Empty = use the MCP Registry default_category. knowledge_base: Knowledge base retrieval ; web_search: We...

defaultDisplayGroupNameByLocale

object

否

Locale-keyed server-level default group headline shown in chat for this connector's dynamic MCP tools (those without an individual Tool row). Shape: {"": str}. The headline for the conversatio...

defaultToolIcon

string

否

Server-level default icon identifier (a frontend icon key, not an uploaded image) for this connector's dynamic MCP tools. Empty = frontend uses its default MCP icon. Streamed as toolIcon.

authHeaders

object

否

allowedContextDataKeys

object

否

Allowlist of webchat contextData keys this connector may render into auth_headers through {{context_data.}}. An empty list disables the feature for this connector: the placeholder is left verbati...

exposedMcpTools

object

否

Allowlist of MCP tool names this connector exposes (to the agent and to SEP-1865 UI cards). Empty list = expose all of the server tools. Use this to limit a connector to a safe subset (e.g. read-only ...

isEnabled

boolean

否

Whether this connector is enabled for contacts in the organization

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值


列出連接器

GET /api/v1/connectors/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定連接器

GET /api/v1/connectors/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新連接器

PUT /api/v1/connectors/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

請求內容

請求參數

欄位
類型
必填
說明

mcpRegistryId

string (uuid)

是

displayName

string

否

Custom display name for this connector (defaults to MCP Registry name)

description

string

否

Custom description for this connector (defaults to MCP Registry description)

defaultCategory

object

否

Org-level override of the MCP Registry default category for this connector's dynamic tools. Empty = use the MCP Registry default_category. knowledge_base: Knowledge base retrieval ; web_search: We...

defaultDisplayGroupNameByLocale

object

否

Locale-keyed server-level default group headline shown in chat for this connector's dynamic MCP tools (those without an individual Tool row). Shape: {"": str}. The headline for the conversatio...

defaultToolIcon

string

否

Server-level default icon identifier (a frontend icon key, not an uploaded image) for this connector's dynamic MCP tools. Empty = frontend uses its default MCP icon. Streamed as toolIcon.

authHeaders

object

否

allowedContextDataKeys

object

否

Allowlist of webchat contextData keys this connector may render into auth_headers through {{context_data.}}. An empty list disables the feature for this connector: the placeholder is left verbati...

exposedMcpTools

object

否

Allowlist of MCP tool names this connector exposes (to the agent and to SEP-1865 UI cards). Empty list = expose all of the server tools. Use this to limit a connector to a safe subset (e.g. read-only ...

isEnabled

boolean

否

Whether this connector is enabled for contacts in the organization

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新連接器

PATCH /api/v1/connectors/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

請求內容

請求參數

欄位
類型
必填
說明

mcpRegistryId

string (uuid)

否

displayName

string

否

Custom display name for this connector (defaults to MCP Registry name)

description

string

否

Custom description for this connector (defaults to MCP Registry description)

defaultCategory

object

否

Org-level override of the MCP Registry default category for this connector's dynamic tools. Empty = use the MCP Registry default_category. knowledge_base: Knowledge base retrieval ; web_search: We...

defaultDisplayGroupNameByLocale

object

否

Locale-keyed server-level default group headline shown in chat for this connector's dynamic MCP tools (those without an individual Tool row). Shape: {"": str}. The headline for the conversatio...

defaultToolIcon

string

否

Server-level default icon identifier (a frontend icon key, not an uploaded image) for this connector's dynamic MCP tools. Empty = frontend uses its default MCP icon. Streamed as toolIcon.

authHeaders

object

否

allowedContextDataKeys

object

否

Allowlist of webchat contextData keys this connector may render into auth_headers through {{context_data.}}. An empty list disables the feature for this connector: the placeholder is left verbati...

exposedMcpTools

object

否

Allowlist of MCP tool names this connector exposes (to the agent and to SEP-1865 UI cards). Empty list = expose all of the server tools. Use this to limit a connector to a safe subset (e.g. read-only ...

isEnabled

boolean

否

Whether this connector is enabled for contacts in the organization

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除連接器

DELETE /api/v1/connectors/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼
說明

204

No response body


列出連接器授權成員

GET /api/v1/connectors/{id}/authorized-members/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


移除連接器授權成員

DELETE /api/v1/connectors/{id}/authorized-members/{memberId}/

參數

參數名稱
必填
類型
說明

id

✅

string

memberId

✅

string

程式碼範例

回應內容

狀態碼
說明

204

No response body


列出 MCP 工具登錄

GET /api/v1/mcp/registry/

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定 MCP 工具登錄

GET /api/v1/mcp/registry/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


列出組織自架的 MCP Server

GET /api/v1/mcp/private-registry/

需要連接器管理權限。接入方式見技術手冊自架 MCP Server。

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


新增自架 MCP Server

POST /api/v1/mcp/private-registry/

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

MCP service name (e.g., Supabase, Sentry). Only alphanumeric, underscore and hyphen allowed.

displayName

string

否

Human-readable display name (defaults to name if empty)

description

string

否

Brief description of the MCP service

remoteMcpUrl

string (uri)

是

The URL of the Remote MCP service

oauthServerUrl

object

否

Manual override for the OAuth authorization server URL. Leave empty to auto-discover from the MCP server (RFC 9728 protected resource metadata). Only fill in when auto-discovery fails or the server ad...

resourceIdentifier

object

否

Manual override for the OAuth resource identifier (RFC 9728 / RFC 8707). Leave empty to auto-discover from the MCP server's .well-known/oauth-protected-resource endpoint. Only fill in when auto-discov...

oauthClientId

string

否

Pre-registered OAuth client ID for MCP servers that do not support dynamic client registration (RFC 7591). Leave empty if the server supports dynamic registration.

oauthClientSecret

string

否

Pre-registered OAuth client secret. Required only if the MCP server requires a confidential client. Leave empty for public clients (token_endpoint_auth_method=none).

logoUrl

object

否

Logo: the uploaded storage object key (media/...) or an external URL; read back as a signed URL.

authType

object

否

How to authenticate with this MCP server. oauth: OAuth 2.0 ; service_account: Service Account ; none: No Authentication;

cspAllowedOrigins

object

否

Extra origins a SEP-1865 MCP App card from this server may load from (script-src/img-src/connect-src etc.), e.g. ['https://viewer.diagrams.net']. The sandboxed iframe denies all external origins by de...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 201

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定自架 MCP Server

GET /api/v1/mcp/private-registry/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this MCP Registry.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


部分更新自架 MCP Server

PATCH /api/v1/mcp/private-registry/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this MCP Registry.

請求內容

請求參數

欄位
類型
必填
說明

name

string

否

MCP service name (e.g., Supabase, Sentry). Only alphanumeric, underscore and hyphen allowed.

displayName

string

否

Human-readable display name (defaults to name if empty)

description

string

否

Brief description of the MCP service

remoteMcpUrl

string (uri)

否

The URL of the Remote MCP service

oauthServerUrl

object

否

Manual override for the OAuth authorization server URL. Leave empty to auto-discover from the MCP server (RFC 9728 protected resource metadata). Only fill in when auto-discovery fails or the server ad...

resourceIdentifier

object

否

Manual override for the OAuth resource identifier (RFC 9728 / RFC 8707). Leave empty to auto-discover from the MCP server's .well-known/oauth-protected-resource endpoint. Only fill in when auto-discov...

oauthClientId

string

否

Pre-registered OAuth client ID for MCP servers that do not support dynamic client registration (RFC 7591). Leave empty if the server supports dynamic registration.

oauthClientSecret

string

否

Pre-registered OAuth client secret. Required only if the MCP server requires a confidential client. Leave empty for public clients (token_endpoint_auth_method=none).

logoUrl

object

否

Logo: the uploaded storage object key (media/...) or an external URL; read back as a signed URL.

authType

object

否

How to authenticate with this MCP server. oauth: OAuth 2.0 ; service_account: Service Account ; none: No Authentication;

cspAllowedOrigins

object

否

Extra origins a SEP-1865 MCP App card from this server may load from (script-src/img-src/connect-src etc.), e.g. ['https://viewer.diagrams.net']. The sandboxed iframe denies all external origins by de...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


刪除自架 MCP Server

DELETE /api/v1/mcp/private-registry/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this MCP Registry.

程式碼範例

回應內容

狀態碼
說明

204

No response body

4XX

Error response; X-Error-Code carries its code (see "Error codes").


測試 MCP Server 連線

POST /api/v1/mcp/private-registry/test-connection/

請求內容

請求參數

欄位
類型
必填
說明

name

string

是

MCP service name (e.g., Supabase, Sentry). Only alphanumeric, underscore and hyphen allowed.

displayName

string

否

Human-readable display name (defaults to name if empty)

description

string

否

Brief description of the MCP service

remoteMcpUrl

string (uri)

是

The URL of the Remote MCP service

oauthServerUrl

object

否

Manual override for the OAuth authorization server URL. Leave empty to auto-discover from the MCP server (RFC 9728 protected resource metadata). Only fill in when auto-discovery fails or the server ad...

resourceIdentifier

object

否

Manual override for the OAuth resource identifier (RFC 9728 / RFC 8707). Leave empty to auto-discover from the MCP server's .well-known/oauth-protected-resource endpoint. Only fill in when auto-discov...

oauthClientId

string

否

Pre-registered OAuth client ID for MCP servers that do not support dynamic client registration (RFC 7591). Leave empty if the server supports dynamic registration.

oauthClientSecret

string

否

Pre-registered OAuth client secret. Required only if the MCP server requires a confidential client. Leave empty for public clients (token_endpoint_auth_method=none).

logoUrl

object

否

Logo: the uploaded storage object key (media/...) or an external URL; read back as a signed URL.

authType

object

否

How to authenticate with this MCP server. oauth: OAuth 2.0 ; service_account: Service Account ; none: No Authentication;

cspAllowedOrigins

object

否

Extra origins a SEP-1865 MCP App card from this server may load from (script-src/img-src/connect-src etc.), e.g. ['https://viewer.diagrams.net']. The sandboxed iframe denies all external origins by de...

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得工具執行紀錄列表

GET /api/v1/tool-execution-records/

參數

參數名稱
必填
類型
說明

chatbot

❌

string

通過 AI 助理 ID 過濾

endDate

❌

string

結束日期(包含當日),格式:YYYY-MM-DD

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

搜尋 AI 助理名稱、工具名稱、訊息內容

startDate

❌

string

開始日期(包含當日),格式:YYYY-MM-DD。後台路徑 /api/ 未帶 start_date 與 end_date 時只列最近 30 天;/api/v1/ 不設預設範圍

status

❌

string

通過執行狀態過濾:success, failure, pending, timeout

tool

❌

string

通過工具 ID 過濾

toolType

❌

string

通過工具類型過濾:api, function, mcp

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定工具執行紀錄

GET /api/v1/tool-execution-records/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool Execution Record.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得執行紀錄的 AI 助理過濾選項

GET /api/v1/tool-execution-records/chatbots/

參數

參數名稱
必填
類型
說明

chatbot

❌

string

endDate

❌

string

query

❌

string

startDate

❌

string

status

❌

string

`success`: Success ; `failure`: Failed ; `pending`: Processing ; `timeout`: Timeout;

tool

❌

string

toolType

❌

string

`api`: API ; `function`: Function ; `mcp`: MCP ; `desktop`: Desktop ; `flex`: Flex Message ; `quick_reply`: Quick Reply ; `quick_menu`: Quick Menu;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得執行紀錄的工具過濾選項

GET /api/v1/tool-execution-records/tools/

參數

參數名稱
必填
類型
說明

chatbot

❌

string

endDate

❌

string

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

startDate

❌

string

status

❌

string

`success`: Success ; `failure`: Failed ; `pending`: Processing ; `timeout`: Timeout;

tool

❌

string

toolType

❌

string

`api`: API ; `function`: Function ; `mcp`: MCP ; `desktop`: Desktop ; `flex`: Flex Message ; `quick_reply`: Quick Reply ; `quick_menu`: Quick Menu;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定工具的執行紀錄列表

GET /api/v1/tools/{toolPk}/tool-execution-records/

參數

參數名稱
必填
類型
說明

toolPk

✅

string

chatbot

❌

string

通過 AI 助理 ID 過濾

endDate

❌

string

結束日期(包含當日),格式:YYYY-MM-DD

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

搜尋 AI 助理名稱、工具名稱、訊息內容

startDate

❌

string

開始日期(包含當日),格式:YYYY-MM-DD。後台路徑 /api/ 未帶 start_date 與 end_date 時只列最近 30 天;/api/v1/ 不設預設範圍

status

❌

string

通過執行狀態過濾:success, failure, pending, timeout

tool

❌

string

通過工具 ID 過濾

toolType

❌

string

通過工具類型過濾:api, function, mcp

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定工具的特定執行紀錄

GET /api/v1/tools/{toolPk}/tool-execution-records/{id}/

參數

參數名稱
必填
類型
說明

id

✅

string

A UUID string identifying this Tool Execution Record.

toolPk

✅

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定工具執行紀錄的 AI 助理過濾選項

GET /api/v1/tools/{toolPk}/tool-execution-records/chatbots/

參數

參數名稱
必填
類型
說明

toolPk

✅

string

chatbot

❌

string

endDate

❌

string

query

❌

string

startDate

❌

string

status

❌

string

`success`: Success ; `failure`: Failed ; `pending`: Processing ; `timeout`: Timeout;

tool

❌

string

toolType

❌

string

`api`: API ; `function`: Function ; `mcp`: MCP ; `desktop`: Desktop ; `flex`: Flex Message ; `quick_reply`: Quick Reply ; `quick_menu`: Quick Menu;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


取得特定工具執行紀錄的工具過濾選項

GET /api/v1/tools/{toolPk}/tool-execution-records/tools/

參數

參數名稱
必填
類型
說明

toolPk

✅

string

chatbot

❌

string

endDate

❌

string

page

❌

integer

A page number within the paginated result set.

pageSize

❌

integer

Number of results to return per page.

query

❌

string

startDate

❌

string

status

❌

string

`success`: Success ; `failure`: Failed ; `pending`: Processing ; `timeout`: Timeout;

tool

❌

string

toolType

❌

string

`api`: API ; `function`: Function ; `mcp`: MCP ; `desktop`: Desktop ; `flex`: Flex Message ; `quick_reply`: Quick Reply ; `quick_menu`: Quick Menu;

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 4XX - Error response; X-Error-Code carries its code (see "Error codes").


最後更新於

這有幫助嗎?