GET
/
sensor
/
:id
Get sensor by ID
curl --request GET \
  --url https://api.truecold.io/sensor/:id \
  --header 'x-api-key: <api-key>'
{
  "device_id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "status": "<string>",
  "last_reading_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact your administrator to get an API key.

Path Parameters

id
string
required

Sensor ID

Response

Successfully retrieved sensor

device_id
string

Sensor device identifier

name
string

Sensor name

type
string

Sensor type

status
string

Sensor status

last_reading_at
string<date-time>

Last reading timestamp