> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PDF Generation

> Generate downloadable PDF verification reports with extracted data and compliance details via the iDenfy identity verification API.

<Note>
  **Requirements:**

  * API key pair
  * `scanRef` of the verification
</Note>

***

## Generating a Verification PDF Report

```
POST https://ivs.idenfy.com/api/v2/generate-pdf
Authorization: Basic {API_KEY}:{API_SECRET}
Content-Type: application/json
```

### Report Contents

The generated PDF report includes:

* Verification data
* Verification status
* Miscellaneous data
* AML data
* LID data
* Face photo
* Document photos

***

## Request Parameters

<AccordionGroup>
  <Accordion title="scanRef — string (required)">
    A unique string identifying a client verification.
  </Accordion>

  <Accordion title="language — string (optional)">
    Language selection for the generated report. Possible values: `en`, `lt`.
  </Accordion>

  <Accordion title="includeMainStepFiles — boolean (optional)">
    Whether to include main step photos (FRONT, FACE, BACK) in the generated PDF. Defaults to `true`.
  </Accordion>

  <Accordion title="includeAdditionalStepFiles — boolean (optional)">
    Whether to include additional step photos in the generated PDF. Defaults to `true`.
  </Accordion>
</AccordionGroup>

### Request Example

```json theme={"system"}
{
  "scanRef": "350e2420-8850-11e9-baa5-309c231b1bac"
}
```

### Request Example -- with Language

```json theme={"system"}
{
  "scanRef": "350e2420-8850-11e9-baa5-309c231b1bac",
  "language": "lt"
}
```

### Response -- Success

After a successful API call, you will receive a PDF file in **Base64** format and a response with a **200** status code.
