Skip to content

API endpoints ​

Authentication ​

Authentication is done via API code on the URL path in every endpoint call.

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}
ParameterDescriptionRequired
hashParameter identifying the caller. Must be used for every call.Yes

List of all endpoints for INVIPO API service

EndpointMethodDescription
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locationsGETLocation list
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/alarms?timestamp={timestamp}GETLocations alarms
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvosGETRVOs list
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/lampsGETLamp list
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/smartGETSmart devices list
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvos/{rvoNumber}/statusGETRVO status
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvos/{rvoNumber}/meas?timestamp={timestamp}GETRVO measurements
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/lamps/{lampNumber}GETLamp detail
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/smart/{smartUuid}/dataGETSmart device data
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/smart/{smartUuid}/history?from={timestamp}GETSmart device history
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/scenarios?active={true/false}GETLocation scenarios
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/scenarios/{scenarioId}POSTScenario activation

HTTP Status Code Summary

Status CodeDescriptionDetails
200OKEverything worked as expected.
204No ContentThe request was successful but there's no content to return.
400Bad RequestThe request was unacceptable, often due to missing a required parameter.
401UnauthorizedNo valid API key provided.
403ForbiddenThe API key doesn't have permissions to perform the request.
404Not FoundThe requested resource doesn't exist.
409ConflictThe request conflicts with another request or there are no valid data.
500, 502, 503, 504Server ErrorsSomething went wrong on our end. (These are rare.)

Location list ​

List all location ​

This method returns a list of all locations associated with the user's hash.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations

Response

json
[
    {
        "uuid": "69687290-9793-46c8-b688-94791175e0b7",
        "name": "Zilina"
    }
]
json
{}

Location alarms ​

List all alarms for specific location ​

This method provides a list of all alarms for specific location associated with the user's hash for specific time period.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/alarms?timestamp={timestamp}
typescript
    timestamp = number; // Unix timestamp in milliseconds to filter alarms from that time onward. Max range is 5 days.

Response

json
[
    {
        "code": "ALM_LC_NO_RESPONSE",
        "instanceId": 2009,
        "active": false,
        "date": 1757206785000,
        "rvoNumber": 121,
        "rvoName": "RVO 121",
        "lampNumber": 2009,
        "lampName": "121.2009"
    },
    {
        "code": "ALM_CONTROL_SUPPLY_FAIL",
        "instanceId": 0,
        "active": false,
        "date": 1757109600733,
        "rvoNumber": 143,
        "rvoName": "RVO 143",
        "lampNumber": null,
        "lampName": null
    }
]
json
{}
json
[]

Alarm codes

CodeTypeMeaningObject
ALM_BREAKER_FAILAlarmBreaker failRVO
ALM_CONTACTOR_FAILAlarmContactor failRVO
ALM_CONTROL_SUPPLY_FAILAlarmControl supply failRVO
ALM_DOOR_OPENWarningDoor openRVO
ALM_LINE_BREAKER_FAILAlarmLine breaker failRVO
ALM_ACCU_DEADWarningEmpty accumulatorRVO
LC_LAMP_FAILWarningLamp failLamp
LC_LAMP_DEADAlarmLamp deadLamp
ALM_LC_NO_RESPONSEAlarmLC no responseLamp
OC_ALM_RVOC_COM_TIMEOUTAlarmCommunication timeoutRVO
OC_ALM_RVOC_NO_CALENDAR_MODEWarningRVOC not in auto modeRVO

RVOs list ​

List all RVOs ​

This method provides a list of all RVOs associated with the user's hash for specific location.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvos

Response

json
[
    {
        "name": "RVO 036",
        "number": 36,
        "location": "Ε½ilina",
        "lat": 49.18,
        "lng": 18.73
    }
]
json
{}
json
[]

Lamp list ​

List all lamps ​

This method provides a list of all lamps associated with the user's hash for specific location.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/lamps

Response

json
[
    {
        "number": 2016,
        "name": "004.2016",
        "rvoNumber": 4,
        "lat": 49.21,
        "lng": 18.75
    }
]
json
{}
json
[]

Notes

  • Lamps are cached on first request.

Smart devices list ​

List all smart devices ​

This method provides a list of all smart devices associated with the user's hash for specific location.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/smart

Response

json
[
    {
        "name": "SMART pohybový senzor č.1/4",
        "type": "motionSensor",
        "lat": 49.19,
        "lng": 18.72
    }
]
json
{}
json
[]

Notes

  • Smart devices are cached on first request.

RVO status ​

Get RVO status information ​

This method provides information about specific RVO associated with the user's hash for specific location.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvos/{rvoNumber}/status

Response

json
{
    "name": "RVO 081",
    "number": 81,
    "location": "Ε½ilina",
    "lat": 49.23,
    "lng": 18.73,
    "mode": "RVOC_CALENDAR",
    "lastUpdated": 1751880596314,
    "breakerOn": true,
    "contractorOn": true,
    "doorOpen": false,
    "communicationOk": true,
    "status": "OK",
    "locationName": "Ε½ilina"
}
typescript
    status = "OK" | "ALARM" | "WARNING" | "DISCONNECTED";

RVO measurements ​

Get RVO measurements ​

This method provides measurements from specific RVO associated with the user's hash for specific location and time period.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/rvos/{rvoNumber}/meas?timestamp={timestamp}
typescript
    timestamp = number; // Unix timestamp in milliseconds to filter measurements from that time onward. Max range is 5 days.

Response

json
{
    "rvoNumber": 94,
    "measurements": [
        {
            "voltage": [                // in Volts
                238.73,                 // L1
                237.17,                 // L2
                238.4                   // L3
            ],
            "current": [                // in Amperes
                4.23,                   // L1
                9.22,                   // L2
                3.59                    // L3
            ],
        "timestamp": 1757196000000
        }
    ]
}
json
{}
json
{}

Lamp detail ​

Get lamp information ​

This method provides information about specific lamp associated with the user's hash for specific location.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/lamps/{lampNumber}

Response

json
{
    "number": 1021,
    "name": null,
    "rvoNumber": null,
    "lat": null,
    "lng": null,
    "lightIntensity": null,
    "power": null,
    "timestamp": 1751716095333,
    "status": "OK"
}
json
{}

Smart data ​

Get data from smart device ​

This method provides data from specific smart device associated with the user's hash.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/smart/{smartUuid}/data

Response

json
[
    {
        // Smart device data fields vary by device type.
        // See the smart data page for details.
        // Sorted by timestamp ascending.
    }
]
json
json
{}

Smart history ​

Get historical data from smart device. ​

This method provides historical data from specific smart device associated with the user's hash starting from a given timestamp. Case handling for 'from' parameter:

  • If 'from' parameter is not provided, data from the last 24 hours is returned.
  • If 'from' parameter is older than one day ago, it is set to one day ago.
  • If 'from' parameter is in the future, a BAD_REQUEST response is returned.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/smart/{smartUuid}/history?from={timestamp}
typescript
    from = number; // Unix timestamp in milliseconds to filter historical data from that time onward.

Response

json
[
    {
        // Smart device historical data fields vary by device type.
        // See the smart data page for details.
        // Sorted by timestamp ascending.
    }
]
json
json
{
    // If 'from' parameter is in the future.
}
json
{}

Location scenarios ​

List all scenarios for specific location ​

This method provides a list of all scenarios for specific location associated with the user's hash.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/scenarios?active={true/false}
typescript
    // Optional parameter to filter scenarios by active status.
    active = boolean;

Response

json
[
    {
        "id": 0,
        "name": "ZILINA_0",
        "active": false,
        "locationUuid": "69687290-9793-46c8-b688-94791175e0b7",
        "description": "ZILINA_0_0%",
        "lampNames": [
            "001.1001",
            "001.1002",
            ... more lamps ...
        ]
    },
    ... more scenarios ...
]
json
{}

Scenario activation ​

Activate specific scenario for specific location ​

This method activates specific scenario for specific location associated with the user's hash.

Endpoint

http
https://lightnet.issk.sk/invipo-za/api/v1/{hash}/locations/{locationUuid}/scenarios/{scenarioId}
json
{
    "active": true // Set to true to activate the scenario, false to deactivate.
}

Response

json
{
    "active": false,
    "scenarioId": 1
}
json
{}