{"componentChunkName":"component---src-templates-docs-js","path":"/rcs/webhook_message_action/examples","result":{"data":{"site":{"siteMetadata":{"title":"broadcaster","docsLocation":"https://github.com","docsLocationType":"github","editable":false}},"mdx":{"fields":{"id":"80a71cb7-d20a-5929-837d-6317380604a2","title":"Examples","slug":"/rcs/webhook_message_action/examples"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Examples\",\n  \"order\": 3\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Example payloads for inbound RCS messages and user actions.\"), mdx(\"section\", {\n    \"id\": \"whentheusersendsanrcsmessage\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"When the user sends an RCS message\"), mdx(\"br\", null), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 1,\\n    \\\"messageId\\\": \\\"823529374573496\\\",\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"eventDate\\\": 1577405697374,\\n    \\\"messageText\\\": \\\"This is a message written by the user\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"whentheusersendsanrcsfile\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"When the user sends an RCS file\"), mdx(\"br\", null), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 1,\\n    \\\"eventId\\\": \\\"1234512\\\",\\n    \\\"messageId\\\": \\\"823529374573426\\\",\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"eventDate\\\": 1579884615415,\\n    \\\"file\\\": {\\n        \\\"name\\\": \\\"4_animated.jpeg\\\",\\n        \\\"url\\\": \\\"https://storage.googleapis.com/copper_test/77ddb795-24ad-4607-96ae- b08b4d86406a/d2dcc67ab888d34ee272899c020b13402856f81597228322079eb007e8c9\\\",\\n        \\\"mimeType\\\": \\\"image/jpeg\\\",\\n        \\\"category\\\": \\\"IMAGE\\\",\\n        \\\"size\\\": 1280\\n    }\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"whenanactionisperformed\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"When an action is performed\"), mdx(\"br\", null), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 1,\\n    \\\"eventId\\\": \\\"823529374573490\\\",\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"eventDate\\\": 1577405697374,\\n    \\\"action\\\": {\\n        \\\"postbackData\\\": \\\"open_url \\\",\\n        \\\"postbackText\\\": \\\"Visit website\\\"\\n    }\\n}\\n\"))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#when-the-user-sends-an-rcs-message","title":"When the user sends an RCS message"},{"url":"#when-the-user-sends-an-rcs-file","title":"When the user sends an RCS file"},{"url":"#when-an-action-is-performed","title":"When an action is performed"}]},"timeToRead":1,"parent":{"__typename":"File","relativePath":"rcs/webhook_message_action/examples.md","fields":{"gitLogLatestAuthorName":"Irais Aguirre","gitLogLatestAuthorEmail":"irais.aguirre@conceptomovil.com","gitLogLatestDate":"5 hours ago"}},"frontmatter":{"metaTitle":null,"showMetadata":null,"editable":null,"showPreviousNext":null,"showToc":null}},"gitBranch":{"name":"20211019-2FACTOR_AUTH"},"gitCommit":{"hash":"9713e1925aeb8cad930f91b6bf05d0b5937b2bb5","date":"2026-11-13 06:39"}},"pageContext":{"id":"80a71cb7-d20a-5929-837d-6317380604a2"}},"staticQueryHashes":["12478684","12478684","2882937274","2882937274","353167761","353167761"]}