/api/v1/meters/{id}/readings (GET)
GET
/api/v1/meters/{id}/readings
const url = 'https://example.com/api/v1/meters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/readings?limit=20&sort=takenAt&dir=asc';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/meters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/readings?limit=20&sort=takenAt&dir=asc' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
f.when
string
f.source
Any of:
string
Array<string>
f.state
Any of:
string
Array<string>
not
Any of:
string
Array<string>
sort
string
dir
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
value
required
string
takenAt
required
string
source
required
string
state
required
string
loggedBy
required
object
displayName
required
string
note
required
string | null
rowVersion
required
number
proof
object
attachmentId
required
string format: uuid
fileId
required
string format: uuid
thumbUrl
required
string | null
ownedBy
object
type
required
string
id
required
string format: uuid
next_cursor
required
string | null
Example
{ "items": [ { "state": "accepted", "reviewReason": "lower_than_previous", "ownedBy": { "type": "fuel" } } ]}