Fix api endpoint typo