XML 51 R40.htm IDEA: XBRL DOCUMENT
v3.23.1

Fair Value Measurements - Contractual Maturities (Details) - USD ($) $ in Thousands | Mar. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Fair Value Disclosures [Abstract] |  |
Less than one year, amortized cost | $ 2,155,152 | $ 1,943,836
One to three years, amortized cost | 1,226,472 | 1,661,372
Amortized Cost or Carrying Value | 3,381,624 | 3,605,208
Less than one year, aggregate fair value | 2,116,532 | 1,909,218
One to three years, aggregate fair value | 1,193,951 | 1,594,099
Total aggregate fair value | $ 3,310,483 | $ 3,503,317

X
- Definition Amount after adjustments of available-for-sale debt securities at cost, maturing in the second rolling twelve months following the latest balance sheet. Adjustments include, but are not limited to, accretion, amortization, collection of cash, previous other-than-temporary impairments (OTTI) recognized in earnings less cumulative-effect adjustments, and fair value hedge accounting adjustments. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References No definition available. + Details
Name: | twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis
Namespace Prefix: | twlo_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of available-for-sale debt securities maturing in the second rolling twelve months following the latest balance sheet. For interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References No definition available. + Details
Name: | twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue
Namespace Prefix: | twlo_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue
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
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration