POST api/InboundSms

Request Information

URI Parameters

None.

Body Parameters

InboundMessage
NameDescriptionTypeAdditional information
Id

integer

None.

AccountSid

string

None.

Date

date

None.

Direction

string

None.

From

string

None.

To

string

None.

SmsStatus

string

None.

Cost

decimal number

None.

Body

string

None.

ApiVersion

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AccountSid": "sample string 2",
  "Date": "2024-12-04T08:58:17.5087333-06:00",
  "Direction": "sample string 3",
  "From": "sample string 4",
  "To": "sample string 5",
  "SmsStatus": "sample string 6",
  "Cost": 1.1,
  "Body": "sample string 7",
  "ApiVersion": "sample string 8"
}

application/xml, text/xml

Sample:
<InboundMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExtTextMessAPI.Models">
  <AccountSid>sample string 2</AccountSid>
  <ApiVersion>sample string 8</ApiVersion>
  <Body>sample string 7</Body>
  <Cost>1.1</Cost>
  <Date>2024-12-04T08:58:17.5087333-06:00</Date>
  <Direction>sample string 3</Direction>
  <From>sample string 4</From>
  <Id>1</Id>
  <SmsStatus>sample string 6</SmsStatus>
  <To>sample string 5</To>
</InboundMessage>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InboundMessage'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.