Getting Started
The Runtime API is designed for bots and integrations to handle messages, events, actions, and webhook requests at runtime. Each request made to this API is authenticated as either a bot or an integration. It can also be accessed externally by providing a bot or integration Id—though doing so effectively authenticates the request as a bot or integration.
All the endpoints of the Runtime API are located behind the chat
base path (api.botpress.cloud/v1/chat/).
Using cURL
Calling the runtime API can be done using any HTTP client, such as curl
, axios
, or fetch
. Here’s an example using curl
:
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:
Once installed, you can import the client and use it in your TypeScript code:
Next Steps
Now that you’ve successfully made your first request, you can explore other API endpoints and concepts. Here are a few things you can do next:
Was this page helpful?