Calls

List call sessions and dispatch outbound calls with the SDK.

List calls

Retrieve current and historical call sessions, including transcript snippets.

const calls = await voice.calls.get();
calls = client.calls()

Dispatch a call

Trigger an outbound call connecting a phone number to one of your agents.

const dispatch = await voice.calls.start("agt_8skd92ja", {
  phone: "+919876543210",
  name: "Priya Sharma",
});
dispatch = client.start_call(
    agent_id="agt_8skd92ja",
    phone="+919876543210",
    name="Priya Sharma",
)

Parameters

FieldTypeRequiredDescription
agentId / agent_idstringYesIdentifier of the agent that will run the call.
phonestringYesTarget phone number in E.164 format.
namestringYesCustomer name for personalized context.

On this page