Add promise API docs [ci skip]