Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($)
$ in Thousands
Total
Common stock
Additional Paid-in Capital
Accumulated Deficit
Redeemable convertible preferred stock, beginning balance (in shares) at Jan. 31, 2018 36,000,534      
Redeemable convertible preferred stock, beginning balance at Jan. 31, 2018 $ 83,204      
Redeemable convertible preferred stock, ending balance (in shares) at Apr. 30, 2018 36,000,534      
Redeemable convertible preferred stock, ending balance at Apr. 30, 2018 $ 83,204      
Beginning balance (in shares) at Jan. 31, 2018   21,705,352    
Beginning balance at Jan. 31, 2018 (56,365) $ 0 $ 31,762 $ (88,127)
Increase (Decrease) in Stockholders' Equity [Roll Forward]        
Issuance of common stock upon exercise of stock options and restricted stock agreements, net of repurchases (in shares)   432,964    
Issuance of common stock upon exercise of stock options and restricted stock agreements, net of repurchases 306   306  
Vesting of early exercised options 59   59  
Stock-based compensation 3,157   3,157  
Net loss (6,579)     (6,579)
Comprehensive loss (6,579)     (6,579)
Ending balance (in shares) at Apr. 30, 2018   22,138,316    
Ending balance at Apr. 30, 2018 $ (59,422) $ 0 35,284 (94,706)
Redeemable convertible preferred stock, beginning balance (in shares) at Jan. 31, 2019 41,273,345      
Redeemable convertible preferred stock, beginning balance at Jan. 31, 2019 $ 173,023      
Increase (Decrease) in Temporary Equity [Roll Forward]        
Conversion of convertible preferred stock to common stock in connection with initial public offering (in shares) (41,273,345)      
Conversion of convertible preferred stock to common stock in connection with initial public offering $ (173,023)      
Redeemable convertible preferred stock, ending balance (in shares) at Apr. 30, 2019 0      
Redeemable convertible preferred stock, ending balance at Apr. 30, 2019 $ 0      
Beginning balance (in shares) at Jan. 31, 2019   23,189,921    
Beginning balance at Jan. 31, 2019 (68,930) $ 0 59,938 (128,868)
Increase (Decrease) in Stockholders' Equity [Roll Forward]        
Issuance of common stock upon exercise of stock options and restricted stock agreements, net of repurchases (in shares)   951,830    
Issuance of common stock upon exercise of stock options and restricted stock agreements, net of repurchases 2,240   2,240  
Vesting of early exercised options 334   334  
Stock-based compensation 4,812   4,812  
Net loss (12,064)     (12,064)
Comprehensive loss (12,064)     (12,064)
Exercise of common stock warrants (in shares)   737,807    
Issuance of common stock in connection with initial public offering, net of underwriting discounts and issuance costs (in shares)   9,860,500    
Issuance of common stock in connection with initial public offering, net of underwriting discounts and issuance costs 213,697   213,697  
Conversion of convertible preferred stock to common stock in connection with initial public offering (in shares)   41,273,345    
Conversion of convertible preferred stock to common stock in connection with initial public offering 173,023   173,023  
Repayment of promissory note 515   515  
Ending balance (in shares) at Apr. 30, 2019   76,013,403    
Ending balance at Apr. 30, 2019 $ 313,627 $ 0 $ 454,559 $ (140,932)