Decoder
Add sensor to decoder
postAdds the supplied sensor and key to the associated decoder
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The decoders unique id |
| Parameter: sensor_type_id | Type: String | Required: Yes |
Description:
The sensor types id which is to be added to the decoder |
| Parameter: key | Type: String | Required: Yes |
Description:
The unique key which identifies this reading within the decoder |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
The current sensor types and their associated keys |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a device decoder
postCreates the supplied decoder which is used for decoding data for a type of device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: name | Type: String | Required: Yes |
Description:
The decoders name |
| Parameter: description | Type: String | Required: Yes |
Description:
The decoders description |
| Parameter: type | Type: String | Required: Yes |
Description:
The device decoders type must be bluetooth, lorawan, serial or other |
| Parameter: loraWanMacVersion | Type: String | Required: No |
Description:
The LoraWAN Mac Version |
| Parameter: loraWanRevision | Type: String | Required: No |
Description:
The LoraWAN Regional parameters |
| Parameter: loraSupportClassB | Type: Boolean | Required: No |
Description:
LoraWAN Class Capabilities |
| Parameter: loraSupportClassC | Type: Boolean | Required: No |
Description:
LoraWAN Class Capabilities |
| Parameter: useRawPayload | Type: Boolean | Required: No |
Description:
Determines if the raw payload is provided for Things-Network and Sig-fox integrations |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created decoder |
| Field: id | Type: String |
Description:
The decoders platform unique id |
| Field: name | Type: String |
Description:
The decoders name |
| Field: description | Type: String |
Description:
The decoders description |
| Field: type | Type: String |
Description:
The decoders type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"description": [
"The description field is required."
]
}
}
Delete sensor from decoder
deleteDeletes the supplied sensor based on the supplied key and decoder_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The decoders unique id |
| Parameter: key | Type: String | Required: Yes |
Description:
The sensor key to be removed |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
the current sensor types and their associated keys |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"key": [
"The key field is required."
]
}
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a decoder
getGets the specified decoder
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The decoder unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested decoder |
| Field: id | Type: String |
Description:
The decoders platform unique id |
| Field: name | Type: String |
Description:
The decoder's name |
| Field: description | Type: String |
Description:
The decoder's description |
| Field: type | Type: String |
Description:
The decoders type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get all sensors for a decoder
getGet all the sensors for the supplied decoder
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The decoders unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
The decoders current senors |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get all decoders
getGet all decoders
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
decoders |
| Field: id | Type: String |
Description:
The decoders platform unique id |
| Field: name | Type: String |
Description:
The decoders name |
| Field: description | Type: String |
Description:
The decoders description |
| Field: type | Type: String |
Description:
The decoders type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Device
Add an event marker
postAdds an event marker to the associated device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The id of the device to attach the event marker to |
| Parameter: event_marker_id | Type: String | Required: Yes |
Description:
The event marker type to be used |
| Parameter: comment | Type: String | Required: Yes |
Description:
Description of the event marker |
| Parameter: date_published | Type: Datetime | Required: No |
Description:
The date of the event if not set will set to current date time |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
newly event marker |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: id | Type: String |
Description:
The event marker id |
| Field: comment | Type: String |
Description:
The event comment |
| Field: created_at | Type: String |
Description:
The datetime the device was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:F
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"comment": [
"The comment field is required."
]
}
}
404-Error-Response:
HTTP/1.1 404 Not Found
Add device readings
postAdds the supplied device readings for sensor parsing
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The id of the device the reading is being recorded against |
| Parameter: reading | Type: Array | Required: Yes |
Description:
The frame to be processed by the associated decoder |
| Parameter: readings | Type: Array | Required: No |
Description:
Array of sensor frames processed by the associated decoder, limited to 100 readings per submission |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a Bluetooth device
postCreates the supplied Bluetooth IoT Device, based on the associated device decoder and links to the supplied location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The id of the location the device is being added to |
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The id of the device decoder to be used for processing and sensor types |
| Parameter: mac_address | Type: String | Required: Yes |
Description:
The device macaddress. |
| Parameter: name | Type: String | Required: Yes |
Description:
The device name. |
| Parameter: comment | Type: String | Required: No |
Description:
The device comments. |
| Parameter: longitude | Type: String | Required: No |
Description:
The device longitude. |
| Parameter: latitude | Type: String | Required: No |
Description:
The device latitude. |
| Parameter: altitude | Type: String | Required: No |
Description:
The device altitude. |
| Parameter: parser_params | Type: Json | Required: No |
Description:
The device optional decoder parameters associated with this device. |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created device |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: mac_address | Type: String |
Description:
The device's unique macaddress |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: Double |
Description:
The device's longitude |
| Field: latitude | Type: Double |
Description:
The device's latitude |
| Field: altitude | Type: Double |
Description:
The device's altitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: created_at | Type: String |
Description:
The datetime the device was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"identifier": [
"The identifier field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Device has already been claimed."
}
External data webhook Chirp Stack
postAllows the submission of JSON frame to a named device from Chirp Stack, new devices are auto allocated into an imported location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Authorization | Type: String | Required: Yes |
Description:
Bearer Authorization Token |
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: No |
Description:
the optional Decoder ID can be used to map the device to a decoder. |
Response Fields (Success 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Core IoT Sensors which the updates apply to |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Forbidden" |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 400)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid JSON" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "Forbidden."
}
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid JSON."
}
Get a device sensors
getGet a device sensors
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: searchKey | Type: String | Required: No |
Description:
Optional search terms to match sensors with similar names |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensors |
| Field: id | Type: String |
Description:
The sensors unique id |
| Field: device_id | Type: String |
Description:
The associated device id |
| Field: key | Type: String |
Description:
The sensors unique key used for frame mapping |
| Field: name | Type: String |
Description:
The sensors name |
| Field: slope | Type: Numeric |
Description:
The slope to be applied to sensor values |
| Field: offset | Type: Numeric |
Description:
The offset to be applied to sensor values |
| Field: retention_days | Type: Int |
Description:
How long sensor data will be stored before being cleared down |
| Field: sensor_type_id | Type: String |
Description:
The associated sensor type id |
| Field: created_at | Type: String |
Description:
The datetime the sensor was created |
| Field: updated_at | Type: String |
Description:
The datetime the sensor was last updated |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
External data webhook Sigfox
postAllows the submission of JSON frame to a named device from Sigfox, new devices are auto allocated into an imported location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Authorization | Type: String | Required: Yes |
Description:
Bearer Authorization Token |
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: No |
Description:
the optional Decoder ID can be used to map the device to a decoder. |
Response Fields (Success 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Core IoT Sensors which the updates apply to |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Forbidden" |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 400)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid JSON" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "Forbidden."
}
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid JSON."
}
External data webhook Things Network
postAllows the submission of JSON frame to a named device from The Things-network, new devices are auto allocated into an imported location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Authorization | Type: String | Required: Yes |
Description:
Bearer Authorization Token |
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: No |
Description:
the optional Decoder ID can be used to map the device to a decoder. |
Response Fields (Success 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Core IoT Sensors which the updates apply to |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Forbidden" |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 400)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid JSON" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "Forbidden."
}
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid JSON."
}
Create a non LoRaWAN/Bluetooth device
postCreates the supplied Other IoT Device, based on the associated device decoder and links to the supplied location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The id of the location the device is being added to |
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The id of the device decoder to be used for processing and sensor types |
| Parameter: identifier | Type: String | Required: Yes |
Description:
The device unique identifier. |
| Parameter: name | Type: String | Required: Yes |
Description:
The device name. |
| Parameter: comment | Type: String | Required: No |
Description:
The device comments. |
| Parameter: longitude | Type: String | Required: No |
Description:
The device longitude. |
| Parameter: latitude | Type: String | Required: No |
Description:
The device latitude. |
| Parameter: altitude | Type: String | Required: No |
Description:
The device altitude. |
| Parameter: parser_params | Type: Json | Required: No |
Description:
The device optional decoder parameters associated with this device. |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created device |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: identifier | Type: String |
Description:
The device's unique identifier |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: Double |
Description:
The device's longitude |
| Field: latitude | Type: Double |
Description:
The device's latitude |
| Field: altitude | Type: Double |
Description:
The device's altitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: created_at | Type: String |
Description:
The datetime the device was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"identifier": [
"The identifier field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Device has already been claimed."
}
Get sensor readings for the supplied device
getGets sensor readings for the supplied device_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The id of the device being requested |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: limit | Type: Int | Required: No |
Description:
Record limit max 1000 records |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get sensor readings for the supplied device based on the aggregate type
getGets the aggregate sensor readings for the supplied device_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The id of the device being requested |
| Parameter: type | Type: String | Required: Yes |
Description:
The aggregate type must be one of the following first,min,max,ave,min_ave_max |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: granularity | Type: String | Required: No |
Description:
Record sample granularity should be in minute,half_minute,five_minutes,ten_minutes,quarter_hour,hour,half_hour,three_hours,six_hours,nine_hours,day,half_day,week,ten_days,two_weeks,month |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
| Field: sensor_id | Type: String |
Description:
Associated sensor platform id |
| Field: name | Type: String |
Description:
Sensor type |
| Field: reading_date | Type: String |
Description:
The datetime the data was recorded |
| Field: value | Type: Numeric |
Description:
The sensor value |
| Field: metric_units | Type: String |
Description:
Metric unit type |
| Field: imperial_units | Type: String |
Description:
Imperial unit type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Gets the latest sensor readings for the supplied device
getGets the most recent device sensor readings
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The id of the device being requested |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Delete a device
deleteDelete the specified Device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The device's unique id |
Response Fields (SUCCESS 204)
| Field | Type | Description |
|---|---|---|
| Field: 204 | Type: String | Description: |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Device" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Device."
}
External data webhook
postAllows the submission of JSON frame to a named device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Authorization | Type: String | Required: Yes |
Description:
Bearer Authorization Token |
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: deviceId | Type: String | Required: No |
Description:
Core IoT Device ID which the JSON applies to |
Response Fields (Success 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Core IoT Sensors which the updates apply to |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Forbidden" |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 400)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid JSON" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "Forbidden."
}
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid JSON."
}
External data webhook Aranet
postAllows the submission of JSON frame to a named device from Aranet, new devices are auto allocated into an imported location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Authorization | Type: String | Required: Yes |
Description:
Bearer Authorization Token |
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: decoder_id | Type: String | Required: No |
Description:
the optional Decoder ID can be used to map the device to a decoder. |
Response Fields (Success 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Core IoT Sensors which the updates apply to |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Forbidden" |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 400)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid JSON" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "Forbidden."
}
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid JSON."
}
Get all devices
getGet all devices
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
devices |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: identifier | Type: String |
Description:
The device's unique identifier or Device EUI if a LoRaWAN Device |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: String |
Description:
The device's longitude |
| Field: latitude | Type: String |
Description:
The device's latitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: frame_logging | Type: String |
Description:
Returns if device logging is enabled |
| Field: parameters | Type: String |
Description:
Returns any bespoke device parameters used by the device decoder, for example for sensor calibration |
| Field: updated_at | Type: String |
Description:
The datetime the location was created |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a device
getGets the specified device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The device's unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested device |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: identifier | Type: String |
Description:
The device's unique identifier or Device EUI if a LoRaWAN Device |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: String |
Description:
The device's longitude |
| Field: latitude | Type: String |
Description:
The device's latitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: frame_logging | Type: String |
Description:
Returns if device logging is enabled |
| Field: parameters | Type: String |
Description:
Returns any bespoke device parameters used by the device decoder, for example for sensor calibration |
| Field: updated_at | Type: String |
Description:
The datetime the location was created |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Device" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Device."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a device from its identifier
getGets the specified device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_identifier | Type: String | Required: Yes |
Description:
The device's unique identifier, for LoRaWAN this is the device_eui, or Bluetooth the MACAddress |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested device |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: identifier | Type: String |
Description:
The device's unique identifier or Device EUI if a LoRaWAN Device |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: String |
Description:
The device's longitude |
| Field: latitude | Type: String |
Description:
The device's latitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: frame_logging | Type: String |
Description:
Returns if device logging is enabled |
| Field: parameters | Type: String |
Description:
Returns any bespoke device parameters used by the device decoder, for example for sensor calibration |
| Field: updated_at | Type: String |
Description:
The datetime the location was created |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Device" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Device."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Update a device
putUpdates the specified device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The device's platform unique id |
| Parameter: name | Type: String | Required: No |
Description:
The device's name |
| Parameter: comment | Type: String | Required: No |
Description:
The device's comments |
| Parameter: decoder_id | Type: String | Required: No |
Description:
The device decoder id |
| Parameter: location_id | Type: String | Required: No |
Description:
The location id |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Updated device |
| Field: altitude | Type: Double |
Description:
The device's altitude |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: identifier | Type: String |
Description:
The device's unique identifier or Device EUI if a LoRaWAN Device |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: Double |
Description:
The device's longitude |
| Field: latitude | Type: Double |
Description:
The device's latitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: frame_logging | Type: String |
Description:
Returns if device logging is enabled |
| Field: parameters | Type: String |
Description:
Returns any bespoke device parameters used by the device decoder, for exmaple for sensor calibration |
| Field: updated_at | Type: String |
Description:
The datetime the location was created |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Device" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Device."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Disable frame logging
postDisable Frame logging for the supplied device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The device id to enable logging |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Enable frame logging
postEnables Frame logging for the supplied device
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The device id to enable logging |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a LoRaWAN device
postCreates the supplied LoRaWAN IoT Device, based on the associated device decoder and links to the supplied location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The id of the location the device is being added to |
| Parameter: decoder_id | Type: String | Required: Yes |
Description:
The id of the device decoder to be used for processing and sensor types |
| Parameter: device_eui | Type: String | Required: Yes |
Description:
The device LoRaWAN EUI. |
| Parameter: app_key | Type: String | Required: Yes |
Description:
The device LoRaWAN Application Key. |
| Parameter: name | Type: String | Required: Yes |
Description:
The device name. |
| Parameter: comment | Type: String | Required: No |
Description:
The device comments. |
| Parameter: longitude | Type: String | Required: No |
Description:
The device longitude. |
| Parameter: latitude | Type: String | Required: No |
Description:
The device latitude. |
| Parameter: altitude | Type: String | Required: No |
Description:
The device altitude. |
| Parameter: parser_params | Type: Json | Required: No |
Description:
The device optional decoder parameters associated with this device. |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created device |
| Field: id | Type: String |
Description:
The device's platform unique id |
| Field: name | Type: String |
Description:
The device's name |
| Field: device_eui | Type: String |
Description:
The device's unique LoRaWAN EUI |
| Field: app_key | Type: String |
Description:
The device's Application Key |
| Field: comment | Type: String |
Description:
The device's comments |
| Field: longitude | Type: Double |
Description:
The device's longitude |
| Field: latitude | Type: Double |
Description:
The device's latitude |
| Field: altitude | Type: Double |
Description:
The device's altitude |
| Field: type | Type: String |
Description:
The device type |
| Field: decoder_id | Type: String |
Description:
The associated device decoder |
| Field: gateway_id | Type: String |
Description:
The associated gateway |
| Field: location_id | Type: String |
Description:
The associated location |
| Field: created_at | Type: String |
Description:
The datetime the device was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"identifier": [
"The identifier field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Device has already been claimed."
}
Schedule a device down-link message for LoRaWAN Devices
postSchedules a down-link message for LoRaWAN Devices
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: device_id | Type: String | Required: Yes |
Description:
The device_id to schedule a down-link message |
| Parameter: fport | Type: Int | Required: Yes |
Description:
The FPort to use (must be > 0) |
| Parameter: confirmed | Type: Boolean | Required: Yes |
Description:
Whether the payload must be sent as confirmed data down or not |
| Parameter: data | Type: String | Required: Yes |
Description:
base64 encoded data |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a device certificate
postCreates a device certificate
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: csr | Type: String | Required: Yes |
Description:
The Certificate sign request to be signed for the specified location |
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Gateways unique identifier |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: certificate | Type: String |
Description:
The device certificate |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Event-Marker
Create an event marker
postCreates the supplied event marker to be used by devices
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: name | Type: String | Required: Yes |
Description:
The name of the event marker |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created gateway |
| Field: id | Type: String |
Description:
The event marker platform unique id |
| Field: name | Type: String |
Description:
The event marker name |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
*
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The marker already exists."
}
Gateway
Disable frame logging
postDisable Frame logging for the supplied gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateway_id to enable logging |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Enable frame logging
postEnables Frame logging for the supplied gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateway_id to enable logging |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a gateway
postCreates the supplied gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The id of the location the gateway is being added to |
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Gateways unique identifier |
| Parameter: name | Type: String | Required: Yes |
Description:
The Gateways name |
| Parameter: comment | Type: String | Required: No |
Description:
Gateway comments |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created gateway |
| Field: id | Type: String |
Description:
The gateway's platform unique id |
| Field: name | Type: String |
Description:
The gateway's name |
| Field: identifier | Type: String |
Description:
The gateway's unique identifier |
| Field: comment | Type: String |
Description:
The gateway's comments |
| Field: longitude | Type: Double |
Description:
The gateway's longitude |
| Field: latitude | Type: Double |
Description:
The gateway's latitude |
| Field: altitude | Type: Double |
Description:
The gateway's altitude |
| Field: type | Type: String |
Description:
The gateway's type the values should be 'edge gateway' for aql gateways or 'lorawan' for third party gateways |
| Field: created_at | Type: String |
Description:
The datetime the gateway was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Error message" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"identifier": [
"The identifier field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"type": [
"The type field is required."
]
}
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Gateway has already been claimed."
}
Get the gateways sensor readings
getGet sensor readings for the supplied gateway, limited to 1000 readings
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The id of the gateway being requested |
| Parameter: limit | Type: Numeric | Required: No |
Description:
Record limit max 1000 records |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD). |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD). |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get sensor readings for the supplied gateway based on the aggregate type
getGets the aggregate sensor readings for the supplied gateway_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The id of the gateway being requested |
| Parameter: type | Type: String | Required: Yes |
Description:
The aggregate type must be one of the following first,min,max,ave,min_ave_max |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: granularity | Type: String | Required: No |
Description:
Record sample granularity should be in minute,half_minute,five_minutes,ten_minutes,quarter_hour,hour,half_hour,three_hours,six_hours,nine_hours,day,half_day,week,ten_days,two_weeks,month |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Gets the latest sensor readings for the supplied gateway
getGets the most recent gateway sensor readings
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The id of the gateway being requested |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Delete a gateway
deleteDelete the specified Gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateway's unique id |
Response Fields (SUCCESS 204)
| Field | Type | Description |
|---|---|---|
| Field: 204 | Type: String | Description: |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Gateway" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Gateway."
}
Get the latest gateway frames
getGets the specified gateway frames
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateway's unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested gateway frames |
| Field: gateway_id | Type: String |
Description:
The gateway's unique id |
| Field: frame | Type: String |
Description:
The frame alias |
| Field: comment | Type: String |
Description:
Raw payload frame |
| Field: created_at | Type: String |
Description:
The datetime the frame created date |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Gateway" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Gateway."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get all gateways
getGet all gateways
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
gateways |
| Field: location_id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The gateway's name |
| Field: comment | Type: String |
Description:
The gateway's comments |
| Field: id | Type: String |
Description:
The gateway's unique id |
| Field: updated_at | Type: String |
Description:
The datetime the gateway was updated |
| Field: created_at | Type: String |
Description:
The datetime the gateway was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a gateway
getGets the specified gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateway's unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested gateway |
| Field: location_id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The gateway's name |
| Field: comment | Type: String |
Description:
The gateway's comments |
| Field: id | Type: String |
Description:
The gateway's unique id |
| Field: updated_at | Type: String |
Description:
The datetime the gateway was updated |
| Field: created_at | Type: String |
Description:
The datetime the gateway was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Gateway" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Gateway."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Update a gateway
putUpdates the specified gateway
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The gateways platform unique id |
| Parameter: name | Type: String | Required: No |
Description:
The gateway's name |
| Parameter: comment | Type: String | Required: No |
Description:
The gateway's comments |
| Parameter: location_id | Type: String | Required: No |
Description:
The location id |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
updated gateway |
| Field: altitude | Type: Double |
Description:
The gateway's altitude |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: location_id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The gateway's name |
| Field: comment | Type: String |
Description:
The gateway's comments |
| Field: type | Type: String |
Description:
The gateway's type the values should be std for aql gateways or lorawan for third party gateways |
| Field: longitude | Type: Double |
Description:
The location's longitude |
| Field: latitude | Type: Double |
Description:
The location's latitude |
| Field: id | Type: String |
Description:
The gateway's unique id |
| Field: updated_at | Type: String |
Description:
The datetime the gateway was updated |
| Field: created_at | Type: String |
Description:
The datetime the gateway was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Gateway" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Gateway."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Set gateway to be connected
postSets the gateway to be connected
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Gateways unique identifier |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Set gateway to be disconnected
postSets the gateway to be disconnected
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Gateways unique identifier |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a gateway certificate
postCreates a gateway certificate
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: csr | Type: String | Required: Yes |
Description:
The Certificate sign request to be signed for the specified location |
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Gateways unique identifier |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: certificate | Type: String |
Description:
The gateway certificate |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Integration
Delete a sensor from an integration
deleteDelete the specified sensor
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: gateway_id | Type: String | Required: Yes |
Description:
The device's unique id |
Response Fields (SUCCESS 204)
| Field | Type | Description |
|---|---|---|
| Field: 204 | Type: String | Description: |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Disable a integration
postDisables data processing for the specified integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integration to enable |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Enable a integration
postEnables data processing for the specified integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integration to enable |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a influxdb integration
postCreates the supplied influxdb integration, this is disabled until sensors are assigned
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: url | Type: String | Required: Yes |
Description:
The influxdb host to be called by the integration |
| Parameter: token | Type: String | Required: Yes |
Description:
The influxdb bearer token to be used by the integration |
| Parameter: organisation | Type: String | Required: Yes |
Description:
The influxdb organisation to be used by the integration |
| Parameter: bucket | Type: String | Required: Yes |
Description:
The influxdb bucket to be used by the integration |
| Parameter: measurement | Type: String | Required: No |
Description:
The influxdb measurement to be used by the integration, if null the location description is used |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created mqtt integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The mqtt settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Get all sensors for a integration
getGet all the sensors for the supplied integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integrations unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
The integration current senors |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Add sensor to integration
postAdds the specified sensor to the integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integration with which to add the specified sensor to |
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The sensor to be included with the integration |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created integration |
| Field: integration_id | Type: String |
Description:
The platform unique id |
| Field: sensor_id | Type: String |
Description:
The sensor id |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Delete a integration
deleteDelete the specified Integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integrations unique id |
Response Fields (SUCCESS 204)
| Field | Type | Description |
|---|---|---|
| Field: 204 | Type: String | Description: |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get all integrations
getGet all integrations
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
integrations |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: enabled | Type: Boolean |
Description:
The integration enabled status |
| Field: settings | Type: Json |
Description:
The integration settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a integration
getGets the specified integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integration unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: enabled | Type: Boolean |
Description:
The integration enabled status |
| Field: settings | Type: Json |
Description:
The integration settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Update an integration
putUpdates the specified integration
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: integration_id | Type: String | Required: Yes |
Description:
The integration platform unique id |
| Parameter: type | Type: String | Required: Yes |
Description:
The type of integration must be WebHook or MQTT |
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: settings | Type: Json | Required: Yes |
Description:
The integration settings |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Updated integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The integration settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Gateway" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Gateway."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Create a mqtt integration
postCreates the supplied mqtt integration, this is disabled until sensors are assigned
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: topic | Type: String | Required: Yes |
Description:
The mqtt topic used by the integration |
| Parameter: host | Type: String | Required: Yes |
Description:
The mqtt host to be called by the integration |
| Parameter: port | Type: String | Required: Yes |
Description:
The mqtt port to be used by the integration |
| Parameter: protocol | Type: String | Required: Yes |
Description:
The mqtt protocol to be used by the integration, must be mqtt or mqtts |
| Parameter: auth_type | Type: String | Required: Yes |
Description:
The mqtt auth type to be used by the integration, must be cert or user |
| Parameter: ca | Type: String | Required: Yes |
Description:
The mqtt ca used when auth_type is cert |
| Parameter: key | Type: String | Required: Yes |
Description:
The mqtt key used when auth_type is cert |
| Parameter: username | Type: String | Required: Yes |
Description:
The mqtt username used when auth_type is user |
| Parameter: password | Type: String | Required: Yes |
Description:
The mqtt password used when auth_type is user |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created mqtt integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The mqtt settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Create a Slack integration
postCreates the supplied Slack integration, this is disabled until sensors are assigned
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: url | Type: String | Required: Yes |
Description:
The webhook url to invoke |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created Slack integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The Slack settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Create a webhook integration
postCreates the supplied webhook integration, this is disabled until sensors are assigned
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: url | Type: String | Required: Yes |
Description:
The webhook url to invoke |
| Parameter: authorization | Type: String | Required: Yes |
Description:
The authorization header required to authenticate the request |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created zabbix integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The webhook settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Create a zabbix integration
postCreates the supplied zabbix integration, this is disabled until sensors are assigned
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: execution_type | Type: String | Required: Yes |
Description:
Type of integration must be live or schedule |
| Parameter: schedule | Type: Int | Required: No |
Description:
The Schedule interval max, required if execution_type schedule |
| Parameter: name | Type: String | Required: Yes |
Description:
The integration name |
| Parameter: host | Type: String | Required: Yes |
Description:
The zabbix server host name |
| Parameter: monitored_host | Type: String | Required: Yes |
Description:
The zabbix monitored_host unique name |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created zabbix integration |
| Field: id | Type: String |
Description:
The platform unique id |
| Field: name | Type: String |
Description:
The integration name |
| Field: type | Type: String |
Description:
The integration type |
| Field: execution_type | Type: String |
Description:
The integration execution type |
| Field: schedule | Type: Integer |
Description:
The integration schedule time |
| Field: settings | Type: Json |
Description:
The zabbix settings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Location
Create a location
postCreate the supplied location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token. |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: name | Type: String | Required: Yes |
Description:
The location's name |
| Parameter: postal_code | Type: String | Required: No |
Description:
The location's postal code |
| Parameter: address | Type: String | Required: No |
Description:
The location's address |
| Parameter: longitude | Type: String | Required: No |
Description:
The location's longitude |
| Parameter: latitude | Type: String | Required: No |
Description:
The location's latitude |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Newly created location |
| Field: id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The location's name |
| Field: postal_code | Type: String |
Description:
The location's postal code |
| Field: address | Type: String |
Description:
The location's address |
| Field: longitude | Type: String |
Description:
The location's longitude |
| Field: latitude | Type: String |
Description:
The location's latitude |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"The name field is required" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
Delete a location
deleteDelete the specified location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The location's unique id |
Response Fields (SUCCESS 204)
| Field | Type | Description |
|---|---|---|
| Field: 204 | Type: String | Description: |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get all locations
getGet all locations
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
locations |
| Field: id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The location's name |
| Field: postal_code | Type: String |
Description:
The location's postal code |
| Field: address | Type: String |
Description:
The location's address |
| Field: longitude | Type: String |
Description:
The location's longitude |
| Field: latitude | Type: String |
Description:
The location's latitude |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a location
getGets the specified location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The location's unique id |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
requested location |
| Field: id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The location's name |
| Field: postal_code | Type: String |
Description:
The location's postal code |
| Field: address | Type: String |
Description:
The location's address |
| Field: longitude | Type: String |
Description:
The location's longitude |
| Field: latitude | Type: String |
Description:
The location's latitude |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
| Field: updated_at | Type: String |
Description:
The datetime the location was updated |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Update a location
putUpdates the specified location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: location_id | Type: String | Required: Yes |
Description:
The location's unique id |
| Parameter: name | Type: String | Required: No |
Description:
The location's name |
| Parameter: postal_code | Type: String | Required: No |
Description:
The location's postal code |
| Parameter: address | Type: String | Required: No |
Description:
The location's address |
| Parameter: longitude | Type: String | Required: No |
Description:
The location's longitude |
| Parameter: latitude | Type: String | Required: No |
Description:
The location's latitude |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: The | Type: Object |
Description:
updated location |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: id | Type: String |
Description:
The location's unique id |
| Field: name | Type: String |
Description:
The location's name |
| Field: postal_code | Type: String |
Description:
The location's postal code |
| Field: address | Type: String |
Description:
The location's address |
| Field: longitude | Type: String |
Description:
The location's longitude |
| Field: latitude | Type: String |
Description:
The location's latitude |
| Field: created_at | Type: String |
Description:
The datetime the location was created |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"The given data was invalid" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
]
}
}
Create a location certificate
postCreates a location certificate allowing subscription to all MQTT topics for this location
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: csr | Type: String | Required: Yes |
Description:
The Certificate sign request to be signed for the specified location |
| Parameter: identifier | Type: String | Required: Yes |
Description:
The Location unique identifier |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: certificate | Type: String |
Description:
The gateway certificate |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Sensor
Add sensor reading
postAdds the supplied readings for the specified sensor
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The id of the sensor the reading is being recorded against |
| Parameter: reading | Type: Numeric | Required: Yes |
Description:
The sensor reading to be recorded |
| Parameter: readings | Type: Array | Required: No |
Description:
Array of sensor readings to be recorded limited to 100 readings per submission |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
sensor reading |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: device_id | Type: String |
Description:
The associated device id |
| Field: type | Type: String |
Description:
The sensor type |
| Field: reading | Type: Numeric |
Description:
The sensor reading |
| Field: reading_at | Type: String |
Description:
The datetime the reading was record |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Add sensor alarm rule
postConfigures the alarm value for the specified alarm, set to null to remove the alarm
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The id of the sensor to attach the alarm too |
| Parameter: upper_alarm_value | Type: Numeric|null | Required: No |
Description:
The upper alarm value to validate against. Set to null to clear alarm rule |
| Parameter: upper_alarm_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the upper alarm is activated |
| Parameter: upper_alarm_return_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the upper alarm is cleared |
| Parameter: upper_warn_value | Type: Numeric|null | Required: No |
Description:
The upper warning alarm value to validate against. Set to null to clear alarm rule |
| Parameter: upper_warn_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the upper alarm warning is activated |
| Parameter: upper_warn_return_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the upper alarm warning is cleared |
| Parameter: lower_alarm_value | Type: Numeric|null | Required: No |
Description:
The lower alarm value to validate against. Set to null to clear alarm rule |
| Parameter: lower_alarm_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the lower alarm is activated |
| Parameter: lower_alarm_return_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the lower alarm is cleared |
| Parameter: lower_warn_value | Type: Numeric|null | Required: No |
Description:
The lower warning alarm value to validate against. Set to null to clear alarm rule |
| Parameter: lower_warn_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the lower alarm warning is activated |
| Parameter: lower_warn_return_delay | Type: Numeric | Required: No |
Description:
The number of seconds delay before the lower alarm warning is cleared |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
sensor alarm configuration |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get sensor readings
getGet sensor readings for the supplied sensor, limited to 1000 readings
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The id of the sensor being requested |
| Parameter: limit | Type: Numeric | Required: No |
Description:
Record limit max 1000 records |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD). |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD). |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
| Field: sensor_id | Type: String |
Description:
Associated sensor platform id |
| Field: name | Type: String |
Description:
Sensor type |
| Field: reading_date | Type: String |
Description:
The datetime the data was recorded |
| Field: value | Type: Numeric |
Description:
The sensor value |
| Field: metric_units | Type: String |
Description:
Metric unit type |
| Field: imperial_units | Type: String |
Description:
Imperial unit type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get sensor readings based on the aggregate type
getGets the aggregate sensor readings for the supplied sensor_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The id of the sensor being requested |
| Parameter: type | Type: String | Required: Yes |
Description:
The aggregate type must be one of the following first,min,max,ave,min_ave_max |
| Parameter: startDate | Type: String | Required: No |
Description:
Record start period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: endDate | Type: String | Required: No |
Description:
Record end period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: granularity | Type: String | Required: No |
Description:
Record sample granularity should be in minute,half_minute,five_minutes,ten_minutes,quarter_hour,hour,half_hour,three_hours,six_hours,nine_hours,day,half_day,week,ten_days,two_weeks,month |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
| Field: sensor_id | Type: String |
Description:
Associated sensor platform id |
| Field: name | Type: String |
Description:
Sensor type |
| Field: reading_date | Type: String |
Description:
The datetime the data was recorded |
| Field: value | Type: Numeric |
Description:
The sensor value |
| Field: metric_units | Type: String |
Description:
Metric unit type |
| Field: imperial_units | Type: String |
Description:
Imperial unit type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get the latest sensor reading
getGets the most recent sensor reading for the supplied sensor_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The id of the sensor being requested |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get a sensor
getGets the supplied sensor based on the submitted sensor_id
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The sensors unique id * |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: id | Type: String |
Description:
The sensors unique id |
| Field: device_id | Type: String |
Description:
The associated device id |
| Field: key | Type: String |
Description:
The sensors unique key used for frame mapping |
| Field: name | Type: String |
Description:
The sensors name |
| Field: slope | Type: Numeric |
Description:
The slope to be applied to sensor values |
| Field: offset | Type: Numeric |
Description:
The offset to be applied to sensor values |
| Field: retention_days | Type: Int |
Description:
How long sensor data will be stored before being cleared down |
| Field: sensor_type_id | Type: String |
Description:
The associated sensor type id |
| Field: created_at | Type: String |
Description:
The datetime the sensor was created |
| Field: updated_at | Type: String |
Description:
The datetime the sensor was last updated |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Gets all sensors
getGet all sensors
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: searchKey | Type: String | Required: No |
Description:
Optional search terms to match sensors with similar names |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensors |
| Field: id | Type: String |
Description:
The sensors unique id |
| Field: device_id | Type: String |
Description:
The associated device id |
| Field: key | Type: String |
Description:
The sensors unique key used for frame mapping |
| Field: name | Type: String |
Description:
The sensors name |
| Field: slope | Type: Numeric |
Description:
The slope to be applied to sensor values |
| Field: offset | Type: Numeric |
Description:
The offset to be applied to sensor values |
| Field: retention_days | Type: Int |
Description:
How long sensor data will be stored before being cleared down |
| Field: sensor_type_id | Type: String |
Description:
The associated sensor type id |
| Field: created_at | Type: String |
Description:
The datetime the sensor was created |
| Field: updated_at | Type: String |
Description:
The datetime the sensor was last updated |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
Update a sensor
putUpdates the specified sensor
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_id | Type: String | Required: Yes |
Description:
The sensor's platform unique id |
| Parameter: slope | Type: Numeric | Required: No |
Description:
Multiplies the sensor reading with the associated slope value |
| Parameter: offset | Type: Numeric | Required: No |
Description:
Applies the sensor reading with the associated offset value |
| Parameter: retention_days | Type: Numeric | Required: No |
Description:
Specifies the number of days the data should be retained set 0 to store indefinitely |
Response Fields (SUCCESS 201)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object |
Description:
Updated sensor |
| Field: id | Type: String |
Description:
The sensors unique id |
| Field: device_id | Type: String |
Description:
The associated device id |
| Field: key | Type: String |
Description:
The sensors unique key used for frame mapping |
| Field: name | Type: String |
Description:
The sensors name |
| Field: slope | Type: Numeric |
Description:
The slope to be applied to sensor values |
| Field: offset | Type: Numeric |
Description:
The offset to be applied to sensor values |
| Field: retention_days | Type: Int |
Description:
How long sensor data will be stored before being cleared down |
| Field: sensor_type_id | Type: String |
Description:
The associated sensor type id |
| Field: created_at | Type: String |
Description:
The datetime the sensor was created |
| Field: updated_at | Type: String |
Description:
The datetime the sensor was last updated |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 422)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Invalid Device" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
422-Error-Response:
HTTP/1.1 422 Unprocessable Entity
{
"message": "Invalid Device."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get sensor readings based on the aggregate type for multiple sensors
getGets the aggregate sensor readings for multiple sensors
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_ids | Type: Array | Required: Yes |
Description:
The collection of sensors latest readings to be returned |
| Parameter: type | Type: String | Required: Yes |
Description:
The aggregate type must be one of the following first,min,max,ave,min_ave_max |
| Parameter: startDate | Type: String | Required: No |
Description:
Start period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: endDate | Type: String | Required: No |
Description:
End period in UTC (format: YYYY-MM-DD HH:mm:ss) |
| Parameter: granularity | Type: String | Required: No |
Description:
Record sample granularity should be in minute,half_minute,five_minutes,ten_minutes,quarter_hour,hour,half_hour,three_hours,six_hours,nine_hours,day,half_day,week,ten_days,two_weeks,month |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
| Field: sensor_id | Type: String |
Description:
Associated sensor platform id |
| Field: name | Type: String |
Description:
Sensor type |
| Field: reading_date | Type: String |
Description:
The datetime the data was recorded |
| Field: value | Type: Numeric |
Description:
The sensor value |
| Field: metric_units | Type: String |
Description:
Metric unit type |
| Field: imperial_units | Type: String |
Description:
Imperial unit type |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Get the latest sensor reading for multiple sensors
postGets the most recent sensor readings for the supplied sensor_ids's
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: sensor_ids | Type: Array | Required: Yes |
Description:
The collection of sensors latest readings to be returned |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensor readings |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Error Fields (Error 404)
| Field | Type | Description |
|---|---|---|
| Field: . | Type: String | Description: |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}
404-Error-Response:
HTTP/1.1 404 Not Found
Sensor Type
Get all the sensor types supported
getGet all supported sensor types
Header
| Header | Type | Required | Description |
|---|---|---|---|
| Header: Accept | Type: String | Required: Yes |
Description:
Accept content type |
| Header: Authorization | Type: String | Required: Yes |
Description:
Authorization token |
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter: searchKey | Type: String | Required: No |
Description:
Optional search terms to match sensors with similar names |
Response Fields (SUCCESS 200)
| Field | Type | Description |
|---|---|---|
| Field: data | Type: Object[] |
Description:
sensors |
| Field: name | Type: String |
Description:
The Sensor Name |
| Field: id | Type: String |
Description:
The sensors unique id |
| Field: unit | Type: String |
Description:
The sensor unit |
Error Fields (Error 401)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"Unauthenticated" |
Error Fields (Error 403)
| Field | Type | Description |
|---|---|---|
| Field: message | Type: String |
Description:
"This action is unauthorised" |
Send a Sample Request
Code Examples
Success Response Example
Error Response Example
401-Error-Response:
HTTP/1.1 401 Unauthorised
{
"message": "Unauthenticated."
}
403-Error-Response:
HTTP/1.1 403 Forbidden
{
"message": "This action is unauthorised."
}