> For the complete documentation index, see [llms.txt](https://docs.tutelar.io/tutelar-api-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tutelar.io/tutelar-api-document/tutelar-api-document-v2/adverse-media-search/search-details-pdf.md).

# Search Details PDF

The overall details that are provided in the adverse media search details page is available to download via pdf,

A full PDF report is available for download, offering a comprehensive overview of due diligence findings.

### Search Details PDF&#x20;

<mark style="color:green;">`GET`</mark> `https://secctrl.tutelar.io/api/v2/aml/adverse-media-search/:searchHistoryId /:SearchResult[]id?download=pdf`

### Header

| Name          | Value                     |
| ------------- | ------------------------- |
| Content-Type  | `application/json`        |
| Authorization | `Bearer eyJhbGciOiJ.....` |

### Query Parameter

<table><thead><tr><th width="169.78515625">Query Parameter</th><th width="127.07421875">Type</th><th width="122.6796875">Is Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>Download</td><td>String</td><td>Yes</td><td>A flag indicating the response format will be passed to the download query. The query will return stream data only if the accepted value is <mark style="color:orange;"><strong>pdf</strong></mark>. In this case, only PDF format is supported.</td></tr></tbody></table>

### Sample Response

{% tabs %}
{% tab title="200: OK " %}

```
Content-Type: application/pdf

Complete data stream of the file contents.
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```json
{
   "success": false,
   "code": 1001,
   "message": "Unauthorized access",
   "data": {}
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity " %}

```json
{
   "success": false,
   "code": 1001,
   "message": "Invalid Search History Id",
   "data": {}
}
{
   "success": false,
   "code": 1001,
   "message": "Invalid search Reference id",
   "data": {}
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```json
{
   "success": false,
   "code": 1001,
   "message": "Something went wrong",
   "data": {}
}
```

{% endtab %}
{% endtabs %}

### **Path Param values :**

| PathParameter     | Type   | Is Mandatory | Description                                                                               |
| ----------------- | ------ | ------------ | ----------------------------------------------------------------------------------------- |
| searchHistoryId   | String | Yes          | Search history Id will be generated for every Individual search made in the client panel. |
| SearchResult\[]id | String | Yes          | unique id, to get a adverse media  details.                                               |

### **Success Response:**

Response as in stream by ContentType application/pdf.

### **Failure response:**

```json
{
   "success": false,
   "code": 1001,
   "message": "Invalid Search History Id",
   "data": {}
}
{
   "success": false,
   "code": 1001,
   "message": "Invalid search Reference id",
   "data": {}
}
```
