v3.22.0.1
Income Taxes - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Jan. 31, 2020
Jan. 31, 2019
Operating Loss Carryforwards [Line Items]        
Provision for income taxes $ 72,355 $ 4,760 $ 1,997  
Valuation allowance increase (decrease), amount 357,000 206,200 87,200  
Deferred tax assets, valuation allowance 770,861 413,828 207,600  
Research and other credit carryforwards 56,539 22,778    
Unrecognized tax benefits 26,324 $ 24,447 $ 5,469 $ 8,128
Unrecognized tax benefits that would impact effective tax rate 1,900      
Foreign Tax Authority        
Operating Loss Carryforwards [Line Items]        
Provision for income taxes 57,200      
Foreign Tax Authority | United Kingdom        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 81,100      
Domestic Tax Authority | Federal        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 1,600,000      
Research and other credit carryforwards 65,600      
State and Local Jurisdiction | California        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 168,900      
Research and other credit carryforwards 13,700      
State and Local Jurisdiction | Other States        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards $ 868,000