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 | 9 Months Ended | ||
|---|---|---|---|---|
Oct. 31, 2025 |
Oct. 31, 2024 |
Oct. 31, 2025 |
Oct. 31, 2024 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities excluded from computation of earnings per share (in shares) | 1,756,224 | 6,725,641 | 387,388 | 6,725,641 |
| Stock options to purchase common stock, restricted stock 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) | 1,691,475 | 6,642,857 | 322,639 | 6,642,857 |
| 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) | 64,749 | 82,784 | 64,749 | 82,784 |