Use the internal api JS SDK