chat
base path (api.botpress.cloud/v1/chat/
).
The Runtime API has many nuances that aren’t relevant to bot developers—because of this, we recommend only making your requests using the official Botpress TypeScript Client, which simplifies some of the API’s trickier aspects.If you decide to interact with the Runtime API using another HTTP client, you may experience unintended behaviour or encounter issues.
Using the Official TypeScript Client
The official TypeScript client is available as an NPM package. You can install it using any of the following command:This example uses
dotenv
to manage Botpress credentials. If you’d rather manage your credentials differently, just remove the import and define your token and bot ID however you like.