       authHeader = {
         'Accept': 'application/json'
       }
-    robot.http("#{grafana_host}/api/dashboards/db/#{slug}").headers(authHeader).get() (err, res, body) ->
+    robot.http("#{grafana_host}/api/#{url}").headers(authHeader).get() (err, res, body) ->
       if (err)
         robot.logger.error err
         return callback(false)
-      dashboard = JSON.parse(body)
-      return callback(dashboard)
+      data = JSON.parse(body)
+      return callback(data)

    robot.logger.debug pid

    # Call the API to get information about this dashboard
    getDashboardInformation slug, (dashboard) ->
      robot.logger.debug dashboard

      # Check dashboard information

      else
        return match

  callGrafana = (url, callback) ->
    if grafana_api_key
      authHeader = {
        'Accept': 'application/json',
