Income Taxes - Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jan. 31, 2022 |
Jan. 31, 2021 |
Jan. 31, 2020 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Unrecognized tax benefits, beginning balance | $ 24,447 | $ 5,469 | $ 8,128 |
| Decreases in current period tax positions | (2,659) | ||
| Increases in prior period tax positions | 186 | 6,926 | |
| Increase in current period tax positions | 11,463 | 12,052 | |
| Decreases in prior period tax positions | (9,772) | ||
| Unrecognized tax benefits, ending balance | $ 26,324 | $ 24,447 | $ 5,469 |