Create a message (with card attached)

POST {{WEBEXAPI}}/messages

Posts a plain text or markdown message, and optionally, a media content attachment, to a room.

https://developer.webex.com/endpoint-messages-post.html

Request Body

{"roomId"=>"{{_room}}", "markdown"=>"[Learn more](https://adaptivecards.io) about Adaptive Cards.", "attachments"=>[{"contentType"=>"application/vnd.microsoft.card.adaptive", "content"=>{"type"=>"AdaptiveCard", "version"=>"1.0", "body"=>[{"type"=>"TextBlock", "text"=>"Please enter your name:"}, {"type"=>"Input.Text", "id"=>"name", "title"=>"New Input.Toggle", "placeholder"=>"name"}], "actions"=>[{"type"=>"Action.Submit", "title"=>"Submit"}]}}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring