Income taxes - Schedule of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jan. 31, 2025 |
Jan. 31, 2024 |
|
| Unrecognized Tax Benefits [Roll Forward] | ||
| Gross unrecognized tax benefits at beginning of year | $ 19,213 | $ 8,690 |
| Increases as a result of tax positions taken during a prior period | 1,004 | 9,325 |
| Increases as a result of tax positions taken during the current period | 5,076 | 3,386 |
| Decreases as a result of settlement | 0 | (1,030) |
| Decreases resulting from the lapse of the applicable statute of limitations | (1,153) | (1,158) |
| Gross unrecognized tax benefits at end of year | 24,140 | 19,213 |
| Total gross unrecognized tax benefits | 24,140 | 19,213 |
| Amounts netted against related deferred tax assets | (8,363) | (7,186) |
| Unrecognized tax benefits recorded on the consolidated balance sheet | $ 15,777 | $ 12,027 |