ListAssistantsWithPagination

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
using var api = GetAuthenticatedClient();

int count = 0;

ListAssistantsResponse response = await api.Assistants.ListAssistantsAsync();
foreach (AssistantObject assistant in response.Data)
{
    Console.WriteLine($"[{count,3}] {assistant.Id} {assistant.CreatedAt:s} {assistant.Name}");

    count++;

    //_ = await api.Assistants.DeleteAssistantAsync(assistant.Id);
}