add new API method in leads_controller.rb