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

Space

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

Operations

Retrieve list of all Spaces

Request

Retrieve list of all Spaces

Query
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

countrystring^[A-Z]{3}$

ISO 3166-1 alpha-3 country code

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

Responses

OK

Bodyapplication/jsonArray [
idstring
Example: "spc_abc123"
namestring
Example: "Test Space"
isPublicboolean
Example: false
disabledboolean
Example: false
avatarobject
ownerobject
]
Response
application/json
[ { "id": "spc_abc123", "name": "Test Space", "isPublic": false, "disabled": false, "avatar": {}, "owner": {} } ]

Retrieve a Space

Request

Retrieve a Space

Path
idstringrequired

Id of the space

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

Responses

OK

Bodyapplication/json
idstring
Example: "spc_abc123"
namestring
Example: "Test Space"
isPublicboolean
Example: false
disabledboolean
Example: false
avatarobject
ownerobject
Response
application/json
{ "id": "spc_abc123", "name": "Test Space", "isPublic": false, "disabled": false, "avatar": { "default": "1234-5342-5543-36AD", "url": "https://example.com/image", "thumbnail": "1234-5342-5543-36AD" }, "owner": { "organisation": {} } }