Added api endpoints for stacks