GenAiConfig

Returns the resolved configuration for one `(accountId, departmentId)` pair. 404 when the brand has no row — deliberately not a 200 carrying `enabled: false`. The caller treats 404 as "disabled, cache the negative", which is cheaper and unambiguous. A row that was explicitly switched off does return 200 with `enabled: false`.

Changed on
get/api/genai/config

Request

Query parameters

accountIdinteger

Tenant id. Required, > 0.

departmentIdinteger

Brand id. Required, > 0 — there is no account-level row and no brand fallback, so a 0 here has no meaning and is rejected rather than widened.

roomIdinteger

Response

OK

accountIdinteger
departmentIdinteger
enabledboolean
aiBotIdinteger nullable
maxResponseTokensinteger
idleWarningMinutesinteger
idleCloseMinutesinteger
selectedDeskIdsstring[] nullable
botDisplayNamestring nullable

Changes

    • info

      added the new optional query request parameter roomId

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)