Update api.md

Fixed anchor link in stacks endpoint.