XML 52 R42.htm IDEA: XBRL DOCUMENT
v3.23.3

Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Sep. 30, 2023 | Dec. 31, 2022
--- | --- | ---
Financial Assets: |  |
Cash and cash equivalents: | $ 441,409 | $ 248,859
Amortized Cost or Carrying Value | 3,222,056 | 3,605,208
Amortized Cost or Carrying Value | 6,050 |
Amortized Cost or Carrying Value | 3,228,106 |
Gross Unrealized Gains | 154 | 307
Gross Unrealized Losses Less Than 12 Months | (10,870) | (13,504)
Gross Unrealized Losses More Than 12 Months | (37,898) | (88,694)
Marketable securities, aggregate fair value | 3,173,442 | 3,503,317
Equity securities, aggregate fair value | 6,050 |
Investments, aggregate fair value | 3,179,492 |
Total financial assets | 3,669,515 | 3,854,067
Total financial assets | 3,620,901 | 3,752,176
Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 418,098 | 46,610
Marketable securities, aggregate fair value | 653,627 | 617,411
Equity securities, aggregate fair value | 6,050 |
Investments, aggregate fair value | 659,677 |
Total financial assets | 1,077,775 | 664,021
Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: | 23,311 | 202,249
Marketable securities, aggregate fair value | 2,519,815 | 2,885,906
Equity securities, aggregate fair value | 0 |
Investments, aggregate fair value | 2,519,815 |
Total financial assets | 2,543,126 | 3,088,155
Level 3 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 | 0
Marketable securities, aggregate fair value | 0 | 0
Equity securities, aggregate fair value | 0 |
Investments, aggregate fair value | 0 |
Total financial assets | 0 | 0
U.S. Treasury securities |  |
Financial Assets: |  |
Amortized Cost or Carrying Value | 528,950 | 481,463
Gross Unrealized Gains | 20 | 0
Gross Unrealized Losses Less Than 12 Months | (1,060) | (1,269)
Gross Unrealized Losses More Than 12 Months | (3,999) | (11,347)
Marketable securities, aggregate fair value | 523,911 | 468,847
U.S. Treasury securities | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 523,911 | 468,847
U.S. Treasury securities | Level 2 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 0 | 0
U.S. Treasury securities | Level 3 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 0 | 0
Non-U.S. government securities |  |
Financial Assets: |  |
Amortized Cost or Carrying Value | 115,923 | 149,901
Gross Unrealized Gains | 0 | 0
Gross Unrealized Losses Less Than 12 Months | 0 | (33)
Gross Unrealized Losses More Than 12 Months | (2,897) | (6,304)
Marketable securities, aggregate fair value | 113,026 | 143,564
Non-U.S. government securities | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 113,026 | 143,564
Non-U.S. government securities | Level 2 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 0 | 0
Non-U.S. government securities | Level 3 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 0 | 0
Corporate debt securities and commercial paper |  |
Financial Assets: |  |
Amortized Cost or Carrying Value | 2,577,183 | 2,973,844
Gross Unrealized Gains | 134 | 307
Gross Unrealized Losses Less Than 12 Months | (9,810) | (12,202)
Gross Unrealized Losses More Than 12 Months | (31,002) | (71,043)
Marketable securities, aggregate fair value | 2,536,505 | 2,890,906
Corporate debt securities and commercial paper | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 16,690 | 5,000
Corporate debt securities and commercial paper | Level 2 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 2,519,815 | 2,885,906
Corporate debt securities and commercial paper | Level 3 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 0 | 0
Money market funds |  |
Financial Assets: |  |
Cash and cash equivalents: | 418,098 | 46,610
Money market funds | Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 418,098 | 46,610
Money market funds | Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 | 0
Money market funds | Level 3 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 | 0
Reverse repurchase agreements |  |
Financial Assets: |  |
Cash and cash equivalents: |  | 200,000
Reverse repurchase agreements | Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: |  | 0
Reverse repurchase agreements | Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: |  | 200,000
Reverse repurchase agreements | Level 3 |  |
Financial Assets: |  |
Cash and cash equivalents: |  | 0
Commercial paper |  |
Financial Assets: |  |
Cash and cash equivalents: | 23,311 | 2,249
Commercial paper | Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 |
Commercial paper | Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: | 23,311 | 2,249
Commercial paper | Level 3 |  |
Financial Assets: |  |
Cash and cash equivalents: | $ 0 |

X
- Definition The aggregate of carrying value for assets with carrying value that approximates fair value and amortized cost basis for assets carried at fair value. + References No definition available. + Details
Name: | twlo_FinancialAssetsAmortizedCostOrCarryingValue
Namespace Prefix: | twlo_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Marketable Securities, Amortized Cost + References No definition available. + Details
Name: | twlo_MarketableSecuritiesAmortizedCost
Namespace Prefix: | twlo_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_AssetsFairValueDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (aa) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481830/320-10-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-7 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479106/326-30-50-5 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-7 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479106/326-30-50-5 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cost of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). Excludes equity method investment and investment in equity security without readily determinable fair value. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 + Details
Name: | us-gaap_EquitySecuritiesFvNiCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org//1943274/2147482736/825-10-45-1A + Details
Name: | us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_ForeignGovernmentDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=twlo_CorporateDebtSecuritiesAndCommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=twlo_ReverseRepurchaseAgreementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |