implemented base command for API requests