# 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": {}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tutelar.io/tutelar-api-document/aml-search/search-details-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
