Fixed misspelling & missing ')' in api/index.php