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

# Get Lien Submission Preview Document

> Render a watermarked preview of the national IACA UCC-1/UCC-3
standard form, filled from the current draft.

This endpoint regenerates the PDF from the live submission on
every request without storing it. Submitting the filing saves a
separate snapshot. Both carry the "PREVIEW — NOT FILED" watermark.



## OpenAPI

````yaml /api-reference/openapi.json get /lien_submissions/{filing_id}/preview_document
openapi: 3.1.0
info:
  title: baselayer-api-service
  version: 0.1.0
servers:
  - url: https://api.baselayer.com/
security: []
paths:
  /lien_submissions/{filing_id}/preview_document:
    get:
      tags:
        - Lien Filing
      summary: Get Lien Submission Preview Document
      description: |-
        Render a watermarked preview of the national IACA UCC-1/UCC-3
        standard form, filled from the current draft.

        This endpoint regenerates the PDF from the live submission on
        every request without storing it. Submitting the filing saves a
        separate snapshot. Both carry the "PREVIEW — NOT FILED" watermark.
      operationId: >-
        get_lien_submission_preview_document_lien_submissions__filing_id__preview_document_get
      parameters:
        - name: filing_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Lien Filing ID
            description: The ID of the lien filing submission to preview.
          description: The ID of the lien filing submission to preview.
      responses:
        '200':
          description: The watermarked standard-form preview PDF.
          content:
            application/json:
              schema: {}
            application/pdf: {}
        '404':
          description: The lien filing submission does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
                title: ResourceNotFound
                description: Could not locate the resource for the given URI.
                examples:
                  - code: 1
                    message: Could not locate the resource for the given URI.
                    metadata: {}
        '422':
          description: >-
            The submission has no draft form or exceeds the 25-page preview
            limit.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/APIError'
                    title: LienFilingPreviewUnavailable
                    description: >-
                      A standard-form preview is only available for UCC-1 and
                      UCC-3 submissions filed through Baselayer; an imported
                      filing mirrors the public record and has no draft form to
                      preview.
                    examples:
                      - code: 494
                        message: >-
                          A standard-form preview is only available for UCC-1
                          and UCC-3 submissions filed through Baselayer; an
                          imported filing mirrors the public record and has no
                          draft form to preview.
                        metadata: {}
                  - $ref: '#/components/schemas/APIError'
                    title: LienFilingPreviewTooLarge
                    description: >-
                      This filing exceeds the 25-page preview limit. You can
                      still review and submit the filing.
                    examples:
                      - code: 495
                        message: >-
                          This filing exceeds the 25-page preview limit. You can
                          still review and submit the filing.
                        metadata: {}
                title: >-
                  Response 422 Get Lien Submission Preview Document Lien
                  Submissions  Filing Id  Preview Document Get
      security:
        - APIKeyHeader: []
components:
  schemas:
    APIError:
      properties:
        code:
          type: integer
          title: Code
        message:
          type: string
          title: Message
        uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Uri
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - code
        - message
      title: APIError
      description: >-
        APIError is a Pydantic model for standardizing error responses from the
        API.


        This class is used internally by APIException for JSON serialization.

        Users should typically work with APIException directly in exception
        catalogs.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````