Update api.md

Added descriptions for the stacks endpoint.