Net Income (Loss) Per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details) - shares shares in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Oct. 31, 2024 |
Oct. 31, 2023 |
Oct. 31, 2024 |
Oct. 31, 2023 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total potentially dilutive shares (in shares) | 1,129 | 12,186 | 1,753 | 12,186 |
| Shares subject to outstanding common stock awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total potentially dilutive shares (in shares) | 1,129 | 11,873 | 1,753 | 11,873 |
| Shares issuable pursuant to the 2018 Employee Stock Purchase Plan | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total potentially dilutive shares (in shares) | 0 | 313 | 0 | 313 |