Skip to content

Getting Started

Basic example showing how to create a client and authenticate with the Botpress API.

This example assumes using Botpress; is in scope and apiKey contains your Botpress API key.

1
2
3
4
5
6
7
8
// Create a Botpress client with your Personal Access Token (PAT)
using var client = new BotpressClient(apiKey);

// The client provides access to Admin, Chat, Files, Runtime, and Tables sub-clients
var admin = client.Admin;
var runtime = client.Runtime;
var files = client.Files;
var tables = client.Tables;