Move internal API to REST