Initial commit of api.php