products:software:edgeos:api

This is an old revision of the document!


Preliminary exploration of EdgeOS web APIs.

Logging in

Session is valid for 15 minutes and is refreshed on every web request. POST to 'https:<host|ip>/' ====== Websocket ====== You can get streaming statistical data from the endpoint 'wss:<host|ip>/ws/stats'. The connection MUST have the origin header set to 'https:<host|ip>'. The format of data to and from the websocket is "LENGTH\nJSON_PAYLOAD". Error 403 on handshake is likely due to lack of 'origin' header as needed. Failure of sending properly formed messages to start the streaming will result in no messages from server aka "dead air". When the SESSION_ID times out the websocket will abruptly close so it's recommended to refresh it occasionally.


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nevyxvrt/ubntwiki.com/lib/plugins/authplain/auth.php on line 428
dokuwiki\Exception\FatalException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

dokuwiki\Exception\FatalException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the authplain plugin.

More info has been written to the DokuWiki error log.