> 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/aml-search/search-details-pdf.md).

# Search Details PDF

The overall details that are provided in the 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/v1/aml/search/download-pdf/:searchHistoryId/:sanctionId`

### Header

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

### Sample Response

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

```
Content-Type: application/pdf

Complete data stream of the file contents.
```

{% endtab %}

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

```json
{
   "success": false,
   "code": 1001,
   "message": "Invalid search history id",
   "data": {}
}
{
   "success": false,
   "code": 1001,
   "message": "Sanction Id missing",
   "data": {}
}

```

{% endtab %}

{% tab title="400:Bad Request error" %}

```json
{
    "success": false,
    "code": 1001,
    "message": "Sanctions not found",
    "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. |
| sanctionId      | String | Yes          | sanctionId is unique id, to download a sanction 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": "Sanction Id missing",
   "data": {}
}
```
