{
  "cik": 1447669,
  "cik_padded": "0001447669",
  "entityName": "TWILIO INC",
  "fiscal_years": [
    {
      "accn": "0001447669-26-000021",
      "filed": "2026-02-24",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 868939000.0,
        "cash": 682335000.0,
        "cost_of_revenue": 2588486000.0,
        "eps_diluted": 0.21,
        "gross_profit": 2478734000.0,
        "net_income": 33834000.0,
        "operating_cash_flow": 1003244000.0,
        "operating_income": 157802000.0,
        "revenue": 5067220000.0,
        "stockholders_equity": 7821546000.0,
        "total_assets": 9770890000.0,
        "total_liabilities": 1949344000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.4891703932333706,
        "leverage": 0.24922745452113942,
        "net_margin": 0.006677033955502228,
        "operating_margin": 0.03114173057416098,
        "revenue_growth_yoy": 0.13664851517574106,
        "roa_avg2y": 0.0034460558427268756,
        "roa_period_end": 0.003462734715056663,
        "roe_avg2y": 0.004289704809885719,
        "roe_period_end": 0.004325743273772218
      }
    },
    {
      "accn": "0001447669-26-000021",
      "filed": "2026-02-24",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2334400000.0,
        "cash": 421297000.0,
        "cost_of_revenue": 2179824000.0,
        "eps_diluted": -0.66,
        "gross_profit": 2278212000.0,
        "net_income": -109403000.0,
        "operating_cash_flow": 716241000.0,
        "operating_income": -53708000.0,
        "revenue": 4458036000.0,
        "stockholders_equity": 7952966000.0,
        "total_assets": 9865472000.0,
        "total_liabilities": 1912506000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5110349041595895,
        "leverage": 0.2404770748422664,
        "net_margin": -0.024540627307630535,
        "operating_margin": -0.01204745766970029,
        "revenue_growth_yoy": 0.07320535057637981,
        "roa_avg2y": -0.010188785853659241,
        "roa_period_end": -0.011089484618678154,
        "roe_avg2y": -0.012372043612180316,
        "roe_period_end": -0.013756251441286182
      }
    },
    {
      "accn": "0001447669-26-000021",
      "filed": "2026-02-24",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 668751000.0,
        "cash": 655931000.0,
        "cost_of_revenue": 2110015000.0,
        "eps_diluted": -5.54,
        "gross_profit": 2043930000.0,
        "net_income": -1015441000.0,
        "operating_cash_flow": 414752000.0,
        "operating_income": -876541000.0,
        "revenue": 4153945000.0,
        "stockholders_equity": 9732552000.0,
        "total_assets": 11609707000.0,
        "total_liabilities": 1877155000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.492045513361395,
        "leverage": 0.19287387316296897,
        "net_margin": -0.24445220146150226,
        "operating_margin": -0.2110141082753864,
        "revenue_growth_yoy": 0.08562376235553681,
        "roa_avg2y": -0.08401096532966747,
        "roa_period_end": -0.08746482577036613,
        "roe_avg2y": -0.100084892295795,
        "roe_period_end": -0.10433450548222091
      }
    },
    {
      "accn": "0001447669-26-000021",
      "filed": "2026-02-24",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "cash": 651752000.0,
        "cost_of_revenue": 2012744000.0,
        "eps_diluted": -6.86,
        "gross_profit": 1813577000.0,
        "net_income": -1256145000.0,
        "operating_cash_flow": -254368000.0,
        "operating_income": -1205308000.0,
        "revenue": 3826321000.0,
        "stockholders_equity": 10559042000.0,
        "total_assets": 12564304000.0,
        "total_liabilities": 2005262000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.47397408633515065,
        "leverage": 0.18990946337745412,
        "net_margin": -0.32829054331824226,
        "operating_margin": -0.31500441285506364,
        "revenue_growth_yoy": 0.3464242696366684,
        "roa_avg2y": -0.09827874785108513,
        "roa_period_end": -0.09997728485397998,
        "roe_avg2y": -0.11636085635409783,
        "roe_period_end": -0.11896391737053419
      }
    },
    {
      "accn": "0001447669-25-000035",
      "filed": "2025-02-26",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "cash": 1479452000.0,
        "cost_of_revenue": 1451126000.0,
        "eps_diluted": -5.45,
        "gross_profit": 1390713000.0,
        "net_income": -949900000.0,
        "operating_cash_flow": -58192000.0,
        "operating_income": -915584000.0,
        "revenue": 2841839000.0,
        "stockholders_equity": 11031466000.0,
        "total_assets": 12998598000.0,
        "total_liabilities": 1967132000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.48937079123764576,
        "leverage": 0.1783200890978588,
        "net_margin": -0.33425538885207784,
        "operating_margin": -0.32218010942914077,
        "revenue_growth_yoy": 0.613053532344634,
        "roa_avg2y": -0.08448800946685522,
        "roa_period_end": -0.07307711185467848,
        "roe_avg2y": -0.09750499008654787,
        "roe_period_end": -0.08610822895161893
      }
    },
    {
      "accn": "0001447669-24-000034",
      "filed": "2024-02-27",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "cash": 933885000.0,
        "cost_of_revenue": 846115000.0,
        "eps_diluted": -3.35,
        "gross_profit": 915661000.0,
        "net_income": -490979000.0,
        "operating_cash_flow": 32654000.0,
        "operating_income": -492901000.0,
        "revenue": 1761776000.0,
        "stockholders_equity": 8452665000.0,
        "total_assets": 9487433000.0,
        "total_liabilities": 1034768000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5197374694626331,
        "leverage": 0.1224191423651594,
        "net_margin": -0.2786841232937672,
        "operating_margin": -0.2797750678860423,
        "revenue_growth_yoy": 0.552953454835218,
        "roa_avg2y": -0.06708303191929416,
        "roa_period_end": -0.05175045768439155,
        "roe_avg2y": -0.07712473598178334,
        "roe_period_end": -0.05808570433111924
      }
    },
    {
      "accn": "0001447669-23-000049",
      "filed": "2023-02-27",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "cash": 253735000.0,
        "cost_of_revenue": 525551000.0,
        "eps_diluted": -2.36,
        "gross_profit": 608917000.0,
        "net_income": -307063000.0,
        "operating_cash_flow": 14048000.0,
        "operating_income": -369785000.0,
        "revenue": 1134468000.0,
        "stockholders_equity": 4279411000.0,
        "total_assets": 5150516000.0,
        "total_liabilities": 871105000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.536742332088697,
        "leverage": 0.20355721850506997,
        "net_margin": -0.27066695578896893,
        "operating_margin": -0.325954544332674,
        "revenue_growth_yoy": 0.7451554993562202,
        "roa_avg2y": -0.09938558647960116,
        "roa_period_end": -0.05961791012783961,
        "roe_avg2y": -0.13017636338122868,
        "roe_period_end": -0.0717535660865479
      }
    },
    {
      "accn": "0001447669-22-000049",
      "filed": "2022-02-22",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "cash": 487215000.0,
        "cost_of_revenue": 300841000.0,
        "gross_profit": 349226000.0,
        "net_income": -121949000.0,
        "operating_cash_flow": 7983000.0,
        "operating_income": -115235000.0,
        "revenue": 650067000.0,
        "stockholders_equity": 438235000.0,
        "total_assets": 1028710000.0,
        "total_liabilities": 590475000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5372153947208519,
        "leverage": 1.3473935217406185,
        "net_margin": -0.18759450948902193,
        "operating_margin": -0.17726634331538133,
        "revenue_growth_yoy": 0.6291589394015338,
        "roa_avg2y": -0.16496403091798942,
        "roa_period_end": -0.1185455570568965,
        "roe_avg2y": -0.30560557136431016,
        "roe_period_end": -0.2782730726664917
      }
    },
    {
      "accn": "0001447669-21-000070",
      "filed": "2021-02-26",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 100000.0,
        "cash": 115286000.0,
        "cost_of_revenue": 182895000.0,
        "gross_profit": 216125000.0,
        "net_income": -63708000.0,
        "operating_cash_flow": -3255000.0,
        "operating_income": -66074000.0,
        "revenue": 399020000.0,
        "stockholders_equity": 359846000.0,
        "total_assets": 449782000.0,
        "total_liabilities": 89936000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5416395168161997,
        "leverage": 0.24992913635277314,
        "net_margin": -0.15966116986617213,
        "operating_margin": -0.16559069720815997,
        "revenue_growth_yoy": 0.4387653920349036,
        "roa_avg2y": -0.1477328064780933,
        "roa_period_end": -0.1416419509895905,
        "roe_avg2y": -0.18485027412145488,
        "roe_period_end": -0.1770424014717407
      }
    },
    {
      "accn": "0001447669-20-000045",
      "filed": "2020-03-02",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2000.0,
        "cash": 305665000.0,
        "cost_of_revenue": 120520000.0,
        "gross_profit": 156815000.0,
        "net_income": -41324000.0,
        "operating_cash_flow": 10097000.0,
        "operating_income": -41315000.0,
        "revenue": 277335000.0,
        "stockholders_equity": 329447000.0,
        "total_assets": 412694000.0,
        "total_liabilities": 83247000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5654353038743758,
        "leverage": 0.25268707864998013,
        "net_margin": -0.14900391223610435,
        "operating_margin": -0.14897146050804982,
        "roa_period_end": -0.10013230141460744,
        "roe_period_end": -0.12543444013756386
      }
    }
  ],
  "latest_filing": {
    "accn": "0001447669-26-000021",
    "filed": "2026-02-24",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "7372",
  "sic_description": "Services-Prepackaged Software",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001447669.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001447669.json"
  },
  "ticker": "TWLO"
}
