Net income (loss) per share attributable to common stockholders - Schedule of Shares Excluded from Computation of Diluted Net Income (Loss) Per Share (Details) - shares |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 2,654,707 | 930,939 | 3,425,821 | 5,982,766 |
| Stock options to purchase common stock, restricted stock units and performance stock awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 2,579,566 | 876,566 | 3,303,548 | 5,930,619 |
| Employee stock purchase plan | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 75,141 | 54,373 | 122,273 | 52,147 |