Skip to main content

aiPreferencesGetReasoningLevel

AiReasoningLevel aiPreferencesGetReasoningLevel(entityId)

GET /api/2.0/ai/preferences/get-reasoning-level

Get reasoning level

Returns the effective extended-thinking depth of the scope: off while deep mode is off, otherwise the persisted depth (low, medium, high, max), falling back to the default depth (medium) when none has been stored. entityId picks a room and omitting it reads the portal-wide preference. Providers clamp the depth to what the model accepts.

Parameters​

NameInTypeDescriptionNotes
entityIdqueryStringThe DocSpace entity the request is scoped to - the room, folder or agent workspace the chat is invoked from. Omit for the portal-wide scope.[optional] [example: 1234]

Responses​

Status codeDescriptionTypeResponse headers
200Success.AiReasoningLevel-
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​

AiReasoningLevel

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

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