{"id":709,"date":"2024-01-08T15:41:32","date_gmt":"2024-01-08T15:41:32","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=709"},"modified":"2024-01-08T15:41:32","modified_gmt":"2024-01-08T15:41:32","slug":"incoming-message","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=709","title":{"rendered":"Incoming Message"},"content":{"rendered":"\n\n\t<h1>Incoming Message<\/h1>\n<p>Incoming Message Event Flow<\/p>\n\t<p><strong>Event flow name: <\/strong><strong>incoming_message<\/strong><\/p>\n<p>This event flow contains events related to\u00a0<strong>leads\/messages received from users<\/strong>.<\/p>\n<table>\n<thead>\n<tr>\n<th>Event type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>incoming_message_success<\/td>\n<td>The message was successfully sent from the origin<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In this flow, there&#8217;s only one event possible that&#8217;s triggered when a new lead is sent to a published ad.<\/p>\n\t<p><strong>incoming_message_success<\/strong><\/p>\n<code>incoming_message_success.json\n{\n    \"data\": {\n        \"ad_id\": 9846457,\n        \"conversation_id\": \"9846457\",\n        \"created_at\": \"2018-07-16T11:04:50.000+0100\",\n        \"from\": \"imovirtual\",\n        \"id\": 208853314,\n        \"message\": \"This is a test message\",\n        \"sender_name\": \"John Doe\",\n        \"sender_email\": \"myemail@gmail.com\",\n        \"sender_phone\": 961231212,\n        \"uuid\": \"6073df05-2979-4372-a552-4c906a02a5cc\"\n    },\n    \"destination\": \"https:\/\/myawesomeapp.com\/webhooks\",\n    \"event_type\": \"incoming_message_success\",\n    \"flow\": \"incoming_message\",\n    \"object_id\": \"6073df05-2979-4372-a552-4c906a02a5cc\",\n    \"event_timestamp\": 1531735505952,\n    \"timestamp\": 1524148443449,\n    \"transaction_id\": \"b480075b-43de-11e8-a691-55a1dd521900\"\n}<\/code><button onclick=\"copyJson('copy_36825')\">Copy<\/button>\nincoming_message_success.json\n{\n    &#8220;data&#8221;: {\n        &#8220;ad_id&#8221;: 9846457,\n        &#8220;conversation_id&#8221;: &#8220;9846457&#8221;,\n        &#8220;created_at&#8221;: &#8220;2018-07-16T11:04:50.000+0100&#8221;,\n        &#8220;from&#8221;: &#8220;imovirtual&#8221;,\n        &#8220;id&#8221;: 208853314,\n        &#8220;message&#8221;: &#8220;This is a test message&#8221;,\n        &#8220;sender_name&#8221;: &#8220;John Doe&#8221;,\n        &#8220;sender_email&#8221;: &#8220;myemail@gmail.com&#8221;,\n        &#8220;sender_phone&#8221;: 961231212,\n        &#8220;uuid&#8221;: &#8220;6073df05-2979-4372-a552-4c906a02a5cc&#8221;\n    },\n    &#8220;destination&#8221;: &#8220;https:\/\/myawesomeapp.com\/webhooks&#8221;,\n    &#8220;event_type&#8221;: &#8220;incoming_message_success&#8221;,\n    &#8220;flow&#8221;: &#8220;incoming_message&#8221;,\n    &#8220;object_id&#8221;: &#8220;6073df05-2979-4372-a552-4c906a02a5cc&#8221;,\n    &#8220;event_timestamp&#8221;: 1531735505952,\n    &#8220;timestamp&#8221;: 1524148443449,\n    &#8220;transaction_id&#8221;: &#8220;b480075b-43de-11e8-a691-55a1dd521900&#8221;\n}\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>Incoming Message Incoming Message Event Flow Event flow name: incoming_message This event flow contains events related to\u00a0leads\/messages received from users. Event type Description incoming_message_success The message was successfully sent from the origin In this flow, there&#8217;s only one event possible that&#8217;s triggered when a new lead is sent to a published ad. incoming_message_success incoming_message_success.json {&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=709\" title=\"Read Incoming Message\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/709"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}