Home Assistant API - Turn On/Off Light state via simple (HTTP)

It is possible to get entity (light) status returned in http(s) from node red?

For example if i do http://homeassistant:1880/endpoint/light-state will return on/off or 1/2