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 code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The calling user's tool permission mode, as { mode }. | AiSuccessResponse | - |
| 401 | Missing asc_auth_key cookie or Authorization header. | AiErrorResponse | - |
| 403 | AI 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 | - |
| 500 | Unhandled failure. The reason is logged server-side and never echoed back. | AiErrorResponse | - |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json