Update api.md
Merge pull request #570 from nsufaisal/patch-1

Update api.md