{"id":2266,"date":"2020-10-08T13:18:37","date_gmt":"2020-10-08T11:18:37","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=2266"},"modified":"2025-12-29T11:02:51","modified_gmt":"2025-12-29T10:02:51","slug":"get-list-of-employees","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/my-company\/get-list-of-employees\/","title":{"rendered":"Get list of employees"},"content":{"rendered":"\n<p>Allows to acquire list of user\u2019s com\u00adpa\u00adny employ\u00adees<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described <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\">Url parameters and connection settings<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL: <\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint: <\/strong>\/ex\u00adt\/\u00adcom\u00adpa\u00adnies-api\/v1\/\u00adcom\u00adpa\u00adnies\/em\u00adploy\u00adees<\/li>\n\n\n\n<li><strong>Http Method:<\/strong> 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\">Example request<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>GET https:\/\/api.platform.trans.eu\/ext\/companies-api\/v1\/companies\/employees<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Example response<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>[\n  {\n    \"account_id\": 749989,\n    \"family_name\": \"Testowy\",\n    \"given_name\": \"User\",\n    \"hidden\": true,\n    \"is_driver\": false,\n    \"job_title\": \"Stanowisko\",\n    \"roles\": [\n      {\n        \"name\": \"administrator\",\n        \"product\": \"basic\"\n      },\n      {\n        \"name\": \"freights_manage\",\n        \"product\": \"tff\"\n      }\n    ],\n    \"trans_id\": \"1111111-1\"\n  },\n  {\n    \"next_employee_example\": \"next_employee_example\"\n  }\n]<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to acquire list of user\u2019s com\u00adpa\u00adny employ\u00adees<\/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":[64],"tags":[],"class_list":["post-2266","post","type-post","status-publish","format-standard","hentry","category-my-company"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":2266},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2266","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=2266"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2266\/revisions"}],"predecessor-version":[{"id":5532,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2266\/revisions\/5532"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=2266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=2266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=2266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}