create_outbound_call
Place an outbound call. THIS ACTUALLY DIALS REAL PHONES.
Instructions
Place an outbound call. THIS ACTUALLY DIALS REAL PHONES.
CallRail dials business_phone_number FIRST; once that leg is
answered it dials customer_phone_number and bridges the two. Both
legs cost minutes against your bundle. Misuse can constitute unlawful
telemarketing, so verify consent.
US and Canadian numbers only (CallRail does not support outbound to the UK or Australia via this endpoint).
You must pass confirm_dialing=True to actually place the call.
Args:
caller_id: The number shown to the recipient. Must be one of your
CallRail tracking numbers or a verified Outbound Caller ID.
E.164 format.
business_phone_number: The FIRST leg CallRail dials (your agent's
phone). E.164 format.
customer_phone_number: The SECOND leg, bridged in once the
business leg answers. E.164 format.
confirm_dialing: REQUIRED. Set True to actually dial. Returns an
error envelope if False (default).
recording_enabled: Record this call.
outbound_greeting_text: Text-to-speech greeting played to the
customer.
outbound_greeting_recording_url: Public URL of an audio greeting,
used instead of outbound_greeting_text.
account_id: Auto-resolves if omitted.
Returns: The call object CallRail creates (id, etc.).
NOTE (v1.2.0): earlier versions sent {"from", "to"}, which are not
fields CallRail accepts, so every call failed. The parameter names
above match the documented request body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caller_id | Yes | ||
| account_id | No | ||
| confirm_dialing | No | ||
| recording_enabled | No | ||
| business_phone_number | Yes | ||
| customer_phone_number | Yes | ||
| outbound_greeting_text | No | ||
| outbound_greeting_recording_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |