Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Oct. 31, 2024 | Apr. 30, 2024 |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | $ 679,335 | $ 690,441 |
Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 61,121 | 82,564 |
Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 8,115 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 113,959 | 162,183 |
U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 999 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 13,341 | 2,497 |
Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 347,421 | 310,095 |
Certificates of deposit | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 68,715 | 62,017 |
U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 65,664 | 46,428 |
Fair Value, Recurring | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 679,335 | 690,441 |
Fair Value, Recurring | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 61,121 | 82,564 |
Fair Value, Recurring | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 8,115 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 113,959 | 162,183 |
Fair Value, Recurring | U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 999 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 13,341 | 2,497 |
Fair Value, Recurring | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 347,421 | 310,095 |
Fair Value, Recurring | Certificates of deposit | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 68,715 | 62,017 |
Fair Value, Recurring | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 65,664 | 46,428 |
Fair Value, Recurring | Level 1 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 61,121 | 82,564 |
Fair Value, Recurring | Level 1 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 61,121 | 82,564 |
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 | U.S. treasury 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 1 | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | Certificates of deposit | | |
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 2 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 618,214 | 607,877 |
Fair Value, Recurring | Level 2 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 0 |
Fair Value, Recurring | Level 2 | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 8,115 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 113,959 | 162,183 |
Fair Value, Recurring | Level 2 | U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 999 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 13,341 | 2,497 |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 347,421 | 310,095 |
Fair Value, Recurring | Level 2 | Certificates of deposit | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 68,715 | 62,017 |
Fair Value, Recurring | Level 2 | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 65,664 | 46,428 |
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 | 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 | U.S. treasury 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 3 | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | Certificates of deposit | | |
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 |