# Download check report (PDF)

Download a PDF report for a single check. `check_id` accepts either an instant criminal check
or a [Driver Check](#tag/Driver-Checks) (Driver License Status / Motor Vehicle Report) ID.
[`GET /v1/reports/{check_id}`](#operation/get-report-pdf) is an equivalent, check-family-agnostic
path for the same download.
The file is returned as an attachment (`Content-Disposition: attachment`) with a suggested filename
of `{first_name} {last_name} - check results.pdf`. When first or last name is unavailable,
`{check_id} - check results.pdf` is used instead.
The PDF reflects the same result shaping as the JSON check resource (`GET /v1/checks/{check_id}` or
`GET /v1/driver_checks/{driver_check_id}`, whichever family the ID belongs to).
**Availability:** Returns `422 Unprocessable Content` with a JSON body when the check has not finished
and results are not yet available (no completed results).

Endpoint: GET /checks/{check_id}/report
Version: 1.0
Security: get-bearer-token-using-oauth2

## Security:

  - `get-bearer-token-using-oauth2` (unknown)
    oauth2

## Path parameters:

  - `check_id` (string, required)
    the uuid identifying the check

## Response 200:

  - `200` (unknown)
    PDF document

## Response 200 headers (application/pdf):

  - `Content-Disposition` (string)
    Attachment with suggested filename `{first_name} {last_name} - check results.pdf`.
    Example: attachment; filename="Jane Doe - check results.pdf"

## Response 401:

  - `401` (unknown)
    Error response

## Response 401 fields (application/json):

  - `code` (string, required)
    A machine-readable error code.
    Example: invalid_request

  - `title` (string, required)
    A human-readable error title.
    Example: Invalid Request

  - `source` (object)
    An object containing references to the source of the error.

  - `source.pointer` (string)
    A JSON Pointer [RFC6901] to the associated entity in the request document.
    Example: /data/attributes/first_name

## Response 404:

  - `404` (unknown)
    The check was not found, or it does not belong to the authenticated account.

## Response 404 fields (application/json):

  - `error` (string, required)
    Example: Report not found

## Response 422:

  - `422` (unknown)
    Results are not yet available for this check (the check has not completed).

## Response 422 fields (application/json):

  - `error` (string, required)
    Example: Results are not yet available for this check

## Response 500:

  - `500` (unknown)
    Error response

## Response 500 fields (application/json):

  - `code` (string, required)
    A machine-readable error code.
    Example: invalid_request

  - `title` (string, required)
    A human-readable error title.
    Example: Invalid Request

  - `source` (object)
    An object containing references to the source of the error.

  - `source.pointer` (string)
    A JSON Pointer [RFC6901] to the associated entity in the request document.
    Example: /data/attributes/first_name

