RelynkLearn
Builder APIAPI referenceMeters

meters.list (version 1)

EOS meters (energy, water and waste metering: electricity, district heating and cooling, gas, water, waste) with their carrier, unit, whether they count in building totals (building meters) or are sub-meters, virtual (calculated from other meters) or tenant (lease) meters, what they are used for, and until when EOS has processed them. Filter by building, carrier, id, name, buildingMetersOnly or virtual. Feed the ids to consumption.meters; for a building total use consumption.buildings, which sums exactly the building meters. Pages by id: pass nextCursor back until it is null.

POST
/meters.list/v1

Authorization

bearer
headerAuthorizationBearer <JWT>

A signed-in Relynk user's access token: OAuth 2.0 authorization code with PKCE at https://auth.relynk.io/authorize and https://auth.relynk.io/oauth/token, with audience https://ai.relynk.io/builder. The caller sees exactly what that user may see.

Query Parameters

tenantId?string

The tenant to read. May be left out when the caller belongs to exactly one tenant; GET /me lists them.

Formatuuid

Request Body

application/json
  1. body
buildingId?string

A building id (from buildings.list). Matches the building itself and everything that is part of it

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
carriers?array<>

Only these carriers; omit for all

Items1 <= items <= 7
ids?array<>

Only these meters

Items1 <= items <= 1000
buildingMetersOnly?boolean

Only the meters EOS sums into building totals

Defaultfalse
virtual?boolean

true: only virtual meters, false: only physical ones; omit for both

search?string

Only names containing this text, ignoring case

Length1 <= length <= 200
limit?integer
Range1 <= value <= 1000
Default500
cursor?string

nextCursor from the previous page; omit for the first page

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The function output

application/json
  1. response
meters*array<>
Itemsitems <= 1000
nextCursor*|

Pass as cursor for the next page; null on the last

Example Request
curl -X POST 'https://ai.relynk.io/builder/v1/meters.list/v1' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "meters": [    {      "id": "string",      "name": "string",      "typeKey": "string",      "typeName": "string",      "carrier": "electricity",      "unit": "kWh",      "isBuildingMeter": true,      "isVirtual": true,      "buildingId": "string",      "buildingName": "string",      "consumedForUse": "string",      "wasteFraction": "string",      "countAsSortedWaste": true,      "lease": {        "id": "string",        "name": "string",        "start": "string",        "end": "string"      },      "sourcePointId": "string",      "processedUntil": "string"    }  ],  "nextCursor": "string"}