Skip to content

List Agents

Basic example showing how to create a client and list agents.

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

1
2
3
4
5
// Create a client with your Retell AI API key.
using var client = new RetellAiClient(apiKey);

// List all agents in your account.
var agents = await client.ListAgentsAsync();