Place an outbound call

Trigger a Paladin voice agent to call a phone number from the SDK

Use the SDK to place a test outbound call from a specific agent to a phone number. This is the same endpoint used by the Test Call button in the Paladin UI.

Prerequisites#

  • A Paladin API key exported as PALADIN_API_KEY
  • A published agent (you need the agent ID)
  • A configured telephony provider — see Telephony for Twilio, Vonage, and other setups

Place the call#

Python
from paladin_sdk import PaladinClient
from paladin_sdk._generated_models import InitiateCallRequest

with PaladinClient(api_key="YOUR_API_KEY") as client:
    client.test_phone_call(
        body=InitiateCallRequest(
            workflow_id=123,
            phone_number="+14155551234",
            telephony_configuration_id=42,
            from_phone_number_id=108,
        )
    )
TypeScript
import { PaladinClient } from "@paladin/sdk";

const client = new PaladinClient({ apiKey: "YOUR_API_KEY" });

await client.testPhoneCall({
    body: {
        workflow_id: 123,
        phone_number: "+14155551234",
        telephony_configuration_id: 42,
        from_phone_number_id: 108,
    },
});

Choose the outbound caller number#

telephony_configuration_id selects the telephony configuration, while from_phone_number_id selects one exact active caller ID attached to that configuration. Use the Paladin phone-number record id, not the phone-number text. For SDK test calls, provide both fields when selecting an exact caller ID. If from_phone_number_id is omitted, the provider uses its configured caller-ID selection behavior.

You can retrieve valid ids through the List Phone Numbers endpoint.

Inspect the run#

Every call creates a run you can inspect afterwards. See Calls & runs for what's tracked, or use the Runs API to list and fetch runs programmatically.

Bulk campaigns#

For placing many calls at once (say, from a CSV), use Campaigns rather than looping over test_phone_call — campaigns handle pacing, retries, and progress tracking.

Before placing calls#

  • Confirm the agent is published and tested with the same prompt, model, transcriber, and voice settings you expect to use.
  • Confirm the destination number is formatted with country code and that your telephony provider is configured for outbound calling.
  • Use small test batches before automating high-volume outbound workflows.

After the call#

Every call creates a run record. Inspect the run status, transcript, recording, gathered context, and cost information before relying on the workflow in production.