{ "info": { "_postman_id": "fe983448-e2ff-d578-f4c4-8223175c32c2", "name": "Webex Messaging API", "description": "Hey there! Thanks for checking out Cisco Webex for Developers. If you've used Cisco Webex Meetings or Cisco Webex Teams (formerly Cisco Spark) you know how easy it is to meet and collaborate with your team members and customers.\r\n\r\nThe Webex for Developers program opens up the power behind the Webex platform to anyone seeking to extend the Webex experience.\r\n\r\nWebex Meetings is a powerful conferencing solution that lets you connect with anyone, anywhere, in real time. By combining video, audio and content sharing, Webex Meetings creates an effective conferencing environment, leading to more productive meetings and increased productivity. Developer information for Webex Meetings will soon be available on this site. In the meantime, to get started with developing for Webex Meetings, please see the Getting Started guides over on Cisco DevNet. Keep reading for information about Webex Teams.\r\n\r\nWebex Teams makes staying in sync with your teammates and customers easy.\r\nConversations in Webex Teams take place in virtual meeting rooms. Some rooms live for a few hours while others become permanent fixtures of your team's workflow with titles like Daily Standup or Build Status. Webex Teams allows conversations to flow seamlessly between messages, video calls, and real-time whiteboarding sessions. No other solution brings together so many facets of collaboration into a single unified platform.\r\n\r\nhttps://developer.webex.com/getting-started.html", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "AttachmentActions", "item": [ { "name": "Create a room (for test run purpose)", "event": [ { "listen": "test", "script": { "id": "a7e1037b-b2f8-42d0-832b-2f639ac82cec", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a room: failed\"] = false", "}", "else {", " tests[\"Create a room: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a room: cannot retreive identifier\"] = false", " }", " else {", " var roomID = jsonData.id;", " postman.setEnvironmentVariable(\"_room\", roomID);", " tests[\"Create a room: created with id:\" + roomID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Testing Cards\"\n}" }, "url": { "raw": "{{WEBEXAPI}}/rooms", "host": [ "{{WEBEXAPI}}" ], "path": [ "rooms" ] }, "description": "Creates a temp space that will be used to add a user, post a card, have the user submit actions and retrieve the submitted data via a webhook" }, "response": [] }, { "name": "Create a message (with card attached)", "event": [ { "listen": "test", "script": { "id": "16d66732-f888-4d2d-9255-ccd117c2f26b", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"roomId\": \"{{_room}}\",\n \"markdown\": \"[Learn more](https://adaptivecards.io) about Adaptive Cards.\",\n \"attachments\": [\n {\n \"contentType\": \"application/vnd.microsoft.card.adaptive\",\n \"content\": {\n \"type\": \"AdaptiveCard\",\n \"version\": \"1.0\",\n \"body\": [\n {\n \"type\": \"TextBlock\",\n \"text\": \"Please enter your name:\"\n },\n {\n \"type\": \"Input.Text\",\n \"id\": \"name\",\n \"title\": \"New Input.Toggle\",\n \"placeholder\": \"name\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"Action.Submit\",\n \"title\": \"Submit\"\n }\n ]\n }\n }\n ]\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create an attachmentAction (submit)", "event": [ { "listen": "test", "script": { "id": "76c60d74-7c18-4802-8274-d31c30424f19", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create an attachmentAction: failed\"] = false", "}", "else {", " tests[\"Create an attachmentAction: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create an attachmentAction: cannot retreive identifier\"] = false", " }", " else {", " var actionId = jsonData.id;", " postman.setEnvironmentVariable(\"_action\", actionId);", " tests[\"Create an attachmentAction: created with id:\" + actionId] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"type\": \"submit\",\r\n \"messageId\": \"{{_message}}\",\r\n \"inputs\": {\r\n \"name\": \"John Doe\"\r\n }\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/attachment/actions", "host": [ "{{WEBEXAPI}}" ], "path": [ "attachment", "actions" ] }, "description": "Create a new attachment action.\n\nhttps://developer.webex.com/docs/api/v1/attachment-actions/create-an-attachment-action" }, "response": [] }, { "name": "Get attachmentAction details", "event": [ { "listen": "test", "script": { "id": "76c60d74-7c18-4802-8274-d31c30424f19", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{bot_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{WEBEXAPI}}/attachment/actions/{{_action}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "attachment", "actions", "{{_action}}" ] }, "description": "Shows details for a attachment action, by ID.\r\n\r\nSpecify the attachment action ID in the id URI parameter.\r\n\r\nhttps://developer.webex.com/docs/api/v1/attachment-actions/get-attachment-action-details" }, "response": [] }, { "name": "Delete a message", "event": [ { "listen": "test", "script": { "id": "e3236c06-933d-479c-a9d1-7439c722671f", "exec": [ "if (responseCode.code != 204) {", " tests[\"Delete a message: failed\"] = false", "}", "else {", " tests[\"Delete a message: success\"] = true", "}", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{WEBEXAPI}}/messages/{{_message}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages", "{{_message}}" ] }, "description": "Deletes a message, by message ID.\n\nSpecify the message ID in the messageId parameter in the URI.\n\nhttps://developer.webex.com/endpoint-messages-messageId-delete.html" }, "response": [] }, { "name": "Delete room", "event": [ { "listen": "test", "script": { "id": "47711faa-4839-4007-b9d6-68b16fdacd3c", "exec": [ "if (responseCode.code != 204) {", " tests[\"Delete a room: failed\"] = false", "}", "else {", " tests[\"Delete a room: success\"] = true", "}" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer {{bot_token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{WEBEXAPI}}/rooms/{{_room}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "rooms", "{{_room}}" ] }, "description": "Deletes a room, by ID.\r\n\r\nSpecify the room ID in the roomId parameter in the URI.\r\n\r\nhttps://developer.webex.com/endpoint-rooms-roomId-delete.html" }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "98329e3e-0093-404d-82c2-60d6547a7b55", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "4d14c21d-6c0c-4862-a526-0bd266470418", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {} }, { "name": "Memberships", "item": [ { "name": "List memberships (for all rooms)", "event": [ { "listen": "test", "script": { "id": "dbeeee3e-793e-4386-8ee8-138e25cec688", "exec": [ "if (responseCode.code != 200) {", " tests[\"List rooms: failed\"] = false;", "}", "else {", " tests[\"List rooms: success\"] = true;", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "url": { "raw": "{{WEBEXAPI}}/memberships", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships" ] }, "description": "Lists all room memberships. By default, lists memberships for rooms to which the authenticated user belongs.\n\nUse query parameters to filter the response.\n\nUse roomId to list memberships for a room, by ID.\n\nUse either personId or personEmail to filter the results.\n\nhttps://developer.webex.com/endpoint-memberships-get.html" }, "response": [] }, { "name": "Create a room (for test run purpose)", "event": [ { "listen": "test", "script": { "id": "9e9c6154-69ca-482b-a5d9-899b1900529d", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a room: failed\"] = false", "}", "else {", " tests[\"Create a room: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a room: cannot retreive room identifier\"] = false", " }", " else {", " var roomID = jsonData.id;", " postman.setEnvironmentVariable(\"_room\", roomID);", " tests[\"Create a room: created with id:\" + roomID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Postman - Testing Memberships\"\n}" }, "url": { "raw": "{{WEBEXAPI}}/rooms", "host": [ "{{WEBEXAPI}}" ], "path": [ "rooms" ] }, "description": "Creates a room. The authenticated user is automatically added as a member of the room. See the Memberships API to learn how to add more people to the room.\n\nhttps://developer.webex.com/endpoint-rooms-post.html" }, "response": [] }, { "name": "List memberships (for a room)", "event": [ { "listen": "test", "script": { "id": "4a5df943-a1e4-4245-8260-af196293255b", "exec": [ "if (responseCode.code != 200) {", " tests[\"List rooms: failed\"] = false;", "}", "else {", " tests[\"List rooms: success\"] = true;", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "url": { "raw": "{{WEBEXAPI}}/memberships?roomId={{_room}}&max=100", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships" ], "query": [ { "key": "roomId", "value": "{{_room}}" }, { "key": "max", "value": "100" } ] }, "description": "Lists all room memberships. By default, lists memberships for rooms to which the authenticated user belongs.\n\nUse query parameters to filter the response.\n\nUse roomId to list memberships for a room, by ID.\n\nUse either personId or personEmail to filter the results.\n\nhttps://developer.webex.com/endpoint-memberships-get.html" }, "response": [] }, { "name": "Create a membership", "event": [ { "listen": "test", "script": { "id": "54faa7ec-3d16-4df5-8119-b8965cbaea03", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a membership: failed\"] = false", "}", "else {", " tests[\"Create a membership: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a membership: cannot retreive identifier\"] = false", " }", " else {", " var membershipID = jsonData.id;", " postman.setEnvironmentVariable(\"_membership\", membershipID);", " tests[\"Create a membership: created with id:\" + membershipID] = true", " }", "}", " ", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"personEmail\": \"CiscoDevNet@sparkbot.io\",\r\n \"isModerator\": \"false\"\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/memberships", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships" ] }, "description": "Add someone to a room by Person ID or email address; optionally making them a moderator.\n\nhttps://developer.webex.com/endpoint-memberships-post.html" }, "response": [] }, { "name": "Get membership details", "event": [ { "listen": "test", "script": { "id": "39841213-18e6-4b5d-98ce-0783dcc34732", "exec": [ "if (responseCode.code != 200) {", " tests[\"Get membership details: failed\"] = false;", "}", "else {", " tests[\"Get membership details: success\"] = true;", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Get membership details: cannot retreive identifier\"] = false;", " }", " else {", " var membershipID = jsonData.id;", " if (membershipID != postman.getEnvironmentVariable(\"_membership\")) {", " tests[\"Get membership details: wrong id:\" + membershipID] = false;", " }", " else {", " tests[\"Get membership details: correct id:\" + membershipID] = true;", " }", " }", "}", " ", " " ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "url": { "raw": "{{WEBEXAPI}}/memberships/{{_membership}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships", "{{_membership}}" ] }, "description": "Get details for a membership by ID.\r\n\r\nSpecify the membership ID in the membershipId URI parameter.\r\n\r\nhttps://developer.webex.com/endpoint-memberships-membershipId-get.html" }, "response": [] }, { "name": "Update a membership", "event": [ { "listen": "test", "script": { "id": "5c07484e-1870-48fd-a7cc-7ebec92359e3", "exec": [ "if (responseCode.code != 200) {", " tests[\"Update a membership: failed\"] = false", "}", "else {", " tests[\"Update a membership: success\"] = true", "}" ], "type": "text/javascript" } } ], "request": { "method": "PATCH", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"isModerator\": true\n}" }, "url": { "raw": "{{WEBEXAPI}}/memberships/{{_membership}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships", "{{_membership}}" ] }, "description": "Updates properties for a membership by ID.\n\nSpecify the membership ID in the membershipId URI parameter.\n\nhttps://developer.ciscospark.com/endpoint-memberships-membershipId-put.html" }, "response": [] }, { "name": "Delete membership", "event": [ { "listen": "test", "script": { "id": "236be525-d7b5-42db-92cd-f77b74e892ed", "exec": [ "if (responseCode.code != 204) {", " tests[\"Delete a membership: failed\"] = false", "}", "else {", " tests[\"Delete a membership: success\"] = true", "}" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{WEBEXAPI}}/memberships/{{_membership}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "memberships", "{{_membership}}" ] }, "description": "Deletes a membership by ID.\r\n\r\nSpecify the membership ID in the membershipId URI parameter.\r\n\r\nhttps://developer.webex.com/endpoint-memberships-membershipId-delete.html" }, "response": [] }, { "name": "Delete a room (cleanup)", "event": [ { "listen": "test", "script": { "id": "46195348-098e-48af-9d43-0e294c2d35f9", "exec": [ "if (responseCode.code != 204) {", " tests[\"Delete a room: failed\"] = false", "}", "else {", " tests[\"Delete a room: success\"] = true", "}" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{WEBEXAPI}}/v1/rooms/{{_room}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "v1", "rooms", "{{_room}}" ] }, "description": "Deletes a room, by ID.\r\n\r\nSpecify the room ID in the roomId parameter in the URI.\r\n\r\nhttps://developer.webex.com/endpoint-rooms-roomId-delete.html" }, "response": [] } ], "description": "Memberships represent a person's relationship to a room. Use this API to list members of any room that you're in or create memberships to invite someone to a room. Memberships can also be updated to make someone a moderator or deleted to remove them from the room.\r\n\r\nJust like in the Webex Teams app, you must be a member of the room in order to list its memberships or invite people.\r\n\r\nhttps://developer.webex.com/resource-memberships.html", "event": [ { "listen": "prerequest", "script": { "id": "2cc3d2c1-27c3-4005-a00f-5f8125079a60", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "d344b3c6-5b68-45b7-953c-d465116e5ad6", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {} }, { "name": "Messages", "item": [ { "name": "Create a room (for test run purpose)", "event": [ { "listen": "test", "script": { "id": "5c58b3b8-6c9f-4266-ac4c-95a1df80d76b", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a room: failed\"] = false", "}", "else {", " tests[\"Create a room: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a room: cannot retreive identifier\"] = false", " }", " else {", " var roomID = jsonData.id;", " postman.setEnvironmentVariable(\"_room\", roomID);", " tests[\"Create a room: created with id:\" + roomID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Postman - Testing Messages\"\n}" }, "url": { "raw": "{{WEBEXAPI}}/rooms", "host": [ "{{WEBEXAPI}}" ], "path": [ "rooms" ] }, "description": "Creates a room. The authenticated user is automatically added as a member of the room. See the Memberships API to learn how to add more people to the room.\n\nhttps://developer.webex.com/endpoint-rooms-post.html" }, "response": [] }, { "name": "List messages", "event": [ { "listen": "test", "script": { "id": "1650e17e-ced7-435f-835e-cd2bfd247149", "exec": [ "if (responseCode.code != 200) {", " tests[\"List messages: failed\"] = false;", "}", "else {", " tests[\"List messages: success\"] = true;", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "url": { "raw": "{{WEBEXAPI}}/messages?roomId={{_room}}", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ], "query": [ { "key": "roomId", "value": "{{_room}}" } ] }, "description": "Lists all messages in a room. If present, includes the associated media content attachment for each message.\r\n\r\nThe list sorts the messages in descending order by creation date.\r\n\r\nhttps://developer.webex.com/endpoint-messages-get.html" }, "response": [] }, { "name": "Create a message (plain text)", "event": [ { "listen": "test", "script": { "id": "ea30b14c-adb3-4f20-bc6b-bb145826a665", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"text\" : \"hi from Postman\"\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (plain text as form-data)", "event": [ { "listen": "test", "script": { "id": "9e8e0b1f-9c90-4935-8a9d-478bc77520a0", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" } ], "body": { "mode": "formdata", "formdata": [ { "key": "roomId", "value": "{{_room}}", "type": "text" }, { "key": "text", "value": "This is a plain text message, sent as form-data", "type": "text" } ] }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (plain text as form-urlencoded)", "event": [ { "listen": "test", "script": { "id": "214c9914-0c11-450b-a359-36d17ab47665", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "roomId", "value": "{{_room}}", "type": "text" }, { "key": "text", "value": "This is a plain text message, sent via form-urlencoded", "type": "text" } ] }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (markdown)", "event": [ { "listen": "test", "script": { "id": "bd0a4062-d90a-4bc2-96cc-cd70fd7149d2", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"markdown\" : \"# Message Formatting!\\nWebex Teams clients now render rich text; enabling bots and integrations to communicate business data in a way that's fun to read and easy on the eyes!\\n\\n## Styling Text\\nMessages are styled using [Markdown](https://daringfireball.net/projects/markdown/syntax) syntax allowing text to be emphasized in **bold**, *italics* on `in-line code`.\\n\\n### Fenced Code Blocks\\nWebex can now also render fenced code blocks using triple backticks (aka GitHub Flavored Markdown)\\n\\n```\\nsource 'https://github.com/CocoaPods/Specs.git'\\nplatform :ios, '8.0'\\nuse_frameworks!\\n\\npost_install do |installer|\\n installer.pods_project.targets.each do |target|\\n target.build_configurations.each do |config|\\n config.build_settings['ENABLE_BITCODE'] = 'NO'\\n end\\n end\\nend\\n\\ntarget 'TeamsBnB' do\\n pod 'TeamsSDK', :path => '../'\\n pod 'Toast-Swift', '~> 1.1.0'\\nend\\n```\\n\\n### Lists\\n\\nLists are a great way to organize information or present options to your audience.\\n\\n###Ordered Lists\\n1. List Item\\n2. List Item\\n3. List Item\\n\\n###Unordered Lists\\n* List Item\\n* List Item\\n* List Item\\n * Sub Item\\n * SubSub Item\\n\\n### Block Quotes\\n\\n> Quoting is a super powerful way for bots to respond to a message that happened a while back in the conversation.\\n\\n\",\r\n \"text\": \"This text would be displayed by Webex Teams clients that do not support markdown.\"\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nTo get more info about message formatting, check https://developer.webex.com/formatting-messages.html\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (with mention)", "event": [ { "listen": "test", "script": { "id": "83283f04-e45c-446c-a606-a2a16f4d33ee", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"markdown\" : \"Hi <@personEmail:CiscoDevNet@webex.bot|CiscoDevNet>, your order has been processed.\"\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.ciscospark.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (7439 characters limit)", "event": [ { "listen": "test", "script": { "id": "3493c6eb-fd20-4cb5-a778-09126b044034", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"roomId\": \"{{_room}}\",\n \"markdown\": \"ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (2479 asian characters)", "event": [ { "listen": "test", "script": { "id": "e0ef3424-50c1-402b-9e32-9ccf884ccf9f", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"markdown\" : \"漢字漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは漢字漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは漢字漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは漢字漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語を漢字で送りますこんにちは日本語\"\r\n}" }, "url": { "raw": "{{WEBEXAPI}}/messages", "host": [ "{{WEBEXAPI}}" ], "path": [ "messages" ] }, "description": "Posts a plain text or markdown message, and optionally, a media content attachment, to a room.\n\nhttps://developer.webex.com/endpoint-messages-post.html" }, "response": [] }, { "name": "Create a message (html)", "event": [ { "listen": "test", "script": { "id": "15e05052-ac44-4770-bca9-caf270d1fd00", "exec": [ "if (responseCode.code != 200) {", " tests[\"Create a message: failed\"] = false", "}", "else {", " tests[\"Create a message: created\"] = true", "", " var jsonData = JSON.parse(responseBody);", " if (jsonData.id === undefined) {", " tests[\"Create a message: cannot retreive identifier\"] = false", " }", " else {", " var messageID = jsonData.id;", " postman.setEnvironmentVariable(\"_message\", messageID);", " tests[\"Create a message: created with id:\" + messageID] = true", " }", "}", " ", " ", " ", " ", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{access_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"roomId\" : \"{{_room}}\",\r\n \"html\" : \"
Well as you know, HTML is not officially supported! Let's try it though ;-)
Webex Teams clients now render rich text; enabling bots and integrations to communicate business data in a way that's fun to read and easy on the eyes!
Messages are styled using Markdown syntax allowing text to be emphasized in bold, italics on in-line code
.
Webex Teams clients can now also render fenced code blocks using triple backticks (aka GitHub Flavored Markdown)
source 'https://github.com/CocoaPods/Specs.git'\\nplatform :ios, '8.0'\\nuse_frameworks!\\n\\npost_install do |installer|\\n installer.pods_project.targets.each do |target|\\n target.build_configurations.each do |config|\\n config.build_settings['ENABLE_BITCODE'] = 'NO'\\n end\\n end\\nend\\n\\ntarget 'TeamsBnB' do\\n pod 'TeamsSDK', :path => '../'\\n pod 'Toast-Swift', '~> 1.1.0'\\nend
Lists are a great way to organize information or present options to your audience.
Orderd Lists
Unordered Lists
Quoting is a super powerful way for bots to respond to a message that happened a while back in the conversation.