XML 49 R38.htm IDEA: XBRL DOCUMENT
v3.23.1

Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Mar. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | $ 289,997 | $ 248,859
Amortized Cost or Carrying Value | 3,381,624 | 3,605,208
Gross Unrealized Gains | 1,372 | 307
Gross Unrealized Losses Less Than 12 Months | (6,841) | (13,504)
Gross Unrealized Losses More Than 12 Months | (65,672) | (88,694)
Marketable securities, aggregate fair value | 3,310,483 | 3,503,317
Total financial assets | 3,671,621 | 3,854,067
Total financial assets | 3,600,480 | 3,752,176
Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 289,997 | 46,610
Marketable securities, aggregate fair value | 558,041 | 617,411
Total financial assets | 848,038 | 664,021
Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 0 | 202,249
Marketable securities, aggregate fair value | 2,752,442 | 2,885,906
Total financial assets | 2,752,442 | 3,088,155
Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 0 | 0
Marketable securities, aggregate fair value | 0 | 0
Total financial assets | 0 | 0
U.S. Treasury securities |  |
Fair Value Measurements, Financial Assets |  |
Amortized Cost or Carrying Value | 416,493 | 481,463
Gross Unrealized Gains | 0 | 0
Gross Unrealized Losses Less Than 12 Months | (650) | (1,269)
Gross Unrealized Losses More Than 12 Months | (7,747) | (11,347)
Marketable securities, aggregate fair value | 408,096 | 468,847
U.S. Treasury securities | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 408,096 | 468,847
U.S. Treasury securities | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 0 | 0
U.S. Treasury securities | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 0 | 0
Non-U.S. government securities |  |
Fair Value Measurements, Financial Assets |  |
Amortized Cost or Carrying Value | 149,510 | 149,901
Gross Unrealized Gains | 0 | 0
Gross Unrealized Losses Less Than 12 Months | (22) | (33)
Gross Unrealized Losses More Than 12 Months | (4,543) | (6,304)
Marketable securities, aggregate fair value | 144,945 | 143,564
Non-U.S. government securities | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 144,945 | 143,564
Non-U.S. government securities | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 0 | 0
Non-U.S. government securities | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 0 | 0
Corporate debt securities and commercial paper |  |
Fair Value Measurements, Financial Assets |  |
Amortized Cost or Carrying Value | 2,815,621 | 2,973,844
Gross Unrealized Gains | 1,372 | 307
Gross Unrealized Losses Less Than 12 Months | (6,169) | (12,202)
Gross Unrealized Losses More Than 12 Months | (53,382) | (71,043)
Marketable securities, aggregate fair value | 2,757,442 | 2,890,906
Corporate debt securities and commercial paper | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 5,000 | 5,000
Corporate debt securities and commercial paper | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 2,752,442 | 2,885,906
Corporate debt securities and commercial paper | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Marketable securities, aggregate fair value | 0 | 0
Money market funds |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 289,997 | 46,610
Money market funds | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 289,997 | 46,610
Money market funds | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | 0 | 0
Money market funds | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: | $ 0 | 0
Reverse repurchase agreements |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 200,000
Reverse repurchase agreements | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 0
Reverse repurchase agreements | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 200,000
Reverse repurchase agreements | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 0
Commercial paper |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 2,249
Commercial paper | Level 1 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  |
Commercial paper | Level 2 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  | 2,249
Commercial paper | Level 3 |  |
Fair Value Measurements, Financial Assets |  |
Cash and cash equivalents: |  |

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 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 -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258 + 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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + 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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 + 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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27337-111563 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss
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_CorporateDebtSecuritiesCommercialPaperMember
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: |