---
title: "# Generate Simulation Report"
method: POST
path: "/v2/simulations/{Id}/results/reports"
tags: ["Simulation-Result-Reports"]
---

# # Generate Simulation Report

`POST /v2/simulations/{Id}/results/reports`

Generates a report for the specified simulation. The report can either provide an overview or focus on a specific run of the simulation, depending on the parameters.

## Path parameters

- `Id` integer, required

## Query parameters

- `type` string, required
- `runId` string

## Request body

- GenerateSimulationReportInput
  - `format` string[] — Corresponding report will be generated for each format specified. Available formats: PDF, CSV
  - `includesSensitiveData` boolean — If false, generated report will display threat information with access links (Only for CSV reports)
  - `onlyPrevention` boolean — If true, generated report will include only prevention results

## Response `200`

GenerateSimulationReportResponse

- SimulationReportBasicOutput[]
  - `format` string — Report Format. One of: 'PDF' | 'CSV'
  - `id` integer — Report Id
  - `status` string — Report Status. One of: 'IN PROGRESS' | 'COMPLETED' | 'ERROR'

## Other responses

- `401` — unauthorizedErrorSwagger is represents unauthorized error
- `422` — validationErrorSwagger is represents the erroneous cases
- `default` — genericErrorSwagger is represents the erroneous cases

---

[API](https://skmtc.net/picussecurity/apis/picus-rest-api.md) · [All operations](https://skmtc.net/picussecurity/apis/picus-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/picussecurity/picus-rest-api/versions/cb0d02ee28f8/schema)
