Fix a typo in the API endpoint