v1.0.0
OpenAPI 3.1.1
Landbot Channels
Where a bot is reached and what it looks like: the page a visitor opens, its design, its CSS and its images. Also the configuration you need to talk to a bot you have deployed for testing.
Four things to know before you start.
-
A channel has two ids. The Bots API gives you a uuid. The design operations want an
integer.
GET /v2/channels/gives you both, so start there. -
This API answers differently from the Bots API. Versions are per path. A good answer is
{"success": true, "channel": {...}}, not adataenvelope. A body it cannot read is a422with anerrorsobject, not a400— and a403on a/v1/path is keyederrorstoo, where the/v2/ones usedetail. - Every path ends in a slash. Leave it off and you get a redirect.
-
A design write goes to the live channel. Visitors see it straight away, and it is copied
to the test channel. Send
autosave: trueto write only the test copy.
Client Libraries