Cash Equivalents and Marketable Securities (Tables)
|
12 Months Ended |
Apr. 30, 2026 |
| Investments, Debt and Equity Securities [Abstract] |
|
| Schedule of Cash Equivalents and Available-For-Sale Marketable Securities and Balance Sheet Classification |
The following table summarizes the Company’s cash equivalents and available-for-sale marketable securities (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of April 30, 2026 | | As of April 30, 2025 | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | Cash equivalents: | | | | | | | | | | | | | | | | | Money market funds | $ | 52,715 | | | $ | — | | | $ | — | | | $ | 52,715 | | | $ | 87,872 | | | $ | — | | | $ | — | | | $ | 87,872 | | | Commercial paper | — | | | — | | | — | | | — | | | 29,122 | | | — | | | — | | | 29,122 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corporate debt securities | — | | | — | | | — | | | — | | | 1,015 | | | — | | | — | | | 1,015 | | | Available-for-sale marketable securities: | | | | | | | | | | | | | | | | | U.S. treasury securities | — | | | — | | | — | | | — | | | 15,478 | | | 4 | | | — | | | 15,482 | | | Certificates of deposit | 92,112 | | | — | | | — | | | 92,112 | | | 76,518 | | | — | | | — | | | 76,518 | | | U.S. government agencies securities | 69,721 | | | 50 | | | (80) | | | 69,691 | | | 56,990 | | | 157 | | | (9) | | | 57,138 | | | Commercial paper | 103,824 | | | — | | | — | | | 103,824 | | | 113,787 | | | — | | | — | | | 113,787 | | | Corporate debt securities | 243,643 | | | 194 | | | (212) | | | 243,625 | | | 315,034 | | | 502 | | | (131) | | | 315,405 | | | Total cash equivalents and available-for-sale marketable securities | $ | 562,015 | | | $ | 244 | | | $ | (292) | | | $ | 561,967 | | | $ | 695,816 | | | $ | 663 | | | $ | (140) | | | $ | 696,339 | |
|
| Summary of Available-For-Sale Marketable Securities by Contractual Maturity |
The following table summarizes the Company’s available-for-sale marketable securities by contractual maturity (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | As of April 30, 2026 | | As of April 30, 2025 | | Amortized Cost | | Fair Value | | Amortized Cost | | Fair Value | | Within one year | $ | 408,913 | | | $ | 409,023 | | | $ | 455,613 | | | $ | 455,956 | | | After one year through five years | 100,387 | | | 100,229 | | | 122,194 | | | 122,374 | | | Total | $ | 509,300 | | | $ | 509,252 | | | $ | 577,807 | | | $ | 578,330 | |
|
| Summary of Fair Values and Unrealized Losses of Available-For-Sale Marketable Securities In Continuous Unrealized Loss Position |
The following table summarizes the fair values and unrealized losses of the Company’s available-for-sale marketable securities classified by length of time that the securities have been in a continuous unrealized loss position but were not deemed to be other-than-temporarily impaired, as of April 30, 2026 and 2025 (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of April 30, 2026 | | Less Than 12 Months | | 12 Months or Greater | | Total | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | U.S. treasury securities | $ | — | | | $ | — | | | $ | — | | | $ | — | | | $ | — | | | $ | — | | | | | | | | | | | | | | U.S. government agencies securities | (66) | | | 17,919 | | | (14) | | | 11,221 | | | $ | (80) | | | $ | 29,140 | | Commercial paper | — | | | — | | | — | | | — | | | $ | — | | | $ | — | | Corporate debt securities | (145) | | | 79,438 | | | (67) | | | 21,330 | | | $ | (212) | | | $ | 100,768 | | Total | $ | (211) | | | $ | 97,357 | | | $ | (81) | | | $ | 32,551 | | | $ | (292) | | | $ | 129,908 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of April 30, 2025 | | Less Than 12 Months | | 12 Months or Greater | | Total | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | U.S. treasury securities | $ | — | | | $ | 2,468 | | | $ | — | | | $ | — | | | $ | — | | | $ | 2,468 | | | | | | | | | | | | | | U.S. government agencies securities | (9) | | | 7,973 | | | — | | | — | | | (9) | | | 7,973 | | Commercial paper | — | | | 1,823 | | | — | | | — | | | — | | | 1,823 | | Corporate debt securities | (129) | | | 62,899 | | | (2) | | | 9,847 | | | (131) | | | 72,746 | | Total | $ | (138) | | | $ | 75,163 | | | $ | (2) | | | $ | 9,847 | | | $ | (140) | | | $ | 85,010 | |
|