How can we save Mayhem for API results locally?

Is there a way to store the results from Mayhem for API locally. If yes, how can we do this. If we want to store the results on the local machine, are the results still stored on the cloud for that job run?

Hi @Priyanka.

You can store the results of a Mayhem for API run in three different formats today.

  1. HTML reports, with the mapi run ... --html <output.html> flag (Identifying Buggy Endpoints - Mayhem for API)

  2. JUnit reports, with the mapi run ... --junit <output.xml> flag Identifying Buggy Endpoints - Mayhem for API

  3. SARIF report, with the mapi run ... --sarif <output.sarif> flag (Identifying Buggy Endpoints - Mayhem for API)

are the results still stored on the cloud for that job run?

Yes, the results are still stored on the cloud.

If you wish to remove the cloud results, you can delete the job from the Web Interface, or from the command line using the mapi job delete <job_id> command.

Removing old jobs will prevent issue replay regression tests from running the next time you scan your API.

2 Likes