Check that admin and public API options are set. Props @Flynsarmy.