{"id":1790,"date":"2020-05-15T11:46:40","date_gmt":"2020-05-15T09:46:40","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1790"},"modified":"2025-12-29T11:07:09","modified_gmt":"2025-12-29T10:07:09","slug":"get-list-of-monitoring-tasks","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/monitoring-tasks\/lists-of-tasks\/get-list-of-monitoring-tasks\/","title":{"rendered":"Get list of monitoring tasks"},"content":{"rendered":"\n<p>Allows to get list of mon\u00adi\u00adtor\u00ading tasks.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Url parameters and connection settings<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL:&nbsp;<\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:<\/strong>\/ex\u00adt\/loads-mon\u00adi\u00adtor\u00ading-api\/v1\/\u00admon\u00adi\u00adtor\u00adings<\/li>\n\n\n\n<li><strong>Http Method:<\/strong>&nbsp;GET<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Headers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept: application\/json<\/li>\n\n\n\n<li>Con\u00adtent-type: application\/json<\/li>\n\n\n\n<li>Autho\u00adriza\u00adtion: Bear\u00ader {access_token}<\/li>\n\n\n\n<li>Api-key: {unique_ap\u00adp_api-key}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Authorization<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>here<\/a>. Each API request must also con\u00adsist of unique Api-key obtained dur\u00ading appli\u00adca\u00adtion reg\u00adis\u00adtra\u00adtion togeth\u00ader with client_id and client_secret.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Response body example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"date_created\": \"2021-02-17T10:59:38.000Z\",\n  \"devices\": [\n    {\n      \"date_from\": \"2021-02-18T09:45:03.000Z\",\n      \"date_to\": null,\n      \"details\": {\n        \"device_id\": 680224,\n        \"kind\": \"lorry\",\n        \"manufacturer\": null,\n        \"model\": null,\n        \"name\": \"Name\",\n        \"registration_plate_number\": \"Name12345\",\n        \"vehicle_id\": 231863\n      },\n      \"id\": \"3df5aa3e-f1ed-4d6d-995e-4271607d34f3\",\n      \"is_active\": true,\n      \"is_tracked\": true,\n      \"linked_monitoring_id\": null,\n      \"type\": \"fleet\",\n      \"way\": null\n    },\n    {\n      \"date_from\": \"2021-02-18T09:45:03.000Z\",\n      \"date_to\": null,\n      \"details\": {\n        \"device_id\": 681550,\n        \"kind\": \"semi-trailer\",\n        \"manufacturer\": null,\n        \"model\": null,\n        \"name\": \"Name2\",\n        \"registration_plate_number\": \"Name54321\",\n        \"vehicle_id\": 236490\n      },\n      \"id\": \"704d6d77-4d52-45d7-9cad-d3f634db7396\",\n      \"is_active\": true,\n      \"is_tracked\": true,\n      \"linked_monitoring_id\": null,\n      \"type\": \"fleet\",\n      \"way\": null\n    },\n    {\n      \"date_from\": \"2021-02-18T09:45:03.000Z\",\n      \"date_to\": null,\n      \"details\": {\n        \"account_id\": 771476,\n        \"device_id\": null,\n        \"document_number\": null,\n        \"document_type\": null,\n        \"first_name\": \"Jan\",\n        \"last_name\": \"Driver\",\n        \"name\": \"Jan Driver\",\n        \"phone_number\": null\n      },\n      \"id\": \"8886347d-b7c7-48f1-bb7f-c313bc97db2a\",\n      \"is_active\": true,\n      \"is_tracked\": true,\n      \"linked_monitoring_id\": null,\n      \"type\": \"executor\",\n      \"way\": null\n    }\n  ],\n  \"finished_at\": null,\n  \"id\": \"0e6139e1-6957-4d22-8915-61f81ad91cba\",\n  \"info\": \"example monitoring info\",\n  \"reference_number\": \"2021\/02\/0EV4\",\n  \"role\": \"shipper\",\n  \"spots\": [\n    {\n      \"id\": \"15b84868-0c2f-4e67-9b4d-28f3f659f2ce\",\n      \"operations\": [\n        {\n          \"completed_at\": null,\n          \"is_completed\": false,\n          \"time_frame\": {\n            \"date_from\": \"2021-02-16T14:00:00.000Z\",\n            \"date_to\": \"2021-02-16T23:00:00.000Z\"\n          },\n          \"type\": \"loading\"\n        }\n      ],\n      \"owner_monitoring_id\": \"0e6139e1-6957-4d22-8915-61f81ad91cba\",\n      \"place\": {\n        \"address\": {\n          \"country\": \"PL\",\n          \"locality\": \"Warszawa\",\n          \"name\": null,\n          \"number\": \"35\",\n          \"postcode\": \"00-010\",\n          \"street\": \"Sienkiewicza\"\n        },\n        \"coordinates\": {\n          \"latitude\": 48.4977774,\n          \"longitude\": 35.0896543\n        }\n      }\n    },\n    {\n      \"id\": \"ba4f4a2b-c40e-46a5-845c-cee1e989646f\",\n      \"operations\": [\n        {\n          \"completed_at\": null,\n          \"is_completed\": false,\n          \"time_frame\": {\n            \"date_from\": \"2021-02-17T23:00:00.000Z\",\n            \"date_to\": \"2021-02-17T23:00:00.000Z\"\n          },\n          \"type\": \"unloading\"\n        }\n      ],\n      \"owner_monitoring_id\": \"0e6139e1-6957-4d22-8915-61f81ad91cba\",\n      \"place\": {\n        \"address\": {\n          \"country\": \"PL\",\n          \"locality\": \"Wroc\u0142aw\",\n          \"name\": null,\n          \"number\": \"1\",\n          \"postcode\": \"50-261\",\n          \"street\": \"J. Narodowej\"\n        },\n        \"coordinates\": {\n          \"latitude\": 52.52437,\n          \"longitude\": 13.41053\n        }\n      }\n    }\n  ],\n  \"status\": \"alert\",\n  \"time_frame\": {\n    \"date_from\": \"2021-02-16T13:30:00.000Z\",\n    \"date_to\": \"2021-02-18T23:00:00.000Z\"\n  },\n  \"next_example\": \"page_example\"\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to get list of mon\u00adi\u00adtor\u00ading tasks.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[101],"tags":[],"class_list":["post-1790","post","type-post","status-publish","format-standard","hentry","category-lists-of-tasks"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1790},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=1790"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1790\/revisions"}],"predecessor-version":[{"id":5545,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1790\/revisions\/5545"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}