---
updatedAt: 2026-04-23T06:56:56.000Z
agentTools:
  projectIndex: https://developer.druva.com/llms.txt
---

# Download a report

This API provides the option to download the threat hunt summary or a detailed report. The report becomes available once the threat hunt job is completed. The API provides a download URL in its response. Use the URL to download the report.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "",
    "version": "3.0.0",
    "title": "Cyber Resilience For GovCloud"
  },
  "tags": [
    {
      "name": "Threat Hunting",
      "description": "List of APIs to get information and perform operations on the resources managed in Druva Cloud for threat hunting."
    }
  ],
  "paths": {
    "/threathunting/v1/threathunts/{threatHuntID}/report": {
      "get": {
        "tags": [
          "Threat Hunting"
        ],
        "security": [
          {
            "Bearer": []
          }
        ],
        "summary": "Download a report",
        "description": "This API provides the option to download the threat hunt summary or a detailed report. The report becomes available once the threat hunt job is completed. The API provides a download URL in its response. Use the URL to download the report.",
        "parameters": [
          {
            "name": "threatHuntID",
            "in": "path",
            "description": "Specify the threat hunt ID. You can obtain the ID using the 'List all threat hunts API'.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "reportType",
            "in": "query",
            "description": "Specify the report Type. The 'File' report type provides a download URL for the File Level Report, and the 'Summary' report type provides a download URL for the snapshot summary report.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "File",
                "Summary"
              ]
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The token to access the next page of results. Use the token value received in the previous response's parameter 'nextPageToken'.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatHuntDownloadReportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatHunt_HTTP_400"
                }
              }
            }
          },
          "401": {
            "description": "The request either did not include an authentication token, or you have provided an expired authentication token."
          },
          "404": {
            "description": "The requested resource was not found.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatHunt_HTTP_404"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreatHunt_HTTP_500"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://govapis.druva.com/realize"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "ThreatHuntDownloadReportResponse": {
        "type": "object",
        "properties": {
          "downloadLink": {
            "type": "string",
            "description": "Download URL for the requested report type."
          }
        }
      },
      "ThreatHunt_HTTP_400": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "THMaster-1002"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Invalid API Syntax"
            ]
          },
          "data": {
            "type": "object"
          },
          "retryable": {
            "type": "boolean",
            "enum": [
              false,
              true
            ]
          }
        }
      },
      "ThreatHunt_HTTP_404": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "THMaster-1003"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "The requested resource was not found."
            ]
          },
          "data": {
            "type": "object"
          },
          "retryable": {
            "type": "boolean",
            "enum": [
              false,
              true
            ]
          }
        }
      },
      "ThreatHunt_HTTP_500": {
        "type": "object",
        "description": "The request was not processed due to an internal error in Druva Cloud. Kindly try again after some time.",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "THMaster-1006"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "The request was not processed due to an internal error in Druva Cloud. Kindly try again after some time."
            ]
          },
          "data": {
            "type": "object"
          },
          "retryable": {
            "type": "boolean",
            "enum": [
              false,
              true
            ]
          }
        }
      }
    }
  }
}
```