# 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

```http
GET https://secctrl.tutelar.io/api/v1/aml/adverse-media-search/:searchHistoryId /:SearchResult[]id?download=pdf
```

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

## Query Parameter

| Query Parameter | Type   | Is Mandatory | Description                                                                                                                                                                                      |
| --------------- | ------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Download        | String | Yes          | 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 **pdf**. In this case, only PDF format is supported. |

## Sample Response

### 200: OK

```http
Content-Type: application/pdf

Complete data stream of the file contents.
```

### 401: Unauthorized

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

### 422: Unprocessable Entity

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

### 500: Internal Server Error

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

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


---

# 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.v2.tutelar.io/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.
