Net Income (Loss) Per Share - Summary of Diluted Net Income (Loss) Per Common Share (Details) - shares shares in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2023 |
Jul. 31, 2022 |
Jul. 31, 2023 |
Jul. 31, 2022 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 2,531 | 32,232 | 3,220 | 30,761 |
| Shares related to outstanding share-based awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 2,531 | 16,599 | 3,220 | 15,127 |
| Shares related to the convertible senior notes | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 0 | 7,815 | 0 | 7,816 |
| Shares subject to warrants related to the issuance of convertible senior notes | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 0 | 7,818 | 0 | 7,818 |