{
  "opencollection": "1.0.0",
  "info": {
    "name": "Consumers Energy Green Button Connect My Data API (UtilityAPI)",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://utilityapi.com/authorize",
      "accessTokenUrl": "https://utilityapi.com/api/v2/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Authorizations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List authorizations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/authorizations"
          },
          "docs": "List authorizations"
        },
        {
          "info": {
            "name": "Get an authorization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/authorizations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an authorization"
        },
        {
          "info": {
            "name": "Revoke an authorization",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://utilityapi.com/api/v2/authorizations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Revoke an authorization"
        }
      ]
    },
    {
      "info": {
        "name": "Meters",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List meters",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/meters",
            "params": [
              {
                "name": "meters",
                "value": "",
                "type": "query",
                "description": "Filter by meter id(s)."
              }
            ]
          },
          "docs": "List meters"
        },
        {
          "info": {
            "name": "Get a meter",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/meters/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a meter"
        }
      ]
    },
    {
      "info": {
        "name": "Bills",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List bills",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/bills",
            "params": [
              {
                "name": "meters",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List bills"
        }
      ]
    },
    {
      "info": {
        "name": "Intervals",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List interval (usage) data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/intervals",
            "params": [
              {
                "name": "meters",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List interval (usage) data"
        }
      ]
    },
    {
      "info": {
        "name": "GreenButton",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Green Button ESPI batch resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://utilityapi.com/api/v2/DataCustodian/espi/1_1/resource/Batch/Subscription/:subscriptionId/UsagePoint/:usagePointId",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path"
              },
              {
                "name": "usagePointId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieves Green Button ESPI 1.1 batch XML for the given subscription\nand usage point. Returned as application/atom+xml.\n"
        }
      ]
    }
  ],
  "bundled": true
}