How to call any BB Api method?
With BB Api we can make:
- command creation and destroying
- lib installaion
- and etc - we can do all App's things
How to find Api method?
We have api docs. It is very old and not updated.
But we can see all Api methods via browser:
- open app.bots.business
- press F12 - Dev tools will be opened
- press "Network" > Fetch / XHR

- perform any action. For example - create any command:
You will have:

Request url will be:
https://appapi.bots.business/v1/bots/YOU_BOT_ID/commands
you neeed to change "appapi" to "api":
https://api.bots.business/v1/bots/YOU_BOT_ID/commands
and you need to pass your API key:
https://api.bots.business/v1/bots/YOU_BOT_ID/commands?api_key=YOUR_API_KEY
Request method: POST
And fields (for POST method) you can see in Payload:

So in BJS for command creation we need:
HTTP.post( {
url: "https://api.bots.business/v1/bots/YOU_BOT_ID/commands?api_key=YOUR_API_KEY",
success: '/oncommandCreation ',
body: { command: "MyCommand" }
} )