CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS’ EQUITY - USD ($)
$ in Thousands
Total
Class A and Class B Common Stock
Additional Paid-In Capital
Treasury Stock
Accumulated Other Comprehensive Loss
Accumulated Deficit
Beginning balance (in shares) at Jan. 31, 2018   50,575,571        
Beginning balance at Jan. 31, 2018 $ 247,657 $ 51 $ 638,680 $ (1,319) $ (159) $ (389,596)
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Stock option exercises (in shares)   40,723        
Stock option exercises 252   252      
Repurchase of early exercised options (in shares)   (19,395)        
Vesting of early exercised stock options 533   533      
Vesting of restricted stock units (in shares)   125        
Stock-based compensation 7,508   7,508      
Unrealized loss on available-for-sale securities (82)       (82)  
Foreign currency translation adjustment (33)       (33)  
Net loss (26,555)         (26,555)
Ending balance (in shares) at Apr. 30, 2018   50,597,024        
Ending balance at Apr. 30, 2018 229,280 $ 51 646,973 (1,319) (274) (416,151)
Beginning balance (in shares) at Jan. 31, 2019   54,321,810        
Beginning balance at Jan. 31, 2019 $ 264,566 $ 54 754,612 (1,319) (174) (488,607)
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Stock option exercises (in shares) 831,901 831,901        
Stock option exercises $ 6,438 $ 1 6,437      
Repurchase of early exercised options (in shares)   (3,981)        
Vesting of early exercised stock options 127   127      
Vesting of restricted stock units (in shares)   126,346        
Stock-based compensation 14,009   14,009      
Unrealized loss on available-for-sale securities 58       58  
Foreign currency translation adjustment 13       13  
Net loss (33,240)         (33,240)
Ending balance (in shares) at Apr. 30, 2019   55,276,076        
Ending balance at Apr. 30, 2019 $ 247,868 $ 55 $ 775,185 $ (1,319) $ (103) $ (525,950)