Create a Call
Create a call.
Permissions
The API token must include the following scopes: Voice.
Path Parameters |
---|
AccountSid uuid — REQUIREDThe Project ID that uniquely identifies the Account to retrieve. |
Request Body — REQUIRED |
---|
Url stringThe URL to handle the call. This parameter allows you to specify a webhook or different route in your code containing XML instructions for how to handle the call. This is required if |
ApplicationSid uuidThe unique identifier of the application used to handle the call. Applications can be created within your portal or via the |
From stringThe address that initiated the call. Can be either a E.164 formatted number ( |
To stringThe address that received the call. Can be either a E.164 formatted number ( |
CallerId stringThe number, in E.164 format, or identifier of the caller. |
FallbackMethod stringPossible values: [ Whether the request to |
FallbackUrl stringThe URL SignalWire will request if errors occur when fetching the |
MachineDetection stringPossible values: [ Whether a human or machine picked up the call. Possible values are |
AsyncAmd booleanWhether or not to execute machine detection asynchronously. Possible values are |
AsyncAmdStatusCallback stringThe URL to request when the machine detection is completed. This parameter is ignored if |
AsyncAmdStatusCallbackMethod stringPossible values: [ Whether the request to |
AsyncAmdPartialResults booleanWhether or not to report partial (interim) results to the callback url. Possible values are |
MachineDetectionSilenceTimeout numberNumber of milliseconds to wait for initial voice before giving up. Must be at least |
MachineDetectionSpeechThreshold numberHow many milliseconds of voice to decide it is a machine. Must be at least |
MachineDetectionSpeechEndThreshold numberNumber of milliseconds to wait for voice to finish. Must be at least |
MachineDetectionTimeout numberThe time SignalWire will wait for machine detection before timing out. Default is |
MachineWordsThreshold numberHow many words to count to decide it is a machine. Must be at least one to a maximum of |
MaxPricePerMinute numberThe maximum price in USD acceptable for the call to be created. If the rate for the call is greater than this value, the call will not be created. If not set, all calls will be created. Price can have a maximum of four decimal places, i.e. 0.0075. |
Method stringPossible values: [ Whether the request to |
Record booleanWhether or not to record a call. Possible values are |
RecordingChannels stringThe number of channels in the recording. Can be |
RecordingStatusCallback stringThe URL to request to when recording is available. See here for the list of parameters passed back to your endpoint. |
RecordingStatusCallbackMethod stringPossible values: [ Whether the request to |
RecordingTrack stringSpecifies whether to record the |
SipAuthUsername stringThe username to authenticate the caller when making an outbound SIP call. |
SipAuthPassword stringThe password to authenticate the caller when making an outbound SIP call. |
SendDigits stringThe digits to press after a call is connected. Possible values are |
StatusCallback stringThe URL SignalWire will send webhooks to on every requested |
StatusCallbackEvent string[]Possible values: [ The status events that trigger a SignalWire webhook. Possible values are |
StatusCallbackMethod stringPossible values: [ Whether the request to |
Timeout stringThe time SignalWire will wait before assuming the call has no answer. Max wait time is |
Trim stringPossible values: [ Whether leading and trailing silence is trimmed from a recording. Possible values are |
Responses | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 OK
| |||||||||||||||||||||||||||
400 Error. Call not created.
|