Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Mar. 31, 2024 |
Dec. 31, 2023 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | $ 384,354 | $ 387,618 |
| Less: Accumulated depreciation and amortization | (132,867) | (123,062) |
| Property and equipment, net | 251,487 | 264,556 |
| Computers and equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 51,279 | 51,320 |
| Leasehold improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 290,346 | 292,418 |
| Internal-use software | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | 5,916 | 6,980 |
| Office equipment and furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Property and equipment, gross | $ 36,813 | $ 36,900 |