Rest API (v1)


A REST API to interact with Wia platform to enable external applications to analyse energy consumption and to automate internal operations relating to the capturing and grouping of energy consumption.

To get started, please ensure you have the correct permissions and appropriate key. If you have not been provided a key, please contact your representative.

The API is organised around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Download OpenAPI description
Languages
Servers
Mock server
https://docs.wia.io/_mock/apis/wia-rest-api/docs/
Production
https://api.wia.io/v1/

Alert

Alerts provide information about devices that have gone offline or exhibited anomalies in their data, helping to monitor system health and identify potential issues.
Alerts can be resolved by acknowledging them, and can be filtered by their resolution status.

Operations

Device

Devices are a representation of objects that are connected to the Wia platform and can be used to collect data from the environment. The objects can be physical sensors, cloud integrations or manual uploads.

Operations

Energy

Energy consumption data is used to track the amount of energy used by a customer over a given time period.
The data can be used to identify energy-saving opportunities, monitor energy usage for sustainability initiatives, and track energy usage for billing purposes.

Operations

Gateway

Gateways are devices that connect to the Wia platform and are used to transport data from other devices in the environment to the Wia platform.

Operations

List Gateways

Request

List Gateways

Query
space.idstring

Id of Space

organisation.idstring

Id of Organisation

product.idstring

Id of Product

limitinteger(int32)

Max number of rows to return

Example: limit=20
pageinteger(int32)

Section of rows to return e.g. 0, 1 or 2

sortstring

Sort by Ascending or Descending order Default: DESC

Enum"ASC""DESC"
orderstring

Order by column e.g. id

curl -i -X GET \
  'https://docs.wia.io/_mock/apis/wia-rest-api/docs/gateways/?limit=20&order=string&organisation.id=string&page=0&product.id=string&sort=ASC&space.id=string' \
  -H 'Authorization: Bearer <YOUR_Bearer_HERE>'

Responses

OK

Bodyapplication/jsonArray [
idstring
Example: "gty_123abc456"
serialNumberstring
Example: "abc_23243456"
namestring
Example: "Test Gateway"
productobject
isOnlineboolean
Example: true
loraobject
lastSeenAtinteger
Example: 1631707207000
]
Response
application/json
[ { "id": "gty_123abc456", "serialNumber": "abc_23243456", "name": "Test Gateway", "product": {}, "isOnline": true, "lora": {}, "lastSeenAt": 1631707207000 } ]

Retrieve a Gateway

Request

Retrieve a Gateway

Path
idstringrequired

Id of the Gateway

curl -i -X GET \
  'https://docs.wia.io/_mock/apis/wia-rest-api/docs/gateways/{id}' \
  -H 'Authorization: Bearer <YOUR_Bearer_HERE>'

Responses

OK

Bodyapplication/json
idstring
Example: "gty_123abc456"
serialNumberstring
Example: "abc_23243456"
namestring
Example: "Test Gateway"
productobject
isOnlineboolean
Example: true
loraobject
lastSeenAtinteger
Example: 1631707207000
Response
application/json
{ "id": "gty_123abc456", "serialNumber": "abc_23243456", "name": "Test Gateway", "product": { "id": "pro_abcdef123" }, "isOnline": true, "lora": { "gatewayId": "123abc456def" }, "lastSeenAt": 1631707207000 }

Space

Spaces are physical locations that are monitored by the Wia platform and house all devices and gateways that represent that location.

Operations