CONDENSED CONSOLIDATED STATEMENTS OF CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' (DEFICIT) EQUITY (Unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Series A Convertible Preferred Stock | Common Stock Class A Common Stock | Additional Paid-In Capital | Accumulated Other Comprehensive (Loss) Income | Accumulated Deficit |
Balance at Jan. 31, 2022 | $ (395,087) | | $ 15 | $ 972,020 | $ (4,543) | $ (1,362,579) |
Temporary equity, Beginning, Shares at Jan. 31, 2022 | | 500 | | | | |
Temporary equity, Balance at Jan. 31, 2022 | | $ 487,880 | | | | |
Balance, Beginning, Shares at Jan. 31, 2022 | | | 145,081 | | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes | (43,990) | | | (43,990) | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes, (in shares) | | | 5,467 | | | |
Stock consideration in connection with fiscal 2022 acquisition (in shares) | | | 559 | | | |
Stock-based compensation related to stock awards | 107,015 | | | 107,015 | | |
Accretion and dividend on series A convertible preferred stock, net of dividends paid | (8,526) | $ 1,026 | | (8,526) | | |
Repurchases of common stock | (228,572) | | $ 1 | (228,571) | | |
Repurchases of common stock (in shares) | | | (8,787) | | | |
Other comprehensive loss | (6,690) | | | | (6,690) | |
Net income (loss) | (3,654) | | | | | (3,654) |
Balance at Jul. 31, 2022 | (579,504) | | $ 14 | 797,948 | (11,233) | (1,366,233) |
Temporary equity, Ending, Shares at Jul. 31, 2022 | | 500 | | | | |
Temporary equity, Balance at Jul. 31, 2022 | | $ 488,906 | | | | |
Balance, Ending, Shares at Jul. 31, 2022 | | | 142,320 | | | |
Balance at Apr. 30, 2022 | (483,965) | | $ 15 | 892,067 | (8,769) | (1,367,278) |
Temporary equity, Beginning, Shares at Apr. 30, 2022 | | 500 | | | | |
Temporary equity, Balance at Apr. 30, 2022 | | $ 488,351 | | | | |
Balance, Beginning, Shares at Apr. 30, 2022 | | | 145,598 | | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes | (16,596) | | | (16,596) | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes, (in shares) | | | 1,308 | | | |
Stock-based compensation related to stock awards | 45,229 | | | 45,229 | | |
Accretion and dividend on series A convertible preferred stock, net of dividends paid | (4,304) | $ 555 | | (4,304) | | |
Repurchases of common stock | (118,449) | | $ (1) | (118,448) | | |
Repurchases of common stock (in shares) | | | (4,586) | | | |
Other comprehensive loss | (2,464) | | | | (2,464) | |
Net income (loss) | 1,045 | | | | | 1,045 |
Balance at Jul. 31, 2022 | (579,504) | | $ 14 | 797,948 | (11,233) | (1,366,233) |
Temporary equity, Ending, Shares at Jul. 31, 2022 | | 500 | | | | |
Temporary equity, Balance at Jul. 31, 2022 | | $ 488,906 | | | | |
Balance, Ending, Shares at Jul. 31, 2022 | | | 142,320 | | | |
Balance at Jan. 31, 2023 | $ (523,851) | | $ 14 | 818,996 | (7,065) | (1,335,796) |
Temporary equity, Beginning, Shares at Jan. 31, 2023 | 500 | 500 | | | | |
Temporary equity, Balance at Jan. 31, 2023 | $ 489,990 | $ 489,990 | | | | |
Balance, Beginning, Shares at Jan. 31, 2023 | | | 144,301 | | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes | (25,835) | | | (25,835) | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes, (in shares) | | | 3,558 | | | |
Stock-based compensation related to stock awards | 108,056 | | | 108,056 | | |
Accretion and dividend on series A convertible preferred stock, net of dividends paid | (8,531) | $ 1,031 | | (8,531) | | |
Repurchases of common stock | (105,475) | | | (105,475) | | |
Repurchases of common stock (in shares) | | | (3,814) | | | |
Other comprehensive loss | (469) | | | | (469) | |
Net income (loss) | 19,141 | | | | | 19,141 |
Balance at Jul. 31, 2023 | $ (536,964) | | $ 14 | 787,211 | (7,534) | (1,316,655) |
Temporary equity, Ending, Shares at Jul. 31, 2023 | 500 | 500 | | | | |
Temporary equity, Balance at Jul. 31, 2023 | $ 491,021 | $ 491,021 | | | | |
Balance, Ending, Shares at Jul. 31, 2023 | | | 144,045 | | | |
Balance at Apr. 30, 2023 | (512,085) | | $ 14 | 822,366 | (7,019) | (1,327,446) |
Temporary equity, Beginning, Shares at Apr. 30, 2023 | | 500 | | | | |
Temporary equity, Balance at Apr. 30, 2023 | | $ 490,464 | | | | |
Balance, Beginning, Shares at Apr. 30, 2023 | | | 144,828 | | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes | (21,416) | | | (21,416) | | |
Issuance of common stock under employee equity plans, net of shares withheld for employee payroll taxes, (in shares) | | | 1,372 | | | |
Stock-based compensation related to stock awards | 52,148 | | | 52,148 | | |
Accretion and dividend on series A convertible preferred stock, net of dividends paid | (4,307) | $ 557 | | (4,307) | | |
Repurchases of common stock | (61,580) | | | (61,580) | | |
Repurchases of common stock (in shares) | | | (2,155) | | | |
Other comprehensive loss | (515) | | | | (515) | |
Net income (loss) | 10,791 | | | | | 10,791 |
Balance at Jul. 31, 2023 | $ (536,964) | | $ 14 | $ 787,211 | $ (7,534) | $ (1,316,655) |
Temporary equity, Ending, Shares at Jul. 31, 2023 | 500 | 500 | | | | |
Temporary equity, Balance at Jul. 31, 2023 | $ 491,021 | $ 491,021 | | | | |
Balance, Ending, Shares at Jul. 31, 2023 | | | 144,045 | | | |