Don't send redirect-to-root from the API calls.