{"id":941,"date":"2024-01-28T13:44:06","date_gmt":"2024-01-28T13:44:06","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=941"},"modified":"2024-01-29T11:44:05","modified_gmt":"2024-01-29T11:44:05","slug":"get-thread","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=941","title":{"rendered":"Get thread"},"content":{"rendered":"\r\n<h2>Get thread<\/h2>\r\n<p>&nbsp;<\/p>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"threadId\">threadId required<\/td>\r\n<td>integer<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<h5>RESPONSE SCHEMA:\u00a0application\/json<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"id\">id<\/td>\r\n<td>integer\r\n<p>Thread ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"advert_id\">advert_id<\/td>\r\n<td>integer\r\n<p>Advert ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"interlocutor_id\">interlocutor_id<\/td>\r\n<td>integer\r\n<p>User ID whom is conversation with<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"total_count\">total_count<\/td>\r\n<td>integer\r\n<p>Total count of messages in thread<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"unread_count\">unread_count<\/td>\r\n<td>integer\r\n<p>Count of unread messages in thread<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"created_at\">created_at<\/td>\r\n<td>string\u00a0&lt;date-time&gt;\r\n<p>Time when thread was created<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"is_favourite\">is_favourite<\/td>\r\n<td>boolean\r\n<p>Is this thread marked as favourite<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/threads\/{threadId} <code>GET\r\n\/threads\/{threadId}\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n{\r\n\"id\": 1,\r\n\"advert_id\": 1,\r\n\"interlocutor_id\": 1,\r\n\"total_count\": 1,\r\n\"unread_count\": 0,\r\n\"created_at\": \"2018-01-30 08:26:36\",\r\n\"is_favourite\": false\r\n}\t\t\t<\/code> <button>Copy<\/button> GET \/threads\/{threadId} Response samples 200 Content type application\/json { &#8220;id&#8221;: 1, &#8220;advert_id&#8221;: 1, &#8220;interlocutor_id&#8221;: 1, &#8220;total_count&#8221;: 1, &#8220;unread_count&#8221;: 0, &#8220;created_at&#8221;: &#8220;2018-01-30 08:26:36&#8221;, &#8220;is_favourite&#8221;: false } Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get thread &nbsp; AUTHORIZATIONS:&gt; access_token PATH\u00a0PARAMETERS threadId required integer Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json id integer Thread ID advert_id integer Advert ID interlocutor_id integer User ID whom is conversation with total_count integer Total count of messages in thread unread_count integer Count of unread messages in thread created_at string\u00a0&lt;date-time&gt; Time when thread was created is_favourite&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=941\" title=\"Read Get thread\">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":[96],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/941"}],"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=941"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/941\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}