start_outbound_call() to dial any phone number and connect it to your agent.
Basic Call
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | ID of your agent (from dashboard) |
phoneNumber | string | Yes | E.164 format phone number |
Phone numbers must be in E.164 format:
+[country code][number]Examples: +14155551234 (US), +919876543210 (India)Response
| Field | Type | Description |
|---|---|---|
conversation_id | string | Unique ID to track this call |
Error Handling
Tips
Validate phone numbers first
Validate phone numbers first
Use a library like
phonenumbers to validate before calling. Invalid numbers waste API calls.Add delays between calls
Add delays between calls
Wait 5-10 seconds between calls to avoid rate limits.
Store conversation IDs
Store conversation IDs
Save them in your database to retrieve transcripts later.
Handle errors gracefully
Handle errors gracefully
Wrap calls in try/except and log failures for retry.

