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
| Field | Type | Required | Description |
|---|---|---|---|
agentId / agent_id | string | Yes | Identifier of the agent that will run the call. |
phone | string | Yes | Target phone number in E.164 format. |
name | string | Yes | Customer name for personalized context. |