Skip to main content
GET
/
organizations
/
{orgId}
/
counters
List Counters
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/counters \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "version": 123,
      "dtCreated": "2023-11-07T05:31:56Z",
      "dtLastModified": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedBy": "<string>",
      "code": "<string>",
      "productId": "<string>",
      "name": "<string>",
      "unit": "<string>"
    }
  ],
  "nextToken": "<string>"
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

orgId
string
required

UUID of the organization

Query Parameters

pageSize
integer<int32>

Number of Counters to retrieve per page

Required range: 1 <= x <= 200
nextToken
string

NextToken for multi page retrievals.

ids
string[]

List of Counter IDs to retrieve.

codes
string[]

List of Counter codes to retrieve. These are unique short codes to identify each Counter.

productId
string[]

List of Products UUIDs to retrieve Counters for.

Response

Returns the list of Counters.

data
object[]
nextToken
string