Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Jul. 31, 2023 | Apr. 30, 2023 |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | $ 756,384 | $ 717,717 |
Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 74,591 | 75,293 |
Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 2,000 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 64,029 | 61,025 |
U.S. treasury securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 27,397 |
U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 43,494 | 75,674 |
Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 76,111 | 112,851 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 260,864 | 184,230 |
Corporate debt securities | | |
Cash equivalents: | | |
Estimated Fair Value | 2,543 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 234,752 | 179,247 |
Fair Value, Recurring | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 756,384 | 717,717 |
Fair Value, Recurring | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 74,591 | 75,293 |
Fair Value, Recurring | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 2,000 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 64,029 | 61,025 |
Fair Value, Recurring | U.S. treasury securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 27,397 |
Fair Value, Recurring | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 43,494 | 75,674 |
Fair Value, Recurring | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 76,111 | 112,851 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 260,864 | 184,230 |
Fair Value, Recurring | Corporate debt securities | | |
Cash equivalents: | | |
Estimated Fair Value | 2,543 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 234,752 | 179,247 |
Fair Value, Recurring | Level 1 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 74,591 | 75,293 |
Fair Value, Recurring | Level 1 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 74,591 | 75,293 |
Fair Value, Recurring | Level 1 | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | U.S. treasury securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | Corporate debt securities | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 2 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 681,793 | 642,424 |
Fair Value, Recurring | Level 2 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Fair Value, Recurring | Level 2 | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 2,000 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 64,029 | 61,025 |
Fair Value, Recurring | Level 2 | U.S. treasury securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 27,397 |
Fair Value, Recurring | Level 2 | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 43,494 | 75,674 |
Fair Value, Recurring | Level 2 | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 76,111 | 112,851 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 260,864 | 184,230 |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Cash equivalents: | | |
Estimated Fair Value | 2,543 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 234,752 | 179,247 |
Fair Value, Recurring | Level 3 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 0 | 0 |
Fair Value, Recurring | Level 3 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Fair Value, Recurring | Level 3 | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | U.S. treasury securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | Corporate debt securities | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | $ 0 | $ 0 |