Get the last published version

​

The bot's last publication, answered like any other version.

A bot that has never published answers 404 — never the draft in its place.

Path Parameters

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/bots/{bot_id}/versions/latest
curl https://api.landbot.io/v0-alpha/bots/123e4567-e89b-12d3-a456-426614174000/versions/latest \
  --header 'Authorization: Token YOUR_AGENT_TOKEN'
{
  "data": {
    "version_id": "123e4567-e89b-12d3-a456-426614174000",
    "bot_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": null,
    "published_at": "2026-09-16T09:18:19",
    "published_by": {
      "id": 1,
      "name": "string"
    },
    "diagram": {
      "nodes": {
        "hidden": {
          "id": "hidden",
          "path": "hidden",
          "template": "hidden",
          "params": {}
        },
        "welcome": {
          "id": "welcome",
          "path": "welcome",
          "template": "var_text",
          "params": {
            "version": 3,
            "text": "Hi! What is your name?",
            "destination": "name"
          }
        }
      },
      "connections": {
        "hidden.success--welcome": {
          "id": "hidden.success--welcome",
          "type": "success",
          "sourcePath": "hidden",
          "targetPath": "welcome"
        }
      }
    },
    "channel_version": null
  }
}