Net Income (Loss) Per Share - Schedule of Potentially Dilutive Securities Excluded from Computation (Details) - shares shares in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jan. 31, 2026 |
Jan. 31, 2025 |
Jan. 31, 2024 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 4,742 | 8,673 | 20,652 |
| Employee share-based awards | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 3,274 | 4,503 | 15,179 |
| Convertible senior notes | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 1,468 | 4,170 | 5,473 |