Update api.php to return current status