Skip to main content

Vobiz C# SDK — Usage Sheet

Common operations. Full reference: reference.md. All snippets assume:
using Vobiz;

var client = new VobizApiClient("YOUR_AUTH_TOKEN", "YOUR_AUTH_ID");
const string authId = "YOUR_AUTH_ID";
All methods are asynchronous and return a Task.

Calls

await client.Calls.MakeCallAsync(new MakeCallRequest {
    AuthId = authId, From = "14155551234", To = "+919876543210",
    AnswerUrl = "https://example.com/answer", AnswerMethod = "POST",
});

await client.LiveCalls.ListLiveCallsAsync(...);   // in-progress calls
await client.LiveCalls.GetLiveCallAsync(...);      // one live call
await client.LiveCalls.HangupCallAsync(...);       // hang up

In-call actions

await client.PlayAudio.CallAsync(...);
await client.SpeakText.CallAsync(...);
await client.Dtmf.SendDtmfAsync(...);
await client.RecordCalls.StartRecordingAsync(...);
await client.RecordCalls.StopRecordingAsync(...);

CDRs & Recordings

await client.Cdr.ListCdrsAsync(...);
await client.Cdr.SearchCdrsAsync(...);
await client.Cdr.GetCdrAsync(...);
await client.Recordings.ListRecordingsAsync(...);
await client.Recordings.GetRecordingAsync(...);

Phone Numbers

await client.PhoneNumbers.ListNumbersAsync(...);
await client.PhoneNumbers.ListInventoryNumbersAsync(...);
await client.PhoneNumbers.PurchaseFromInventoryAsync(...);
await client.PhoneNumbers.AssignNumberToTrunkAsync(...);

Applications, Trunks, Endpoints

await client.Applications.ListApplicationsAsync(...);
await client.Applications.CreateApplicationAsync(...);
await client.Trunks.ListTrunksAsync(...);
await client.Endpoints.ListEndpointsAsync(...);

Conferences

await client.Conferences.ListConferencesAsync(...);
await client.ConferenceMembers.MuteMemberAsync(...);
await client.Conference.KickMemberAsync(...);

Account & Balance

await client.Account.RetrieveAccountAsync();
await client.Balance.GetBalanceAsync(...);
await client.Balance.ListTransactionsAsync(...);
Exact request fields per method are in reference.md and at https://docs.vobiz.ai.