Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections
POST
/2010-04-01/Accounts/{AccountSid}/Calls.json https://api.twilio.com
Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections
Parameters
path Path Parameters
| Name | Type |
|---|---|
AccountSid
required
The SID of the Account that will create the resource. | `AC${string}` |
Request Body
application/x-www-form-urlencoded
{
To: string;
From: string;
Method?: "GET" | "POST";
FallbackUrl?: string;
FallbackMethod?: "GET" | "POST";
StatusCallback?: string;
StatusCallbackEvent?: string[];
StatusCallbackMethod?: "GET" | "POST";
SendDigits?: string;
Timeout?: number;
Record?: boolean;
RecordingChannels?: string;
RecordingStatusCallback?: string;
RecordingStatusCallbackMethod?: "GET" | "POST";
SipAuthUsername?: string;
SipAuthPassword?: string;
MachineDetection?: string;
MachineDetectionTimeout?: number;
RecordingStatusCallbackEvent?: string[];
Trim?: string;
CallerId?: string;
MachineDetectionSpeechThreshold?: number;
MachineDetectionSpeechEndThreshold?: number;
MachineDetectionSilenceTimeout?: number;
AsyncAmd?: string;
AsyncAmdStatusCallback?: string;
AsyncAmdStatusCallbackMethod?: "GET" | "POST";
Byoc?: `BY${string}`;
CallReason?: string;
CallToken?: string;
RecordingTrack?: string;
TimeLimit?: number;
Url?: string;
Twiml?: string;
ApplicationSid?: `AP${string}`;
}
To: string;
From: string;
Method?: "GET" | "POST";
FallbackUrl?: string;
FallbackMethod?: "GET" | "POST";
StatusCallback?: string;
StatusCallbackEvent?: string[];
StatusCallbackMethod?: "GET" | "POST";
SendDigits?: string;
Timeout?: number;
Record?: boolean;
RecordingChannels?: string;
RecordingStatusCallback?: string;
RecordingStatusCallbackMethod?: "GET" | "POST";
SipAuthUsername?: string;
SipAuthPassword?: string;
MachineDetection?: string;
MachineDetectionTimeout?: number;
RecordingStatusCallbackEvent?: string[];
Trim?: string;
CallerId?: string;
MachineDetectionSpeechThreshold?: number;
MachineDetectionSpeechEndThreshold?: number;
MachineDetectionSilenceTimeout?: number;
AsyncAmd?: string;
AsyncAmdStatusCallback?: string;
AsyncAmdStatusCallbackMethod?: "GET" | "POST";
Byoc?: `BY${string}`;
CallReason?: string;
CallToken?: string;
RecordingTrack?: string;
TimeLimit?: number;
Url?: string;
Twiml?: string;
ApplicationSid?: `AP${string}`;
}
Responses
201 application/json
Created
interface ApiV2010AccountCall {
sid?: `CA${string}` | null;
date_created?: string | null;
date_updated?: string | null;
parent_call_sid?: `CA${string}` | null;
account_sid?: `AC${string}` | null;
to?: string | null;
to_formatted?: string | null;
from?: string | null;
from_formatted?: string | null;
phone_number_sid?: `PN${string}` | null;
status?:CallEnumStatus ;
start_time?: string | null;
end_time?: string | null;
duration?: string | null;
price?: string | null;
price_unit?: string | null;
direction?: string | null;
answered_by?: string | null;
api_version?: string | null;
forwarded_from?: string | null;
group_sid?: `GP${string}` | null;
caller_name?: string | null;
queue_time?: string | null;
trunk_sid?: `TK${string}` | null;
uri?: string | null;
subresource_uris?: {} | null;
}
sid?: `CA${string}` | null;
date_created?: string | null;
date_updated?: string | null;
parent_call_sid?: `CA${string}` | null;
account_sid?: `AC${string}` | null;
to?: string | null;
to_formatted?: string | null;
from?: string | null;
from_formatted?: string | null;
phone_number_sid?: `PN${string}` | null;
status?:
start_time?: string | null;
end_time?: string | null;
duration?: string | null;
price?: string | null;
price_unit?: string | null;
direction?: string | null;
answered_by?: string | null;
api_version?: string | null;
forwarded_from?: string | null;
group_sid?: `GP${string}` | null;
caller_name?: string | null;
queue_time?: string | null;
trunk_sid?: `TK${string}` | null;
uri?: string | null;
subresource_uris?: {} | null;
}