# Crawled Download Pdf

`GET` `https://secctrl.tutelar.io/api/v1/web-crawling/get-crawl-results?case_id=<caseId>&download=pdf`

401: Unauthorized

```json
{ "message": "Invalid authentication credentials" }
```

## Query Parameters

| Name        | Type   | Description                                                                                          |
| ----------- | ------ | ---------------------------------------------------------------------------------------------------- |
| `case_id`\* | String | You need to provide the website Case ID that you already received in the Initiate Crawl Response API |
| `download`  | String | You need to provide the `download=pdf` as a parameter                                                |

**Sample response**

200: OK

202: Accepeted

422: Unprocessable Entity

```http
Content-Type: application/pdf

Complete data stream of the file contents.
```

```json
{
  "success": true,
  "code": "4999",
  "message": "The PDF download for caseId - <caseId> is in progress. Please try again after some time!",
  "data": {}
}
```

```json
{
    "success": false,
    "code": "4998",
    "message": "Please provide case id",
    "data": {}
}

{
    "success": false,
    "code": "4998",
    "message": "Something went wrong, while generating pdf donwload",
    "data": {}
}
```

**Success response**

```http
Complete data stream of the file contents.
```

**In progress response**

```json
{
  "success": true,
  "code": "4999",
  "message": "The PDF download for caseId - <caseId> is in progress. Please try again after some time!",
  "data": {}
}
```

**Failure response**

```json
{
    "success": false,
    "code": "4998",
    "message": "Please provide case id",
    "data": {}
}

{
    "success": false,
    "code": "4998",
    "message": "Something went wrong, while generating pdf donwload",
    "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/crawled-download-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.
