Net Loss Per Share Attributable to Common Stockholders - Potential Shares Excluded From Computation of Diluted Net Loss Per Share (Details) - shares shares in Thousands |
6 Months Ended | |
|---|---|---|
Oct. 31, 2024 |
Oct. 31, 2023 |
|
| Stock options | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Potentially antidilutive shares excluded from computation of net loss per share (in shares) | 30,938 | 32,001 |
| RSUs | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Potentially antidilutive shares excluded from computation of net loss per share (in shares) | 20,479 | 22,460 |
| ESPP | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Potentially antidilutive shares excluded from computation of net loss per share (in shares) | 1,075 | 1,223 |