Add general api and custom menu api