Update api.md

add h2 sections