Reading the event bus from external app

Newbie here.
Is there a socket or service where a external app can receive the events from the event bus? What about a socket or web service to check or set the state of a device?

If there is documentation on this just post me a link. thank you.

Sure, just use the Rest API:

Thank you, Marcus.

The stupid part of my brain somehow missed that easy to find documentation!! Fell free to RTFD me anytime!