refactor: private endpoints (#38964)