Segment Information - Schedule of Revenue by Geographic Area (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Jan. 31, 2022
Jan. 31, 2021
Revenues from External Customers and Long-Lived Assets [Line Items]        
Total revenue $ 223,944 $ 157,115 $ 623,019 $ 430,879
United States        
Revenues from External Customers and Long-Lived Assets [Line Items]        
Total revenue 125,831 83,153 344,480 235,188
Rest of world        
Revenues from External Customers and Long-Lived Assets [Line Items]        
Total revenue $ 98,113 $ 73,962 $ 278,539 $ 195,691