POST api/SMS

Request Information

URI Parameters

None.

Body Parameters

IncomingSMSMessage
NameDescriptionTypeAdditional information
AccountSid

string

None.

ApiVersion

string

None.

Body

string

None.

CustomerID

integer

None.

DateReceived

date

None.

DaySmartGuid

DsiGuid

None.

From

string

None.

FromCity

string

None.

FromCountry

string

None.

FromState

string

None.

FromZip

string

None.

IncomingSMSMessageType

IncomingSMSMessageType

None.

MessageSid

string

None.

NumMedia

integer

None.

Retrieved

boolean

None.

SentMessageDaySmartGuid

DsiGuid

None.

SmsMessageSid

string

None.

SmsSid

string

None.

SmsStatus

string

None.

ToNumber

string

None.

ToCity

string

None.

ToCountry

string

None.

ToState

string

None.

ToZip

string

None.

ResponseSent

boolean

None.

Response

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountSid": "sample string 1",
  "ApiVersion": "sample string 2",
  "Body": "sample string 3",
  "CustomerID": 4,
  "DateReceived": "2020-09-27T04:17:40.6823249+00:00",
  "DaySmartGuid": {
    "_value": null
  },
  "From": "sample string 5",
  "FromCity": "sample string 6",
  "FromCountry": "sample string 7",
  "FromState": "sample string 8",
  "FromZip": "sample string 9",
  "IncomingSMSMessageType": {
    "ValueForSerialization": "sample string 1",
    "DisplayNameForSerialization": "sample string 2"
  },
  "MessageSid": "sample string 10",
  "NumMedia": 1,
  "Retrieved": true,
  "SentMessageDaySmartGuid": {
    "_value": null
  },
  "SmsMessageSid": "sample string 12",
  "SmsSid": "sample string 13",
  "SmsStatus": "sample string 14",
  "ToNumber": "sample string 15",
  "ToCity": "sample string 16",
  "ToCountry": "sample string 17",
  "ToState": "sample string 18",
  "ToZip": "sample string 19",
  "ResponseSent": true,
  "Response": "sample string 21"
}

application/xml, text/xml

Sample:
<IncomingSMSMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSI.MessagingService.DTO">
  <_momento xmlns:d2p1="http://schemas.datacontract.org/2004/07/DSI.MessagingService.Momentos.IncomingSMSMessage" xmlns="http://schemas.datacontract.org/2004/07/DSI.Core">
    <d2p1:AccountSid>
      <string xmlns="">sample string 1</string>
    </d2p1:AccountSid>
    <d2p1:ApiVersion>
      <string xmlns="">sample string 2</string>
    </d2p1:ApiVersion>
    <d2p1:Body>
      <string xmlns="">sample string 3</string>
    </d2p1:Body>
    <d2p1:CustomerID>
      <int xmlns="">4</int>
    </d2p1:CustomerID>
    <d2p1:DateReceived>
      <dateTime xmlns="">2020-09-27T04:17:40.6823249+00:00</dateTime>
    </d2p1:DateReceived>
    <d2p1:DaysmartGuid>
      <DsiGuid xmlns="" />
    </d2p1:DaysmartGuid>
    <d2p1:From>
      <string xmlns="">sample string 5</string>
    </d2p1:From>
    <d2p1:FromCity>
      <string xmlns="">sample string 6</string>
    </d2p1:FromCity>
    <d2p1:FromCountry>
      <string xmlns="">sample string 7</string>
    </d2p1:FromCountry>
    <d2p1:FromState>
      <string xmlns="">sample string 8</string>
    </d2p1:FromState>
    <d2p1:FromZip>
      <string xmlns="">sample string 9</string>
    </d2p1:FromZip>
    <d2p1:IncomingSMSMessageType>
      <incoming_sms_message_type xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="">
        <enumeration_value>sample string 1</enumeration_value>
        <enumeration_display_name>sample string 2</enumeration_display_name>
      </incoming_sms_message_type>
    </d2p1:IncomingSMSMessageType>
    <d2p1:MessageSid>
      <string xmlns="">sample string 10</string>
    </d2p1:MessageSid>
    <d2p1:NumMedia>
      <int xmlns="">1</int>
    </d2p1:NumMedia>
    <d2p1:OptInLog>
      <OptInLogMomento xmlns:xsd="http://www.w3.org/2001/XMLSchema" i:nil="true" xmlns="" />
    </d2p1:OptInLog>
    <d2p1:PK>
      <int xmlns:xsd="http://www.w3.org/2001/XMLSchema" i:nil="true" xmlns="" />
    </d2p1:PK>
    <d2p1:Response>
      <string xmlns="">sample string 21</string>
    </d2p1:Response>
    <d2p1:ResponseSent>
      <boolean xmlns="">true</boolean>
    </d2p1:ResponseSent>
    <d2p1:Retrieved>
      <boolean xmlns="">true</boolean>
    </d2p1:Retrieved>
    <d2p1:SentMessageDaysmartGuid>
      <DsiGuid xmlns="" />
    </d2p1:SentMessageDaysmartGuid>
    <d2p1:SmsMessageSid>
      <string xmlns="">sample string 12</string>
    </d2p1:SmsMessageSid>
    <d2p1:SmsSid>
      <string xmlns="">sample string 13</string>
    </d2p1:SmsSid>
    <d2p1:SmsStatus>
      <string xmlns="">sample string 14</string>
    </d2p1:SmsStatus>
    <d2p1:ToCity>
      <string xmlns="">sample string 16</string>
    </d2p1:ToCity>
    <d2p1:ToCountry>
      <string xmlns="">sample string 17</string>
    </d2p1:ToCountry>
    <d2p1:ToNumber>
      <string xmlns="">sample string 15</string>
    </d2p1:ToNumber>
    <d2p1:ToState>
      <string xmlns="">sample string 18</string>
    </d2p1:ToState>
    <d2p1:ToZip>
      <string xmlns="">sample string 19</string>
    </d2p1:ToZip>
  </_momento>
  <AccountSid>sample string 1</AccountSid>
  <ApiVersion>sample string 2</ApiVersion>
  <Body>sample string 3</Body>
  <CustomerID>4</CustomerID>
  <DateReceived>2020-09-27T04:17:40.6823249+00:00</DateReceived>
  <DaySmartGuid />
  <From>sample string 5</From>
  <FromCity>sample string 6</FromCity>
  <FromCountry>sample string 7</FromCountry>
  <FromState>sample string 8</FromState>
  <FromZip>sample string 9</FromZip>
  <IncomingSMSMessageType xmlns:d2p1="http://schemas.datacontract.org/2004/07/DSI.Core.Infrastructure">
    <d2p1:DisplayNameForSerialization>sample string 2</d2p1:DisplayNameForSerialization>
    <d2p1:ValueForSerialization>sample string 1</d2p1:ValueForSerialization>
  </IncomingSMSMessageType>
  <MessageSid>sample string 10</MessageSid>
  <NumMedia>1</NumMedia>
  <Response>sample string 21</Response>
  <ResponseSent>true</ResponseSent>
  <Retrieved>true</Retrieved>
  <SentMessageDaySmartGuid />
  <SmsMessageSid>sample string 12</SmsMessageSid>
  <SmsSid>sample string 13</SmsSid>
  <SmsStatus>sample string 14</SmsStatus>
  <ToCity>sample string 16</ToCity>
  <ToCountry>sample string 17</ToCountry>
  <ToNumber>sample string 15</ToNumber>
  <ToState>sample string 18</ToState>
  <ToZip>sample string 19</ToZip>
</IncomingSMSMessage>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />