Update api.md
Merge pull request #2 from thibault-faure/patch-2

Update api.md