---
title: "Poll for pending AI question"
method: GET
path: "/v1/ai/chat/{chat-id}/question"
tags: ["AI Chat"]
---

# Poll for pending AI question

`GET /v1/ai/chat/{chat-id}/question`

Check if the AI assistant has a pending question that needs user input.

## Path parameters

- `chat-id` integer, required

## Response `200`

Question status retrieved

- object
  - `question` PendingQuestion — Question raised by the AI assistant and awaiting an answer from the user
    - `id` integer — Unique question identifier, to be sent back when answering
    - `type` 'confirmation' | 'multipleChoice' — Question type
    - `confirmationType` integer — Button labels to present for a confirmation question (0=approve/reject, 1=yes/no, 2=confirm/cancel)
    - `text` string — Question text to present to the user
    - `context` string — Additional context for the question (empty string if not provided)
    - `expiresAt` integer — Time when the question expires, as UNIX timestamp
    - `options` string[] — Available answer options (present only for multipleChoice questions)

## Other responses

- `400` — Invalid chat ID
- `401` — Unauthorized
- `403` — Access denied
- `404` — Chat session not found

## Changes

- **2026-09-17** `a203de7e5d7d` — 1 info
  - removed the non-success response with the status `503`
- **2026-09-17** `a81265c49fa9` — 1 info
  - added the non-success response with the status `503`
- **2026-09-04** `4e1f9580c5b0` — 1 breaking, 1 info
  - the `question` response's property type changed from no type to `object` for status `200`
  - added `#/components/schemas/PendingQuestion` to the `question` response property `allOf` list for the response status `200`

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/ai/chat/:chat-id/question/get.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/netxms/apis/netxms-api/revisions/2827204d68d9?raw)
