List a test conversation's messages

​

Served only where test conversations are switched on.

What the conversation has said, oldest first. The bot answers a reply asynchronously, so poll this, passing after with the last id you have read to get only what is new.

On a web bot: the greeting the web chat paints when it opens, then every message the visitor and the bot wrote. The greeting is read from the test channel's configuration, as the web chat reads it, and its messages are named welcome-0, welcome-1 and so on. Everything else is read from the store the web chat listens to. Hidden messages (scripts and signals) and notes are left out. meta.conversation_ended turns true once the flow ran out of blocks to go to, such as after a goodbye block, and false again once the visitor writes, since that starts the flow over.

On a WhatsApp bot: every message of the chat between the testing channel and the visitor's number, from the testing template the last start sent onward, read from the same store as a web bot's and named by the ids they are stored with. There is no greeting: the testing template (template) opens it. The bot's messages read as the runtime sent them (text, dialog, whatsapp_list, a file with its url, ...), buttons and a list's rows alike as buttons (rows with their id as payload), there to read only: they cannot be tapped. Hidden messages and notes are left out, and meta.conversation_ended reads as on a web bot. Scope bots:read.

Path Parameters

  • The test conversation, as starting one answered it.

Query Parameters

  • The id of a message already read, to answer only the ones after it. An id the conversation does not hold answers no messages: the one just sent is stored a moment after it is answered, so keep polling until it shows up, and pass ids whole.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/bots/{bot_id}/test/conversations/{conversation_id}/messages
curl https://api.landbot.io/v0-alpha/bots/123e4567-e89b-12d3-a456-426614174000/test/conversations/123e4567-e89b-12d3-a456-426614174000/messages \
  --header 'Authorization: Token YOUR_AGENT_TOKEN'
{
  "data": [
    {
      "id": "string",
      "author": "bot",
      "type": "dialog",
      "text": null,
      "buttons": [
        {
          "text": "Yes, please",
          "payload": "$0"
        }
      ],
      "url": null,
      "created_at": "2026-09-16T09:18:19"
    }
  ],
  "meta": {
    "conversation_ended": true
  }
}