Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Dec. 31, 2023 |
Dec. 31, 2022 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | $ 387,618 | $ 435,122 |
| Accumulated depreciation and amortization | (123,062) | (100,091) |
| Property and equipment, net | 264,556 | 335,031 |
| Computers and equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 51,320 | 45,989 |
| Leasehold improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 292,418 | 353,245 |
| Internal-use software | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 6,980 | 7,274 |
| Office equipment and furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | $ 36,900 | $ 28,614 |