Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($) shares in Thousands | Total | Class A Common Stock | Class B Common Stock | Common Stock Class A Common Stock | Common Stock Class B Common Stock | Additional Paid-in Capital | Accumulated Other Comprehensive Income (Loss) | Accumulated Deficit |
Beginning balance (in shares) at Jan. 31, 2021 | 294,257 | | | | | | | |
Beginning balance at Jan. 31, 2021 | $ 1,221,968,000 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Issuance of convertible preferred stock, net of issuance costs (in shares) | 12,043 | | | | | | | |
Issuance of convertible preferred stock, net of issuance costs | $ 749,836,000 | | | | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering (in shares) | (306,300) | | | | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering | $ (1,971,804,000) | | | | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering (in shares) | | | | 306,300 | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering | $ 1,971,804,000 | | | $ 3,000 | | $ 1,971,801,000 | | |
Ending balance (in shares) at Apr. 30, 2021 | 0 | | | | | | | |
Ending balance at Apr. 30, 2021 | $ 0 | | | | | | | |
Beginning balance (in shares) at Jan. 31, 2021 | | | | 75,177 | 110,653 | | | |
Beginning balance at Jan. 31, 2021 | (803,704,000) | | | $ 1,000 | $ 1,000 | 179,175,000 | $ (12,521,000) | $ (970,360,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering (in shares) | | | | 306,300 | | | | |
Conversion of convertible preferred stock to common stock upon initial public offering | 1,971,804,000 | | | $ 3,000 | | 1,971,801,000 | | |
Issuance of common stock upon initial public offering, net of underwriting discounts and commissions and other issuance costs (in shares) | | | | 13,000 | | | | |
Issuance of common stock upon initial public offering, net of underwriting discounts and commissions and other issuance costs | 687,903,000 | | | | | 687,903,000 | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 28,200 | (28,200) | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 1,881 | | | | |
Issuance of common stock upon exercise of stock options | 3,114,000 | | | | | 3,114,000 | | |
Vesting of early exercised stock options | 1,646,000 | | | | | 1,646,000 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 389 | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (164) | | | | |
Tax withholdings on settlement of restricted stock units | (9,218,000) | | | | | (9,218,000) | | |
Shares issued as consideration for business acquisition (in shares) | | | | 543 | | | | |
Shares issued as consideration for business acquisition | 30,446,000 | | | | | 30,446,000 | | |
Stock-based compensation | 252,986,000 | | | | | 252,986,000 | | |
Other comprehensive income (loss), net of tax | 4,227,000 | | | | | | 4,227,000 | |
Net loss | (239,663,000) | | | | | | | (239,663,000) |
Ending balance (in shares) at Apr. 30, 2021 | | | | 425,326 | 82,453 | | | |
Ending balance at Apr. 30, 2021 | $ 1,899,541,000 | | | $ 4,000 | $ 1,000 | 3,117,853,000 | (8,294,000) | (1,210,023,000) |
Beginning balance (in shares) at Jan. 31, 2021 | 294,257 | | | | | | | |
Beginning balance at Jan. 31, 2021 | $ 1,221,968,000 | | | | | | | |
Beginning balance (in shares) at Jan. 31, 2021 | | | | 75,177 | 110,653 | | | |
Beginning balance at Jan. 31, 2021 | (803,704,000) | | | $ 1,000 | $ 1,000 | 179,175,000 | (12,521,000) | (970,360,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Other comprehensive income (loss), net of tax | 16,352,000 | | | | | | | |
Net loss | (462,476,000) | $ (364,403,000) | $ (98,073,000) | | | | | |
Ending balance (in shares) at Oct. 31, 2021 | | | | 442,357 | 82,453 | | | |
Ending balance at Oct. 31, 2021 | $ 1,883,405,000 | | | $ 4,000 | $ 1,000 | 3,312,405,000 | 3,831,000 | (1,432,836,000) |
Beginning balance (in shares) at Apr. 30, 2021 | 0 | | | | | | | |
Beginning balance at Apr. 30, 2021 | $ 0 | | | | | | | |
Beginning balance (in shares) at Apr. 30, 2021 | | | | 425,326 | 82,453 | | | |
Beginning balance at Apr. 30, 2021 | 1,899,541,000 | | | $ 4,000 | $ 1,000 | 3,117,853,000 | (8,294,000) | (1,210,023,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 2,993 | | | | |
Issuance of common stock upon exercise of stock options | 3,537,000 | | | | | 3,537,000 | | |
Vesting of early exercised stock options | 615,000 | | | | | 615,000 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 2,492 | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (18) | | | | |
Tax withholdings on settlement of restricted stock units | (1,175,000) | | | | | (1,175,000) | | |
Shares issued as consideration for business acquisition | 21,000 | | | | | 21,000 | | |
Stock-based compensation | 92,744,000 | | | | | 92,744,000 | | |
Other comprehensive income (loss), net of tax | 3,696,000 | | | | | | 3,696,000 | |
Net loss | (100,026,000) | | | | | | | (100,026,000) |
Ending balance (in shares) at Jul. 31, 2021 | | | | 430,793 | 82,453 | | | |
Ending balance at Jul. 31, 2021 | 1,898,953,000 | | | $ 4,000 | $ 1,000 | 3,213,595,000 | (4,598,000) | (1,310,049,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | | 2,848 | | | | |
Issuance of common stock upon exercise of stock options | 3,209,000 | | | | | 3,209,000 | | |
Vesting of early exercised stock options | 462,000 | | | | | 462,000 | | |
Issuance of common stock upon settlement of restricted stock units (in shares) | | | | 8,720 | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (4) | | | | |
Tax withholdings on settlement of restricted stock units | (199,000) | | | | | (199,000) | | |
Stock-based compensation | 95,338,000 | | | | | 95,338,000 | | |
Other comprehensive income (loss), net of tax | 8,429,000 | | | | | | 8,429,000 | |
Net loss | (122,787,000) | $ (103,747,000) | $ (19,040,000) | | | | | (122,787,000) |
Ending balance (in shares) at Oct. 31, 2021 | | | | 442,357 | 82,453 | | | |
Ending balance at Oct. 31, 2021 | 1,883,405,000 | | | $ 4,000 | $ 1,000 | 3,312,405,000 | 3,831,000 | (1,432,836,000) |
Beginning balance at Jan. 31, 2022 | 0 | | | | | | | |
Beginning balance (in shares) at Jan. 31, 2022 | | 458,773 | 82,453 | 458,773 | 82,453 | | | |
Beginning balance at Jan. 31, 2022 | 1,921,917,000 | | | $ 4,000 | $ 1,000 | 3,406,959,000 | 10,899,000 | (1,495,946,000) |
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,000 | | | | | 2,683,000 | | |
Vesting of early exercised stock options | 1,355,000 | | | | | 1,355,000 | | |
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,000) | | | | | (24,827,000) | | |
Stock-based compensation | 102,085,000 | | | | | 102,085,000 | | |
Other comprehensive income (loss), net of tax | (458,000) | | | | | | (458,000) | |
Net loss | (122,561,000) | | | | | | | (122,561,000) |
Ending balance (in shares) at Apr. 30, 2022 | | | | 462,430 | 82,453 | | | |
Ending balance at Apr. 30, 2022 | 1,880,194,000 | | | $ 4,000 | $ 1,000 | 3,488,255,000 | 10,441,000 | (1,618,507,000) |
Beginning balance at Jan. 31, 2022 | 0 | | | | | | | |
Ending balance at Oct. 31, 2022 | 0 | | | | | | | |
Beginning balance (in shares) at Jan. 31, 2022 | | 458,773 | 82,453 | 458,773 | 82,453 | | | |
Beginning balance at Jan. 31, 2022 | $ 1,921,917,000 | | | $ 4,000 | $ 1,000 | 3,406,959,000 | 10,899,000 | (1,495,946,000) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | 3,788 | | | | | | | |
Charitable donation of Class A common stock (in shares) | | | | 300 | | | | |
Repurchase of unvested early exercised stock options (in shares) | | | | (400) | | | | |
Other comprehensive income (loss), net of tax | $ (3,946,000) | | | | | | | |
Net loss | (300,663,000) | $ (255,266,000) | $ (45,397,000) | | | | | |
Ending balance (in shares) at Oct. 31, 2022 | | 469,924 | 82,453 | 469,924 | 82,453 | | | |
Ending balance at Oct. 31, 2022 | 1,859,824,000 | | | $ 5,000 | $ 1,000 | 3,649,474,000 | 6,953,000 | (1,796,609,000) |
Beginning balance (in shares) at Apr. 30, 2022 | | | | 462,430 | 82,453 | | | |
Beginning balance at Apr. 30, 2022 | 1,880,194,000 | | | $ 4,000 | $ 1,000 | 3,488,255,000 | 10,441,000 | (1,618,507,000) |
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,000 | | | | | 1,878,000 | | |
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,000 | | | $ 1,000 | | | | |
Tax withholdings on settlement of restricted stock units (in shares) | | | | (1,040) | | | | |
Tax withholdings on settlement of restricted stock units | (18,922,000) | | | | | (18,922,000) | | |
Charitable donation of Class A common stock (in shares) | | | | 300 | | | | |
Charitable donation of Class A common stock | 5,499,000 | | | | | 5,499,000 | | |
Shares issued as consideration for business acquisition (in shares) | | | | 570 | | | | |
Shares issued as consideration for business acquisition | 2,965,000 | | | | | 2,965,000 | | |
Issuance of common stock under employee stock purchase plan (in shares) | | | | 578 | | | | |
Issuance of common stock under employee stock purchase plan | 9,070,000 | | | | | 9,070,000 | | |
Repurchase of unvested early exercised stock options (in shares) | | | | (441) | | | | |
Stock-based compensation | 88,533,000 | | | | | 88,533,000 | | |
Other comprehensive income (loss), net of tax | 709,000 | | | | | | 709,000 | |
Net loss | (120,378,000) | | | | | | | (120,378,000) |
Ending balance (in shares) at Jul. 31, 2022 | | | | 466,998 | 82,453 | | | |
Ending balance at Jul. 31, 2022 | 1,849,549,000 | | | $ 5,000 | $ 1,000 | 3,577,278,000 | 11,150,000 | (1,738,885,000) |
Ending balance at Oct. 31, 2022 | 0 | | | | | | | |
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,000 | | | | | 2,889,000 | | |
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,000) | | | | | (11,998,000) | | |
Stock-based compensation | 81,305,000 | | | | | 81,305,000 | | |
Other comprehensive income (loss), net of tax | (4,197,000) | | | | | | (4,197,000) | |
Net loss | (57,724,000) | $ (49,073,000) | $ (8,651,000) | | | | | (57,724,000) |
Ending balance (in shares) at Oct. 31, 2022 | | 469,924 | 82,453 | 469,924 | 82,453 | | | |
Ending balance at Oct. 31, 2022 | $ 1,859,824,000 | | | $ 5,000 | $ 1,000 | $ 3,649,474,000 | $ 6,953,000 | $ (1,796,609,000) |