v3.25.2
Net Income (Loss) Per Share Attributable to Common Stockholders - Common Stock Equivalents excluded from Calculation of Diluted Net Loss Per Share attributable to Common Stockholders (Details) - shares
3 Months Ended 6 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2025
Jun. 30, 2024
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 5,021,236 24,725,399 4,555,337 24,725,399
Stock options issued and outstanding        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 414,972 1,529,641 145,350 1,529,641
Unvested restricted stock units issued and outstanding        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 4,458,044 22,542,340 4,261,767 22,542,340
Shares of Class A common stock reserved for Twilio.org        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 397,837 0 397,837
Shares of Class A common stock committed under ESPP        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 148,220 251,810 148,220 251,810
Shares of Class A common stock in escrow subject to future vesting        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 3,771 0 3,771