跳到主要内容

aiSettingsGetToolMode

AiSuccessResponse aiSettingsGetToolMode()

GET /api/2.0/ai/config/tool-mode

Get the tool permission mode

Returns the calling user's tool permission mode as the DocSpace AI service spells it - { mode } with the service's ToolPermissionMode enum (Ask, Auto, Allow), proxied unchanged. The chat reads the same value in its own spelling through GET api/2.0/ai/preferences/get-tool-permission-mode. This is a read-only operation.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200The calling user's tool permission mode, as { mode }.AiSuccessResponse-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API.AiErrorResponse-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

AiSuccessResponse

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json