XML 49 R37.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Mar. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Financial Assets: |  |
Cash and cash equivalents: | $ 460,665 | $ 408,696
Amortized Cost or Carrying Value | 3,157,413 | 3,353,312
Amortized Cost or Carrying Value | 3,935 | 4,901
Amortized Cost or Carrying Value | 3,161,348 | 3,358,213
Total financial assets | 3,622,013 | 3,766,909
Gross Unrealized Gains | 6,796 | 17,583
Gross Unrealized Losses Less Than 12 Months | (10,396) | (10,936)
Gross Unrealized Losses More Than 12 Months | (3,743) | (8,796)
Marketable securities, aggregate fair value | 3,150,070 | 3,351,163
Equity securities, aggregate fair value | 3,935 | 4,901
Investments, aggregate fair value | 3,154,005 | 3,356,064
Total financial assets | 3,614,670 | 3,764,760
Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 447,629 | 408,696
Marketable securities, aggregate fair value | 519,477 | 510,156
Equity securities, aggregate fair value | 3,935 | 4,901
Investments, aggregate fair value | 523,412 | 515,057
Total financial assets | 971,041 | 923,753
Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: | 13,036 | 0
Marketable securities, aggregate fair value | 2,630,593 | 2,841,007
Equity securities, aggregate fair value | 0 | 0
Investments, aggregate fair value | 2,630,593 | 2,841,007
Total financial assets | 2,643,629 | 2,841,007
Level 3 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 | 0
Marketable securities, aggregate fair value | 0 | 0
Equity securities, aggregate fair value | 0 | 0
Investments, aggregate fair value | 0 | 0
Total financial assets | 0 | 0
U.S. Treasury securities |  |
Financial Assets: |  |
Amortized Cost or Carrying Value | 437,581 | 410,665
Gross Unrealized Gains | 331 | 2,162
Gross Unrealized Losses Less Than 12 Months | (665) | (7)
Gross Unrealized Losses More Than 12 Months | (549) | (1,665)
Marketable securities, aggregate fair value | 436,698 | 411,155
U.S. Treasury securities | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 436,698 | 411,155
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 | 68,549 | 83,576
Gross Unrealized Gains | 23 | 55
Gross Unrealized Losses Less Than 12 Months | (20) | (111)
Gross Unrealized Losses More Than 12 Months | (463) | (1,209)
Marketable securities, aggregate fair value | 68,089 | 82,311
Non-U.S. government securities | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 68,089 | 82,311
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,651,283 | 2,859,071
Gross Unrealized Gains | 6,442 | 15,366
Gross Unrealized Losses Less Than 12 Months | (9,711) | (10,818)
Gross Unrealized Losses More Than 12 Months | (2,731) | (5,922)
Marketable securities, aggregate fair value | 2,645,283 | 2,857,697
Corporate debt securities and commercial paper | Level 1 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 14,690 | 16,690
Corporate debt securities and commercial paper | Level 2 |  |
Financial Assets: |  |
Marketable securities, aggregate fair value | 2,630,593 | 2,841,007
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: | 447,629 | 408,696
Money market funds | Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 447,629 | 408,696
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
Commercial paper |  |
Financial Assets: |  |
Cash and cash equivalents: | 13,036 |
Commercial paper | Level 1 |  |
Financial Assets: |  |
Cash and cash equivalents: | 0 |
Commercial paper | Level 2 |  |
Financial Assets: |  |
Cash and cash equivalents: | 13,036 |
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=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |