Skip to main content
GET
/
devices
/
{device_id}
/
data
Get device sensor data
curl --request GET \
  --url https://app.mertani.co.id/external/v1/devices/{device_id}/data \
  --header 'Authorization: Basic <encoded-value>'
{
  "message": "Success",
  "data": [
    {
      "timestamp": "2026-05-05T07:00:00+07:00",
      "sensors": [
        {
          "id": "DEV001-sig",
          "value": 15,
          "unit": "."
        },
        {
          "id": "DEV001-batt",
          "value": 92,
          "unit": "%"
        },
        {
          "id": "DEV001-flTemp",
          "value": 29.8,
          "unit": "C"
        },
        {
          "id": "DEV001-flLev",
          "value": 152.45,
          "unit": "cm"
        }
      ]
    },
    {
      "timestamp": "2026-05-05T07:15:00+07:00",
      "sensors": [
        {
          "id": "DEV001-sig",
          "value": 16,
          "unit": "."
        },
        {
          "id": "DEV001-batt",
          "value": 91,
          "unit": "%"
        },
        {
          "id": "DEV001-flTemp",
          "value": 30.2,
          "unit": "C"
        },
        {
          "id": "DEV001-flLev",
          "value": 153.1,
          "unit": "cm"
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://test-docs.mertani.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

device_id
string
required

Query Parameters

start
string<date-time>
required
end
string<date-time>
required
tz
integer

Response

Success

message
string
Example:

"Success"

data
object[]
Last modified on May 5, 2026