API of myDream