Update api.md

just a typo i noticed