Helper for endpoint resolution