GET v1/SMS/GetTwilioSubAccount?twilioAccountName={twilioAccountName}

Gets the name of the twilio sub account from twilio account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
twilioAccountName

Name of the twilio account.

string

Required

Body Parameters

None.

Response Information

Resource Description

Account
NameDescriptionTypeAdditional information
Sid

string

None.

DateCreated

date

None.

DateUpdated

date

None.

FriendlyName

string

None.

Status

string

None.

AuthToken

string

None.

RestException

RestException

None.

Uri

URI

None.

Errors

Collection of Exception

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Sid": "sample string 1",
  "DateCreated": "2021-10-18T10:24:39.3458694-07:00",
  "DateUpdated": "2021-10-18T10:24:39.3458694-07:00",
  "FriendlyName": "sample string 4",
  "Status": "sample string 5",
  "AuthToken": "sample string 6",
  "RestException": {
    "Status": "sample string 1",
    "MoreInfo": "sample string 2",
    "Code": "sample string 3",
    "Message": "sample string 4"
  },
  "Uri": "http://webapihelppage7.com",
  "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:
<TwilioModels.Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.TwilioModels">
  <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>
  <AuthToken>sample string 6</AuthToken>
  <DateCreated>2021-10-18T10:24:39.3458694-07:00</DateCreated>
  <DateUpdated>2021-10-18T10:24:39.3458694-07:00</DateUpdated>
  <FriendlyName>sample string 4</FriendlyName>
  <RestException>
    <Code>sample string 3</Code>
    <Message>sample string 4</Message>
    <MoreInfo>sample string 2</MoreInfo>
    <Status>sample string 1</Status>
  </RestException>
  <Sid>sample string 1</Sid>
  <Status>sample string 5</Status>
  <Uri>http://webapihelppage7.com/</Uri>
</TwilioModels.Account>