---
# System prepended metadata

title: Untitled

---

```jsx=
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://sandbox.copilot.fabric.inc/api-pim/group-tree',
  headers: { 
    'x-site-context': '{"date":"2021-09-15T07:26:36.714Z","channel":12, "stage": "sandbox","site": "https://nprdev01.countercoffeesandbox.fabric.zone","account":"6024fb5291bd9f0008b578ba"}', 
    'Authorization': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxNDBiMDAxZmQ0OWE2MDAwOTMwYTExZiIsInJvbGVzIjpbIkFkbWluIl0sInBlcm1pc3Npb25zIjpbIndyaXRlOmNvbGxlY3Rpb24iLCJ3cml0ZTpyb2xlIiwicmVhZDpyb2xlIiwicmVhZDphdHRyaWJ1dGUtZ3JvdXAiLCJ3cml0ZTpza3VzZXQiLCJ3cml0ZTphdHRyaWJ1dGUtZ3JvdXAiLCJ3cml0ZTp1c2VyIiwid3JpdGU6YXR0cmlidXRlIiwicmVhZDpwZXJtaXNzaW9uIiwicmVhZDpza3VzZXQiLCJyZWFkOmF0dHJpYnV0ZSIsInJlYWQ6Y29sbGVjdGlvbiIsInJlYWQ6dXNlciJdLCJhY2NvdW50IjoiNjAyNGZiNTI5MWJkOWYwMDA4YjU3OGJhIiwiYWNjb3VudElkIjo0MzE0MTgzNzU5LCJ1c2VyVHlwZSI6eyJraW5kIjoiUkVHSVNURVJFRCJ9LCJpYXQiOjE2MzE4MDE0NzQsImV4cCI6MTYzMTgwMzI3NH0.R6zztxQiYL3dAbHJVyROAC0B7vrEdd-V_6KhU1SgLv6GGnzFDsFYH1opV9iJI9x9RrEGET2_XWRuY_wQA72qGQ'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```