Update api.md

Reworked heading levels.