Investments - Schedule of Cash Equivalents, and Short term Investments (Details) - USD ($) $ in Thousands | 3 Months Ended | |
Mar. 31, 2024 | Mar. 31, 2023 | Dec. 31, 2023 |
Debt Securities, Available-for-sale [Line Items] | | | |
Total, Amortized Cost | $ 617,573 | | $ 581,367 |
Total, Gross Unrealized Gains | 376 | | 615 |
Total, Gross Unrealized Losses | (474) | | (409) |
Total Fair Value | 617,475 | | 581,573 |
Proceeds from sale of cash equivalent investments | 5,800 | $ 13,000 | |
Short-term Investments | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 449,570 | | 469,451 |
Short-term investments, Gross Unrealized Gains | 376 | | 615 |
Short-term investments, Gross Unrealized Losses | (474) | | (409) |
Short-term investments, Total Fair Value | 449,472 | | 469,657 |
Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 62,076 | | 65,340 |
Short-term investments, Gross Unrealized Gains | 99 | | 170 |
Short-term investments, Gross Unrealized Losses | (27) | | (22) |
Short-term investments, Total Fair Value | 62,148 | | 65,488 |
Certificate of deposits | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 19,294 | | 17,086 |
Short-term investments, Gross Unrealized Gains | 0 | | 0 |
Short-term investments, Gross Unrealized Losses | 0 | | 0 |
Short-term investments, Total Fair Value | 19,294 | | 17,086 |
Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 45,383 | | 56,273 |
Short-term investments, Gross Unrealized Gains | 0 | | 0 |
Short-term investments, Gross Unrealized Losses | 0 | | 0 |
Short-term investments, Total Fair Value | 45,383 | | 56,273 |
Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 255,876 | | 251,671 |
Short-term investments, Gross Unrealized Gains | 277 | | 432 |
Short-term investments, Gross Unrealized Losses | (301) | | (299) |
Short-term investments, Total Fair Value | 255,852 | | 251,804 |
U.S. government agency bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 4,729 | | 13,200 |
Short-term investments, Gross Unrealized Gains | 0 | | 0 |
Short-term investments, Gross Unrealized Losses | (4) | | (9) |
Short-term investments, Total Fair Value | 4,725 | | 13,191 |
U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Amortized Cost | 62,212 | | 65,881 |
Short-term investments, Gross Unrealized Gains | 0 | | 13 |
Short-term investments, Gross Unrealized Losses | (142) | | (79) |
Short-term investments, Total Fair Value | 62,070 | | 65,815 |
Cash equivalents | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | 168,003 | | 111,916 |
Cash equivalents, Gross Unrealized Gains | 0 | | 0 |
Cash equivalents, Gross Unrealized Losses | 0 | | 0 |
Cash equivalent, Total Fair Value | 168,003 | | 111,916 |
Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | | | 138 |
Cash equivalents, Gross Unrealized Gains | | | 0 |
Cash equivalents, Gross Unrealized Losses | | | 0 |
Cash equivalent, Total Fair Value | | | 138 |
Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | 51,970 | | 48,063 |
Cash equivalents, Gross Unrealized Gains | 0 | | 0 |
Cash equivalents, Gross Unrealized Losses | 0 | | 0 |
Cash equivalent, Total Fair Value | 51,970 | | 48,063 |
Money market funds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | 97,440 | | 60,719 |
Cash equivalents, Gross Unrealized Gains | 0 | | 0 |
Cash equivalents, Gross Unrealized Losses | 0 | | 0 |
Cash equivalent, Total Fair Value | 97,440 | | 60,719 |
U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | 16,936 | | 2,996 |
Cash equivalents, Gross Unrealized Gains | 0 | | 0 |
Cash equivalents, Gross Unrealized Losses | 0 | | 0 |
Cash equivalent, Total Fair Value | 16,936 | | 2,996 |
Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalents, Amortized Cost | 1,657 | | |
Cash equivalents, Gross Unrealized Gains | 0 | | |
Cash equivalents, Gross Unrealized Losses | 0 | | |
Cash equivalent, Total Fair Value | 1,657 | | |
Level 1 | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Total Fair Value | 195,740 | | 146,616 |
Level 1 | Short-term Investments | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 81,364 | | 82,901 |
Level 1 | Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 1 | Certificate of deposits | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 19,294 | | 17,086 |
Level 1 | Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 1 | Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 1 | U.S. government agency bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 1 | U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 62,070 | | 65,815 |
Level 1 | Cash equivalents | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 114,376 | | 63,715 |
Level 1 | Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | | | 0 |
Level 1 | Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 0 | | 0 |
Level 1 | Money market funds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 97,440 | | 60,719 |
Level 1 | U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 16,936 | | 2,996 |
Level 1 | Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 0 | | |
Level 2 | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Total Fair Value | 421,735 | | 434,957 |
Level 2 | Short-term Investments | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 368,108 | | 386,756 |
Level 2 | Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 62,148 | | 65,488 |
Level 2 | Certificate of deposits | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 2 | Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 45,383 | | 56,273 |
Level 2 | Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 255,852 | | 251,804 |
Level 2 | U.S. government agency bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 4,725 | | 13,191 |
Level 2 | U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Short-term investments, Total Fair Value | 0 | | 0 |
Level 2 | Cash equivalents | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 53,627 | | 48,201 |
Level 2 | Asset-backed securities | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | | | 138 |
Level 2 | Commercial paper | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 51,970 | | 48,063 |
Level 2 | Money market funds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 0 | | 0 |
Level 2 | U.S. government bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | 0 | | $ 0 |
Level 2 | Corporate bonds | | | |
Debt Securities, Available-for-sale [Line Items] | | | |
Cash equivalent, Total Fair Value | $ 1,657 | | |