add API to stack server