List readings for an explicitly linked account
LogsGET /readings
Pages the meter readings of one linked account, each with its meter serial. account_id is required (400 without it) and the caller needs read access to the account, otherwise 403. Pagination uses limit and after.
Parameters
tenant_idTenant (utility workspace) that owns the account; when omitted it is worked out from the caller's account memberships.
account_idRequired identifier of the linked account whose readings are listed.
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
meter_idReturns only readings of this meter.
statusReturns only readings in this status: submitted, validating, accepted, review_required, rejected or superseded; any other value returns 400.
one of
submitted,validating,accepted,review_required,rejected,supersededmethodReturns only readings taken by this method: manual, consumer, remote, imported or estimated; any other value returns 400.
one of
manual,consumer,remote,imported,estimated
Returns
200 Readings in the selected account after membership authorization
curl -X GET "$CONSUMER_API/readings" \
-H "Authorization: Bearer sk_test_..."
examplectl readings list --json
const res = await fetch("$CONSUMER_API/readings", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/readings",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/readings", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Readings in the selected account after membership authorization