GET v1/SMS/SendTextMessage?sendTo={sendTo}&body={body}

Sends a text message.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sendTo

The send to.

string

Required

body

The body.

string

Required

Body Parameters

None.

Response Information

Resource Description

Message
NameDescriptionTypeAdditional information
AccountSid

string

None.

Price

decimal number

None.

From

string

None.

To

string

None.

ApiVersion

string

None.

Body

string

None.

ErrorCode

integer

None.

NumSegments

integer

None.

ErrorMessage

string

None.

NumImages

integer

None.

Sid

string

None.

Status

string

None.

DateCreated

date

None.

DateUpdated

date

None.

Direction

string

None.

DateSent

date

None.

RestException

RestException

None.

Uri

URI

None.

Errors

Collection of Exception

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountSid": "sample string 1",
  "Price": 2.0,
  "From": "sample string 3",
  "To": "sample string 4",
  "ApiVersion": "sample string 5",
  "Body": "sample string 6",
  "ErrorCode": 1,
  "NumSegments": 7,
  "ErrorMessage": "sample string 8",
  "NumImages": 9,
  "Sid": "sample string 10",
  "Status": "sample string 11",
  "DateCreated": "2021-07-31T05:22:09.9510713-07:00",
  "DateUpdated": "2021-07-31T05:22:09.9510713-07:00",
  "Direction": "sample string 14",
  "DateSent": "2021-07-31T05:22:09.9510713-07:00",
  "RestException": {
    "Status": "sample string 1",
    "MoreInfo": "sample string 2",
    "Code": "sample string 3",
    "Message": "sample string 4"
  },
  "Uri": "http://webapihelppage16.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.Message 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>
  <AccountSid>sample string 1</AccountSid>
  <ApiVersion>sample string 5</ApiVersion>
  <Body>sample string 6</Body>
  <DateCreated>2021-07-31T05:22:09.9510713-07:00</DateCreated>
  <DateSent>2021-07-31T05:22:09.9510713-07:00</DateSent>
  <DateUpdated>2021-07-31T05:22:09.9510713-07:00</DateUpdated>
  <Direction>sample string 14</Direction>
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 8</ErrorMessage>
  <From>sample string 3</From>
  <NumImages>9</NumImages>
  <NumSegments>7</NumSegments>
  <Price>2</Price>
  <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 10</Sid>
  <Status>sample string 11</Status>
  <To>sample string 4</To>
  <Uri>http://webapihelppage16.com/</Uri>
</TwilioModels.Message>