move api actions and request to sub namepsace api.