root to api