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

# Download the KYB investigation report (PDF)

> Server-to-server (API key) twin of the dashboard KYB report download. Renders the KYB investigation report for a case to a PDF (application/pdf, served inline). Tenancy comes from the API key. Returns 503 when PDF generation is not configured for the environment (the gotenberg render service is not wired).



## OpenAPI

````yaml https://api.dataspike.io/openapi/kyb/public.json get /api/v4/kyb/verifications/{caseId}/pdf
openapi: 3.1.0
info:
  description: Know Your Business (KYB) — case creation and the embedded onboarding widget.
  title: Dataspike KYB API
  version: '1.0'
servers: []
security: []
paths:
  /api/v4/kyb/verifications/{caseId}/pdf:
    get:
      tags:
        - KYB Verifications
      summary: Download the KYB investigation report (PDF)
      description: >-
        Server-to-server (API key) twin of the dashboard KYB report download.
        Renders the KYB investigation report for a case to a PDF
        (application/pdf, served inline). Tenancy comes from the API key.
        Returns 503 when PDF generation is not configured for the environment
        (the gotenberg render service is not wired).
      operationId: GET_/api/v4/kyb/verifications/:caseId/pdf
      parameters:
        - description: KYB case id (the `id` from the list).
          in: path
          name: caseId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: d5293a33-1d10-4aa2-8ff9-4a2c9a2d1e19
            application/xml:
              schema:
                $ref: d5293a33-1d10-4aa2-8ff9-4a2c9a2d1e19
          description: OK
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrCaseNotFound'
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrCaseNotFound'
          description: Verification not found.
        default:
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/uint8'
                type: array
            application/xml:
              schema:
                items:
                  $ref: '#/components/schemas/uint8'
                type: array
          description: PDF file (application/pdf).
      security:
        - ApiKey: []
components:
  schemas:
    ErrCaseNotFound:
      description: ErrCaseNotFound schema
      example:
        code: case_not_found
        message: Case not found
      properties:
        code:
          example: email_otp_expired
          type: string
        message:
          example: OTP has expired
          type: string
        param:
          nullable: true
          type: string
      type: object
    uint8:
      description: uint8 schema
      maximum: 255
      minimum: 0
      type: integer
  securitySchemes:
    ApiKey:
      description: API token passed in the request header.
      in: header
      name: ds-api-token
      type: apiKey

````