moving file contents to APIs