Skip to main content
POST
/
v1
/
Accounts
/
{account_sid}
/
Calls
Create call (version 3)
curl --request POST \
  --url https://api.example.com/v1/Accounts/{account_sid}/Calls \
  --header 'Content-Type: application/json' \
  --data '
{
  "call_hook": "https://public-apps.dev.voxeme.com/hello-world",
  "call_status_hook": "https://public-apps.dev.voxeme.com/call-status",
  "from": "15083778299",
  "speech_recognizer_vendor": "Google",
  "speech_synthesis_language": "en-US",
  "speech_synthesis_vendor": "google",
  "speech_synthesis_voice": "Wavenet-A",
  "to": {
    "number": "15089084809",
    "type": "phone"
  }
}
'
{
  "callId": "fb1893f3-b547-123c-1c99-0e24c2fb464d",
  "sid": "a4941f23-66b8-4b52-b495-94192adee7ec"
}

Path Parameters

account_sid
string
required
Example:

"5f8e8f60-4771-44cb-92a6-94ea66df0450"

Body

application/json
call_hook
string
Example:

"https://public-apps.dev.voxeme.com/hello-world"

call_status_hook
string
Example:

"https://public-apps.dev.voxeme.com/call-status"

from
string
Example:

"15083778299"

speech_recognizer_vendor
string
Example:

"Google"

speech_synthesis_language
string
Example:

"en-US"

speech_synthesis_vendor
string
Example:

"google"

speech_synthesis_voice
string
Example:

"Wavenet-A"

to
object

Response

201 - application/json

Create call (version 3)

callId
string
Example:

"fb1893f3-b547-123c-1c99-0e24c2fb464d"

sid
string
Example:

"a4941f23-66b8-4b52-b495-94192adee7ec"