Update api.md

Added anchor links to stacks endpoint.