Skip to content

Account

Retrieve account details and billing information.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
using var client = new BlandAIClient(apiKey);

// Retrieve your Bland AI account details including status,
// billing information, and total call count.
var account = await client.Account.GetAccountDetailsAsync();

Console.WriteLine($"Account status: {account.Status}");
Console.WriteLine($"Total calls: {account.TotalCalls}");

if (account.Billing is not null)
{
    Console.WriteLine($"Billing info available: yes");
}