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 | |
|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 4,196,935 | 5,864,111 |
| 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) | 4,027,530 | 5,792,263 |
| 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) | 169,405 | 71,848 |