Added related action for api.php