Skip to content

List Bots

Example showing how to list bots in a workspace using the Admin API.

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

1
2
3
4
5
6
7
// Create a Botpress client and list bots in the workspace
using var client = new BotpressClient(apiKey);
var workspaceId = GetWorkspaceId();

// List all bots in the workspace
await client.Admin.AdminListBotsAsync(
    xWorkspaceId: workspaceId);