Creating and updating bot from external node app

I have an external node app and I want to create bot and update it externally through node app, how it is possible?

Hey @dev!

You can use the Botpress HTTP API in order to achieve this.

The API is not documented, but you can reverse-engineer its requirements by looking at the Botpress code or inspecting the HTTP requests that are sent from your browser to Botpress.

For example, here is the API endpoint that is used to create bots.

Hope this helps!

Ok, That might help but can u tell me how can I get the authentication token?

You can get an authentication token by sending a POST request to /api/v1/auth/login/basic/default with the following JSON payload for the body:

	"email": "your username",
	"password": "your password"