{
  "opencollection": "1.0.0",
  "info": {
    "name": "FirstPromoter Dashboards API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Dashboards",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get dashboard stats",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.firstpromoter.com/api/v2/company/dashboards/stats",
            "headers": [
              {
                "name": "Account-ID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filters",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns data for stats from the top and pending actions. \n <Tip>**HTTP Request** <br/>`GET https://api.firstpromoter.com/api/v2/company/dashboards/stats`</Tip>"
        },
        {
          "info": {
            "name": "Get dashboard trendings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.firstpromoter.com/api/v2/company/dashboards/trendings",
            "headers": [
              {
                "name": "Account-ID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filters",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns data for stats from the top and pending actions. \n <Tip>**HTTP Request** <br/>`GET https://api.firstpromoter.com/api/v2/company/dashboards/trendings`</Tip>"
        },
        {
          "info": {
            "name": "Get dashboard chart data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.firstpromoter.com/api/v2/company/dashboards/chart_data",
            "headers": [
              {
                "name": "Account-ID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filters",
                "value": "",
                "type": "query"
              },
              {
                "name": "period_from",
                "value": "",
                "type": "query",
                "description": "Date from"
              },
              {
                "name": "period_to",
                "value": "",
                "type": "query",
                "description": "Date to"
              },
              {
                "name": "selection",
                "value": "",
                "type": "query",
                "description": "Selection"
              }
            ]
          },
          "docs": "Returns data for chart. \n <Tip>**HTTP Request** <br/>`GET https://api.firstpromoter.com/api/v2/company/dashboards/chart_data`</Tip>"
        },
        {
          "info": {
            "name": "Get dashboard payouts and commissions data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.firstpromoter.com/api/v2/company/dashboards/payouts_and_commissions",
            "headers": [
              {
                "name": "Account-ID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filters",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns data for payouts and commissions. \n <Tip>**HTTP Request** <br/>`GET https://api.firstpromoter.com/api/v2/company/dashboards/payouts_and_commissions`</Tip>"
        }
      ]
    }
  ],
  "bundled": true
}