Income Taxes - Narrative (Details) - USD ($) $ in Thousands |
12 Months Ended | |||
|---|---|---|---|---|
Jan. 31, 2022 |
Jan. 31, 2021 |
Jan. 31, 2020 |
Jan. 31, 2019 |
|
| Tax Credit Carryforward [Line Items] | ||||
| Increase (decrease) of valuation allowance | $ 327,957 | $ 0 | $ 0 | |
| Deferred tax asset valuation allowance | 12,605 | 335,051 | ||
| Unrecognized tax benefits | 19,171 | 14,884 | 8,106 | $ 2,778 |
| Unrecognized tax benefits, if recognized, would impact effective tax rate | 19,600 | 15,000 | 8,400 | |
| Interest and penalties | 400 | $ 100 | $ 300 | |
| State Income Tax | ||||
| Tax Credit Carryforward [Line Items] | ||||
| Operating loss carryforward | 122,300 | |||
| State Income Tax | Research and Development Credit Carryforward | ||||
| Tax Credit Carryforward [Line Items] | ||||
| Tax credit carryforward | 18,400 | |||
| Foreign Tax | ||||
| Tax Credit Carryforward [Line Items] | ||||
| Operating loss carryforward | $ 44,200 | |||