POST api/sms/spoke-receive-inbound-message

Request Information

URI Parameters

None.

Body Parameters

SpokeReceiveInboundMessageRequest
NameDescriptionTypeAdditional information
Data

ConversationEventData

Required

Type

string

Required

Request Formats

application/json, text/json

Sample:
{
  "data": {
    "messages": [
      {
        "id": "sample string 1",
        "body": "sample string 2",
        "direction": 0
      },
      {
        "id": "sample string 1",
        "body": "sample string 2",
        "direction": 0
      }
    ],
    "companyNumber": "sample string 1",
    "contactNumber": "sample string 2",
    "assignedUser": {
      "email": "sample string 1",
      "firstName": "sample string 2",
      "jobTitle": "sample string 3",
      "lastName": "sample string 4",
      "mobile": "sample string 5",
      "userId": "sample string 6"
    }
  },
  "type": "sample string 1"
}

application/xml, text/xml

Sample:
<SpokeReceiveInboundMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS">
  <_x003C_Data_x003E_k__BackingField>
    <_x003C_AssignedUser_x003E_k__BackingField>
      <_x003C_Email_x003E_k__BackingField>sample string 1</_x003C_Email_x003E_k__BackingField>
      <_x003C_FirstName_x003E_k__BackingField>sample string 2</_x003C_FirstName_x003E_k__BackingField>
      <_x003C_JobTitle_x003E_k__BackingField>sample string 3</_x003C_JobTitle_x003E_k__BackingField>
      <_x003C_LastName_x003E_k__BackingField>sample string 4</_x003C_LastName_x003E_k__BackingField>
      <_x003C_Mobile_x003E_k__BackingField>sample string 5</_x003C_Mobile_x003E_k__BackingField>
      <_x003C_UserId_x003E_k__BackingField>sample string 6</_x003C_UserId_x003E_k__BackingField>
    </_x003C_AssignedUser_x003E_k__BackingField>
    <_x003C_CompanyNumber_x003E_k__BackingField>sample string 1</_x003C_CompanyNumber_x003E_k__BackingField>
    <_x003C_ContactNumber_x003E_k__BackingField>sample string 2</_x003C_ContactNumber_x003E_k__BackingField>
    <_x003C_Messages_x003E_k__BackingField>
      <SpokeMessage>
        <_x003C_Body_x003E_k__BackingField>sample string 2</_x003C_Body_x003E_k__BackingField>
        <_x003C_Direction_x003E_k__BackingField>Unknown</_x003C_Direction_x003E_k__BackingField>
        <_x003C_Id_x003E_k__BackingField>sample string 1</_x003C_Id_x003E_k__BackingField>
      </SpokeMessage>
      <SpokeMessage>
        <_x003C_Body_x003E_k__BackingField>sample string 2</_x003C_Body_x003E_k__BackingField>
        <_x003C_Direction_x003E_k__BackingField>Unknown</_x003C_Direction_x003E_k__BackingField>
        <_x003C_Id_x003E_k__BackingField>sample string 1</_x003C_Id_x003E_k__BackingField>
      </SpokeMessage>
    </_x003C_Messages_x003E_k__BackingField>
  </_x003C_Data_x003E_k__BackingField>
  <_x003C_Type_x003E_k__BackingField>sample string 1</_x003C_Type_x003E_k__BackingField>
</SpokeReceiveInboundMessageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.