How can I retrive the current state of an Input or Output using the Restful API?

we have this path

/API/rest/v1/[inputEvents or outputs]/7a19db8e-5230-45cc-ba4b-7ee67235cdd1/

I can see my input, and I can see the input/output change when using the events endpoint, however how can I see if they are “Active” or “Not Active” apart from checking the event

The events and state websocket API includes a getState command. Please see documentation here: https://doc.developer.milestonesys.com/mipvmsapi/api/events-ws/v1/#section/Introduction/Events-and-State-WebSocket-API

This sample also demonstrates it: https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/eventsandstatewebsocketapipython/readme.html&tree=tree_3.html

Thank you peter, using the websocket API is the only way? Would be great to have its own route in the rest API like

/API/rest/v1/[inputEvents or outputs]/7a19db8e-5230-45cc-ba4b-7ee67235cdd1/State

Unfortunately yes. The REST API is primarily for more stable data and for the most parts configuration. So the WebSocket is the way to go.