Condensed Consolidated Statements of Stockholders' Equity - USD ($) shares in Thousands, $ in Thousands | Total | Class A Common Stock | Class B Common Stock | Common Stock Class A Common Stock | Common Stock Class B Common Stock | Treasury Stock | Additional Paid-in Capital | Accumulated Other Comprehensive Income | Accumulated Deficit |
Beginning balance (in shares) at Jan. 31, 2022 | | | | 458,773 | 82,453 | | | | |
Beginning balance at Jan. 31, 2022 | $ 1,921,917 | | | $ 4 | $ 1 | | $ 3,406,959 | $ 10,899 | $ (1,495,946) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 1,283 | | | | | |
Issuance of common stock upon exercise of stock options | 2,683 | | | | | | 2,683 | | |
Vesting of early exercised stock options | 1,355 | | | | | | 1,355 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 3,499 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,125) | | | | | |
Tax withholdings on settlement of restricted stock units | (24,827) | | | | | | (24,827) | | |
Stock-based compensation | 102,085 | | | | | | 102,085 | | |
Other comprehensive income (loss), net | (458) | | | | | | | (458) | |
Net loss | (122,561) | | | | | | | | (122,561) |
Ending balance (in shares) at Apr. 30, 2022 | | | | 462,430 | 82,453 | | | | |
Ending balance at Apr. 30, 2022 | 1,880,194 | | | $ 4 | $ 1 | | 3,488,255 | 10,441 | (1,618,507) |
Beginning balance (in shares) at Jan. 31, 2022 | | | | 458,773 | 82,453 | | | | |
Beginning balance at Jan. 31, 2022 | 1,921,917 | | | $ 4 | $ 1 | | 3,406,959 | 10,899 | (1,495,946) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Other comprehensive income (loss), net | (3,946) | | | | | | | | |
Net loss | (300,663) | $ (255,266) | $ (45,397) | | | | | | |
Ending balance (in shares) at Oct. 31, 2022 | | | | 469,924 | 82,453 | | | | |
Ending balance at Oct. 31, 2022 | 1,859,824 | | | $ 5 | $ 1 | | 3,649,474 | 6,953 | (1,796,609) |
Beginning balance (in shares) at Apr. 30, 2022 | | | | 462,430 | 82,453 | | | | |
Beginning balance at Apr. 30, 2022 | 1,880,194 | | | $ 4 | $ 1 | | 3,488,255 | 10,441 | (1,618,507) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 1,418 | | | | | |
Issuance of common stock upon exercise of stock options | 1,878 | | | | | | 1,878 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 3,183 | | | | | |
Issuance of common stock upon settlement of restricted stock units | 1 | | | $ 1 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,040) | | | | | |
Tax withholdings on settlement of restricted stock units | (18,922) | | | | | | (18,922) | | |
Charitable donation of Class A common stock (in shares) | | | | 300 | | | | | |
Charitable donation of Class A common stock | 5,499 | | | | | | 5,499 | | |
Shares issued in connection with business acquisition (in shares) | | | | 570 | | | | | |
Shares issued in connection with business acquisition | 2,965 | | | | | | 2,965 | | |
Issuance of common stock under employee stock purchase plan (in shares) | | | | 578 | | | | | |
Issuance of common stock under employee stock purchase plan | 9,070 | | | | | | 9,070 | | |
Repurchase of unvested early exercised stock options (in shares) | | | | (441) | | | | | |
Stock-based compensation | 88,533 | | | | | | 88,533 | | |
Other comprehensive income (loss), net | 709 | | | | | | | 709 | |
Net loss | (120,378) | | | | | | | | (120,378) |
Ending balance (in shares) at Jul. 31, 2022 | | | | 466,998 | 82,453 | | | | |
Ending balance at Jul. 31, 2022 | 1,849,549 | | | $ 5 | $ 1 | | 3,577,278 | 11,150 | (1,738,885) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 1,087 | | | | | |
Issuance of common stock upon exercise of stock options | 2,889 | | | | | | 2,889 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 2,790 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (951) | | | | | |
Tax withholdings on settlement of restricted stock units | (11,998) | | | | | | (11,998) | | |
Stock-based compensation | 81,305 | | | | | | 81,305 | | |
Other comprehensive income (loss), net | (4,197) | | | | | | | (4,197) | |
Net loss | (57,724) | $ (49,073) | $ (8,651) | | | | | | (57,724) |
Ending balance (in shares) at Oct. 31, 2022 | | | | 469,924 | 82,453 | | | | |
Ending balance at Oct. 31, 2022 | 1,859,824 | | | $ 5 | $ 1 | | 3,649,474 | 6,953 | (1,796,609) |
Beginning balance (in shares) at Jan. 31, 2023 | | 474,160 | 82,453 | 474,160 | 82,453 | | | | |
Beginning balance at Jan. 31, 2023 | 1,920,158 | | | $ 5 | $ 1 | | 3,736,838 | 7,612 | (1,824,298) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 898 | | | | | |
Issuance of common stock upon exercise of stock options | 1,175 | | | | | | 1,175 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 4,246 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,463) | | | | | |
Tax withholdings on settlement of restricted stock units | (25,697) | | | | | | (25,697) | | |
Charitable donation of Class A common stock (in shares) | | | | 281 | | | | | |
Charitable donation of Class A common stock | 4,215 | | | | | | 4,215 | | |
Stock-based compensation | 85,125 | | | | | | 85,125 | | |
Other comprehensive income (loss), net | 2,462 | | | | | | | 2,462 | |
Net loss | (31,901) | | | | | | | | (31,901) |
Ending balance (in shares) at Apr. 30, 2023 | | | | 478,122 | 82,453 | | | | |
Ending balance at Apr. 30, 2023 | 1,955,537 | | | $ 5 | $ 1 | | 3,801,656 | 10,074 | (1,856,199) |
Beginning balance (in shares) at Jan. 31, 2023 | | 474,160 | 82,453 | 474,160 | 82,453 | | | | |
Beginning balance at Jan. 31, 2023 | $ 1,920,158 | | | $ 5 | $ 1 | | 3,736,838 | 7,612 | (1,824,298) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | 3,559 | | | | | | | | |
Repurchase of Class A common stock (in shares) | | | | (3,200) | | | | | |
Charitable donation of Class A common stock (in shares) | | | | 300 | | | | | |
Other comprehensive income (loss), net | $ (4,454) | | | | | | | | |
Net loss | (123,799) | $ (105,657) | $ (18,142) | | | | | | |
Ending balance (in shares) at Oct. 31, 2023 | | 488,021 | 82,453 | 488,021 | 82,453 | (3,239) | | | |
Ending balance at Oct. 31, 2023 | 1,961,213 | | | $ 5 | $ 1 | $ (52,649) | 3,958,795 | 3,158 | (1,948,097) |
Beginning balance (in shares) at Apr. 30, 2023 | | | | 478,122 | 82,453 | | | | |
Beginning balance at Apr. 30, 2023 | 1,955,537 | | | $ 5 | $ 1 | | 3,801,656 | 10,074 | (1,856,199) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 1,824 | | | | | |
Issuance of common stock upon exercise of stock options | 2,717 | | | | | | 2,717 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 5,026 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,676) | | | | | |
Tax withholdings on settlement of restricted stock units | (27,420) | | | | | | (27,420) | | |
Issuance of common stock under employee stock purchase plan (in shares) | | | | 832 | | | | | |
Issuance of common stock under employee stock purchase plan | 9,313 | | | | | | 9,313 | | |
Stock-based compensation | 102,148 | | | | | | 102,148 | | |
Other comprehensive income (loss), net | 1,432 | | | | | | | 1,432 | |
Net loss | (60,361) | | | | | | | | (60,361) |
Ending balance (in shares) at Jul. 31, 2023 | | | | 484,128 | 82,453 | 0 | | | |
Ending balance at Jul. 31, 2023 | 1,983,366 | | | $ 5 | $ 1 | $ 0 | 3,888,414 | 11,506 | (1,916,560) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 837 | | | | | |
Issuance of common stock upon exercise of stock options | 1,516 | | | | | | 1,516 | | |
Vesting of early exercised stock options | 1 | | | | | | 1 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 4,639 | | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,583) | | | | | |
Tax withholdings on settlement of restricted stock units | (27,047) | | | | | | (27,047) | | |
Repurchase of Class A common stock (in shares) | | | | (3,200) | | (3,239) | | | |
Repurchase of Class A common stock | (52,649) | | | | | $ (52,649) | | | |
Stock-based compensation | 95,911 | | | | | | 95,911 | | |
Other comprehensive income (loss), net | (8,348) | | | | | | | (8,348) | |
Net loss | (31,537) | $ (26,951) | $ (4,586) | | | | | | (31,537) |
Ending balance (in shares) at Oct. 31, 2023 | | 488,021 | 82,453 | 488,021 | 82,453 | (3,239) | | | |
Ending balance at Oct. 31, 2023 | $ 1,961,213 | | | $ 5 | $ 1 | $ (52,649) | $ 3,958,795 | $ 3,158 | $ (1,948,097) |