v3.24.1.u1
Net Income (Loss) per Share - Schedule of Potentially Dilutive Securities (Details) - shares
3 Months Ended
Mar. 31, 2024
Mar. 31, 2023
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 16,371,469 21,297,393
Options to purchase common stock    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 2,020,500 3,628,396
Common stock issuable upon exercise of common stock warrants    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 0 350,000
Common stock issuable upon vesting of restricted stock units and performance stock units    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 13,370,738 10,619,944
Common stock issuable in connection with employee stock purchase plan    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 980,231 1,236,008
Common stock issuable in connection with convertible senior notes    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Total 0 5,463,045