Versions
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.
get/bots/{bot_id}/versions/latest
Request
- Base URL: https://api.landbot.io/v0-alpha
- URL: https://api.landbot.io/v0-alpha/bots/{bot_id}/versions/latest
- Auth: one of:
- API key in header Authorization
- API key in cookie sessionid
- HTTP bearer
Response
The last published version
Example response
{
"data": {
"published_at": "2026-09-16T09:18:19",
"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"
}
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.