POST api/Messages

Request Information

URI Parameters

None.

Body Parameters

Activity
NameDescriptionTypeAdditional information
Properties

Collection of Object

None.

type

string

None.

id

string

None.

timestamp

date

None.

localTimestamp

date

None.

serviceUrl

string

None.

channelId

string

None.

from

ChannelAccount

None.

conversation

ConversationAccount

None.

recipient

ChannelAccount

None.

textFormat

string

None.

attachmentLayout

string

None.

membersAdded

Collection of ChannelAccount

None.

membersRemoved

Collection of ChannelAccount

None.

reactionsAdded

Collection of MessageReaction

None.

reactionsRemoved

Collection of MessageReaction

None.

topicName

string

None.

historyDisclosed

boolean

None.

locale

string

None.

text

string

None.

speak

string

None.

inputHint

string

None.

summary

string

None.

suggestedActions

SuggestedActions

None.

attachments

Collection of Attachment

None.

entities

Collection of Entity

None.

channelData

Object

None.

action

string

None.

replyToId

string

None.

value

Object

None.

name

string

None.

relatesTo

ConversationReference

None.

code

string

None.

Request Formats

application/json, text/json

Sample:
{
  "type": "sample string 1",
  "id": "sample string 2",
  "timestamp": "2019-08-23T15:30:30.3205502+00:00",
  "localTimestamp": "2019-08-23T15:30:30.3205502+00:00",
  "serviceUrl": "sample string 3",
  "channelId": "sample string 4",
  "from": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "conversation": {
    "isGroup": true,
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "recipient": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "textFormat": "sample string 5",
  "attachmentLayout": "sample string 6",
  "membersAdded": [
    {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2"
    }
  ],
  "membersRemoved": [
    {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2"
    }
  ],
  "reactionsAdded": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "reactionsRemoved": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "topicName": "sample string 7",
  "historyDisclosed": true,
  "locale": "sample string 8",
  "text": "sample string 9",
  "speak": "sample string 10",
  "inputHint": "sample string 11",
  "summary": "sample string 12",
  "suggestedActions": {
    "to": [
      "sample string 1",
      "sample string 2"
    ],
    "actions": [
      {
        "type": "sample string 1",
        "title": "sample string 2",
        "image": "sample string 3",
        "text": "sample string 4",
        "displayText": "sample string 5",
        "value": {}
      },
      {
        "type": "sample string 1",
        "title": "sample string 2",
        "image": "sample string 3",
        "text": "sample string 4",
        "displayText": "sample string 5",
        "value": {}
      }
    ]
  },
  "attachments": [
    {
      "contentType": "sample string 1",
      "contentUrl": "sample string 2",
      "content": {},
      "name": "sample string 4",
      "thumbnailUrl": "sample string 5"
    },
    {
      "contentType": "sample string 1",
      "contentUrl": "sample string 2",
      "content": {},
      "name": "sample string 4",
      "thumbnailUrl": "sample string 5"
    }
  ],
  "entities": [
    {
      "type": "sample string 1"
    },
    {
      "type": "sample string 1"
    }
  ],
  "channelData": {},
  "action": "sample string 14",
  "replyToId": "sample string 15",
  "value": {},
  "name": "sample string 17",
  "relatesTo": {
    "activityId": "sample string 1",
    "user": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "bot": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "conversation": {
      "isGroup": true,
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "channelId": "sample string 2",
    "serviceUrl": "sample string 3"
  },
  "code": "sample string 18"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

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.