diff --git a/main.py b/main.py
index 4f34567a5ea9302416fb895a8f1cc3bc13211c8a..b654579180d932ea6dd8c221132b9c79d60895b2 100644
--- a/main.py
+++ b/main.py
@@ -114,9 +114,15 @@ def wr_available_widgets():
 
 @app.route("/api/get_state")
 def wr_get_state():
-    return json_response({
+    """
+    Returns the current screen state.
+    :return: A JSON response with the current screen state.
+    """
 
-    }) # TODO
+    with screen_state_lock:
+        return json_response({
+            "state": screen_state.name
+        })
 
 @app.route("/api/toggle_screen_state", methods=["POST"])
 def wr_toggle_state():