---
title: "Poll New Messages"
method: GET
path: "/chatbots/{chatbot_id}/conversations/{conversation_id}/messages"
tags: ["Chatbot Messages"]
---

# Poll New Messages

`GET /chatbots/{chatbot_id}/conversations/{conversation_id}/messages`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/chatbots/{chatbot_id}/conversations/{conversation_id}/messages`
- Auth: HTTP bearer

Poll for new messages in a conversation (typically used while waiting
for or chatting with a human agent). Returns only messages with id
greater than `after_id`, plus the current conversation state.

Recommended polling interval: 3-5 seconds while a chat is active.

## Query parameters

- `after_id` integer: Optional. Return only messages with id greater than this.

## Request body

- object
  - `after_id` integer, nullable: Must be at least 0.

## Response `200`

- object
  - `conversation_id` string
  - `mode` string
  - `waiting_for_agent` boolean
  - `agent` object
    - `name` string
  - `is_closed` boolean
  - `messages` object[]
    - `id` integer
    - `role` string
    - `sender_name` string
    - `content` string
    - `created_at` string
  - `last_message_id` integer

---

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