Fix typo in Api.php