---
title: "Poll Handoff Messages"
method: GET
path: "/api/v1/public/text-widget/sessions/{session_id}/messages/poll"
tags: ["text-widget-public"]
---

# Poll Handoff Messages

`GET /api/v1/public/text-widget/sessions/{session_id}/messages/poll`

Poll for new messages and the session's status.

Returns messages with sequence > after_sequence, the session status and the
handoff status. The widget polls during a human handoff to pick up agent
replies, and while idle to learn the chat was closed.

## Path parameters

- `session_id` string, uuid, required

## Query parameters

- `after_sequence` integer

## Headers

- `X-Session-Token` string, required

## Response `200`

Successful Response

- PollMessagesResponse — Response from the handoff message poll endpoint.
  - `messages` PollMessage[], required
    - `role` string, required
    - `content` string, nullable, required
    - `sequence` integer, required
    - `agent_name` string, nullable
  - `status` string, required
  - `handoff_status` string, nullable, required
  - `agent_name` string, nullable, required

## Other responses

- `422` — Validation Error

## Changes

> 29 revisions in range; 1 not diffed.

- **2026-09-19** `34f2d9e81b0b` — 1 info
  - added the required property `status` to the response with the `200` status
- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/public/text-widget/sessions/:session_id/messages/poll/get.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/5e355cddc083?raw)
