IoT Data (Waygo) API

This endpoint retrieves historical IoT data records for assets. It allows filtering by various criteria including timestamp ranges and names to analyze sensor readings and asset status over time.

Base URL

All requests to the IoT Data API should be made to the following endpoint:

GET https://paas-uat.v3nity.com/api/resource/track/data/iotdata

Authentication

This API supports two methods of authentication. You must include your credentials in the Authorization header of every request. The tenant context is automatically derived from your credentials.

1. API Key Authentication

Include your unique API key directly in the header.

Authorization: <YOUR_API_KEY>

2. Bearer Token Authentication

Use a JWT access token obtained from the login endpoint, prefixed with Bearer.

Authorization: Bearer <YOUR_ACCESS_TOKEN>

Request Parameters

All parameters are passed as query strings. To perform a range query (e.g., for timestamps), repeat the parameter with gte: (Greater Than or Equal) and lte: (Lesser Than or Equal) prefixes.

Parameter Type Status Description
timestamp datetime Mandatory Filters records by the device-reported time.
Format: YYYY-MM-DDTHH:mm:ss.SSSZ
Range Example: ?timestamp=gte:2025-07-08T00:00:00.000Z×tamp=lte:2025-07-08T23:00:00.000Z
create_time datetime Optional Filter by the record creation time (UTC ISO 8601).
tenant_name nvarchar(100) Optional Filter by tenant name.
asset_name nvarchar(100) Optional Filter by asset name.
asset_type_name nvarchar(100) Optional Filter by asset category.
description nvarchar(100) Optional Filter by asset description.
asset_location_name nvarchar(200) Optional Filter by the name of the asset location.
Sensor Data (Dynamic)
data.FrequencyStringOptionalFrequency
data.VbFloatOptionalConverted Vb [m3]
data.VmFloatOptionalUnconverted Vm [m3]
data.PFloatOptionalPressure P [bar]
data.TFloatOptionalTemperature T [°C]
data.Vbdh_TFloatOptionalTotal Vb+Vbs hr Vbdh_T [m3]
data.VbdhFloatOptionalVd in hour Vbdh [m3]
data.VbsdhFloatOptionalVbs in hour Vbsdh [m3]
data.VmdhFloatOptionalVm in hour Vmdh [m3]
data.VsdhFloatOptionalVs in hour Vsdh [m3]
data.Vmdh_NFloatOptionalVm norm. cond hr Vmdh_N [m3]
data.Vbdd_TFloatOptionalTotal Vb+Vbs hr Vbdd_T [m3]
data.BVFloatOptionalBattery voltage BV [V]
data.BCFloatOptionalBattery capacity BC [%]
data.QFloatOptionalFlow Q [m3/h]
data.QbFloatOptionalBase flow Qb [m3/h]
data.PmaxFloatOptionalMax Pressure Pmax [bar]
data.T_PmaxStringOptionalMax Pressure Time T_Pmax
data.PminFloatOptionalMin Pressure Pmin [bar]
data.T_PminStringOptionalMin Pressure Time T_Pmin
data.TmaxFloatOptionalMax Temperature Tmax [°C]
data.T_TmaxStringOptionalMax Temperature Time T_Tmax
data.TminFloatOptionalMin Temperature Tmin [°C]
data.T_TminStringOptionalMin Temperature Time T_Tmin
data.QmaxFloatOptionalMax Flow Qmax [m3/h]
data.T_QmaxStringOptionalMax Flow Time T_Qmax
data.QminFloatOptionalMin Flow Qmin [m3/h]
data.T_QminStringOptionalMin Flow Time T_Qmin
data.QbmaxFloatOptionalMax Base Flow Qbmax [m3/h]
data.T_QbmaxStringOptionalMax Base Flow Qbmax Time
data.QbminFloatOptionalMin Base Flow Qbmin [m3/h]
data.T_QbminStringOptionalMin Base Flow Qbmin Time
data.BC_iotIntegerOptionalBattery Capacity IOT

Request Example

Querying for a specific asset within a 24-hour range:

GET https://paas-uat.v3nity.com/api/resource/track/data/iotdata?timestamp=gte:2025-07-08T00:00:00.000Z×tamp=lte:2025-07-08T23:00:00.000Z&asset_name=Test%20Device

cURL Examples

Using Bearer Token

curl -X GET "https://paas-uat.v3nity.com/api/resource/track/data/iotdata?timestamp=gte:2025-07-08T00:00:00.000Z&timestamp=lte:2025-07-08T23:00:00.000Z&asset_name=Test%20Device" -H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"

Using API Key

curl -X GET "https://paas-uat.v3nity.com/api/resource/track/data/iotdata?timestamp=gte:2025-07-08T00:00:00.000Z&timstamp=lte:2025-07-08T23:00:00.000Z&asset_name=Test%20Device" -H "Authorization: <YOUR_API_KEY>"

Response Fields

Field Type Description
create_time datetime The server-side timestamp when the record was created (UTC ISO 8601).
timestamp datetime The actual timestamp reported by the IoT device (UTC ISO 8601).
tenant_name nvarchar(100) The name of the tenant owning the asset.
asset_name nvarchar(100) The display name of the asset.
asset_type_name nvarchar(100) The category or type of the asset (e.g., Waste Bin).
description nvarchar(100) Detailed description of the asset.
asset_location_name nvarchar(200) The name of the location where the asset is deployed.
Sensor Data (Dynamic)
data.FrequencyStringFrequency
data.VbFloatConverted Vb [m3]
data.VmFloatUnconverted Vm [m3]
data.PFloatPressure P [bar]
data.TFloatTemperature T [°C]
data.Vbdh_TFloatTotal Vb+Vbs hr Vbdh_T [m3]
data.VbdhFloatVd in hour Vbdh [m3]
data.VbsdhFloatVbs in hour Vbsdh [m3]
data.VmdhFloatVm in hour Vmdh [m3]
data.VsdhFloatVs in hour Vsdh [m3]
data.Vmdh_NFloatVm norm. cond hr Vmdh_N [m3]
data.Vbdd_TFloatTotal Vb+Vbs hr Vbdd_T [m3]
data.BVFloatBattery voltage BV [V]
data.BCFloatBattery capacity BC [%]
data.QFloatFlow Q [m3/h]
data.QbFloatBase flow Qb [m3/h]
data.PmaxFloatMax Pressure Pmax [bar]
data.T_PmaxStringMax Pressure Time T_Pmax
data.PminFloatMin Pressure Pmin [bar]
data.T_PminStringMin Pressure Time T_Pmin
data.TmaxFloatMax Temperature Tmax [°C]
data.T_TmaxStringMax Temperature Time T_Tmax
data.TminFloatMin Temperature Tmin [°C]
data.T_TminStringMin Temperature Time T_Tmin
data.QmaxFloatMax Flow Qmax [m3/h]
data.T_QmaxStringMax Flow Time T_Qmax
data.QminFloatMin Flow Qmin [m3/h]
data.T_QminStringMin Flow Time T_Qmin
data.QbmaxFloatMax Base Flow Qbmax [m3/h]
data.T_QbmaxStringMax Base Flow Qbmax Time
data.QbminFloatMin Base Flow Qbmin [m3/h]
data.T_QbminStringMin Base Flow Qbmin Time
data.BC_iotIntegerBattery Capacity IOT

Response Example

Sample response for a query within the range 2025-07-08T00:00:00.000Z to 2025-07-08T23:00:00.000Z:

[
  {
    "create_time": "2025-07-08T08:00:05.123Z",
    "timestamp": "2025-07-08T08:00:00.000Z",
    "tenant_name": "V3 Smart Tech",
    "asset_name": "Test Device",
    "asset_type_name": "Waste Bin",
    "description": "General Waste Bin at Sector 1",
    "asset_location_name": "Sector 1 Entrance",
    "data.Frequency": "Daily",
    "data.P": 1.25,
    "data.T": 28.5,
    "data.BC": 92.0
  },
  {
    "create_time": "2025-07-08T09:00:10.456Z",
    "timestamp": "2025-07-08T09:00:00.000Z",
    "tenant_name": "V3 Smart Tech",
    "asset_name": "Bin-B2",
    "asset_type_name": "Recycle Bin",
    "description": "Recycle Bin at Sector 2",
    "asset_location_name": "Sector 2 Parking",
    "data.Frequency": "Daily",
    "data.P": 1.18,
    "data.T": 29.1,
    "data.BC": 88.5
  }
]
ℹ️

Note on Date Ranges

To filter by a range, provide the same parameter twice in the URL: once with the gte: prefix for the start time, and once with the lte: prefix for the end time.