POST v1/Calling/InitiateCall

Initiates a phone call.

Request Information

URI Parameters

None.

Body Parameters

The call request.

InitiatePhoneCall
NameDescriptionTypeAdditional information
TwilioAccountName

string

None.

UserPhoneNumber

string

None.

UserPhoneExtension

string

None.

NumberToDial

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TwilioAccountName": "sample string 1",
  "UserPhoneNumber": "sample string 2",
  "UserPhoneExtension": "sample string 3",
  "NumberToDial": "sample string 4"
}

application/xml, text/xml

Sample:
<TwilioCallRoutingModel.InitiatePhoneCall xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.Messaging">
  <NumberToDial>sample string 4</NumberToDial>
  <TwilioAccountName>sample string 1</TwilioAccountName>
  <UserPhoneExtension>sample string 3</UserPhoneExtension>
  <UserPhoneNumber>sample string 2</UserPhoneNumber>
</TwilioCallRoutingModel.InitiatePhoneCall>

Response Information

Resource Description

TwilioCall
NameDescriptionTypeAdditional information
AccountSid

string

None.

AnsweredBy

string

None.

CallerName

string

None.

DateCreated

date

None.

DateUpdated

date

None.

Direction

string

None.

Duration

integer

None.

EndTime

date

None.

ForwardedFrom

string

None.

From

string

None.

ParentCallSid

string

None.

PhoneNumberSid

string

None.

Price

decimal number

None.

Sid

string

None.

StartTime

date

None.

Status

string

None.

To

string

None.

Errors

Collection of Exception

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountSid": "sample string 1",
  "AnsweredBy": "sample string 2",
  "CallerName": "sample string 3",
  "DateCreated": "2021-07-31T05:20:43.3090725-07:00",
  "DateUpdated": "2021-07-31T05:20:43.3090725-07:00",
  "Direction": "sample string 6",
  "Duration": 1,
  "EndTime": "2021-07-31T05:20:43.3090725-07:00",
  "ForwardedFrom": "sample string 7",
  "From": "sample string 8",
  "ParentCallSid": "sample string 9",
  "PhoneNumberSid": "sample string 10",
  "Price": 1.0,
  "Sid": "sample string 11",
  "StartTime": "2021-07-31T05:20:43.3090725-07:00",
  "Status": "sample string 12",
  "To": "sample string 13",
  "Errors": [
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    },
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    }
  ],
  "IsSuccess": true
}

application/xml, text/xml

Sample:
<TwilioCall xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.Messaging">
  <Errors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
  </Errors>
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">true</IsSuccess>
  <AccountSid>sample string 1</AccountSid>
  <AnsweredBy>sample string 2</AnsweredBy>
  <CallerName>sample string 3</CallerName>
  <DateCreated>2021-07-31T05:20:43.3090725-07:00</DateCreated>
  <DateUpdated>2021-07-31T05:20:43.3090725-07:00</DateUpdated>
  <Direction>sample string 6</Direction>
  <Duration>1</Duration>
  <EndTime>2021-07-31T05:20:43.3090725-07:00</EndTime>
  <ForwardedFrom>sample string 7</ForwardedFrom>
  <From>sample string 8</From>
  <ParentCallSid>sample string 9</ParentCallSid>
  <PhoneNumberSid>sample string 10</PhoneNumberSid>
  <Price>1</Price>
  <Sid>sample string 11</Sid>
  <StartTime>2021-07-31T05:20:43.3090725-07:00</StartTime>
  <Status>sample string 12</Status>
  <To>sample string 13</To>
</TwilioCall>