Fair Value Measurements - Assets Measured at Fair Value on a Recurring Basis (Details) - USD ($) $ in Thousands | Jan. 31, 2025 | Apr. 30, 2024 |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | $ 688,066 | $ 690,441 |
Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 77,902 | 82,564 |
Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 6,971 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 108,045 | 162,183 |
U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 14,395 | 2,497 |
Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 3,960 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 84,645 | 62,017 |
U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 60,457 | 46,428 |
Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 331,691 | 310,095 |
Fair Value, Recurring | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 688,066 | 690,441 |
Fair Value, Recurring | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 77,902 | 82,564 |
Fair Value, Recurring | Commercial paper | | |
Cash equivalents: | | |
Estimated Fair Value | 6,971 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 108,045 | 162,183 |
Fair Value, Recurring | U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 14,395 | 2,497 |
Fair Value, Recurring | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 3,960 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 84,645 | 62,017 |
Fair Value, Recurring | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 60,457 | 46,428 |
Fair Value, Recurring | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 331,691 | 310,095 |
Fair Value, Recurring | Level 1 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 77,902 | 82,564 |
Fair Value, Recurring | Level 1 | Money market funds | | |
Cash equivalents: | | |
Estimated Fair Value | 77,902 | 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 | 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. government agencies securities | | |
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 2 | | |
Available-for-sale marketable securities: | | |
Total cash equivalents and available-for-sale marketable securities | 610,164 | 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 | 6,971 | 18,769 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 108,045 | 162,183 |
Fair Value, Recurring | Level 2 | U.S. treasury securities | | |
Cash equivalents: | | |
Estimated Fair Value | 0 | 5,888 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 14,395 | 2,497 |
Fair Value, Recurring | Level 2 | Certificates of deposit | | |
Cash equivalents: | | |
Estimated Fair Value | 3,960 | 0 |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 84,645 | 62,017 |
Fair Value, Recurring | Level 2 | U.S. government agencies securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 60,457 | 46,428 |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Available-for-sale marketable securities: | | |
Available-for-sale marketable securities, fair value | 331,691 | 310,095 |
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 | 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. government agencies securities | | |
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 |