> ## 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 Document

> Download the PDF saved with the latest successful submission.



## OpenAPI

````yaml /api-reference/openapi.json get /lien_submissions/{filing_id}/submission_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}/submission_document:
    get:
      tags:
        - Lien Filing
      summary: Get Lien Submission Document
      description: Download the PDF saved with the latest successful submission.
      operationId: >-
        get_lien_submission_document_lien_submissions__filing_id__submission_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 retrieve the submission
              document for.
          description: >-
            The ID of the lien filing submission to retrieve the submission
            document for.
        - name: redirect
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              When false, respond 200 with the signed URL as JSON instead of
              redirecting to it. Intended for browser callers, whose
              cross-origin redirect to storage is subject to the bucket's CORS
              policy.
            default: true
            title: Redirect
          description: >-
            When false, respond 200 with the signed URL as JSON instead of
            redirecting to it. Intended for browser callers, whose cross-origin
            redirect to storage is subject to the bucket's CORS policy.
      responses:
        '200':
          description: The signed URL as JSON (`redirect=false`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1.SignedURLResponse'
        '307':
          description: Download the saved submission PDF.
        '404':
          description: The lien filing submission or submission document 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: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    v1.SignedURLResponse:
      properties:
        url:
          type: string
          title: Url
          description: >-
            Short-lived GCS signed URL of the object. Any Content-Disposition
            the redirect would have carried is baked into the URL's query
            parameters.
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
          description: >-
            Filename the object downloads as, when the endpoint serves
            attachments; null for inline media.
      type: object
      required:
        - url
      title: SignedURLResponse (v1)
      description: |-
        The signed URL behind a redirecting download endpoint, as data.

        Browser XHR callers request this (``?redirect=false``) because following
        the redirect cross-origin to GCS subjects the request's auth and tenancy
        headers to the bucket's CORS policy; handed the URL instead, the client
        loads it bare — an ``<img src>``, a navigation, or a header-less fetch —
        which no bucket header allow-list has to anticipate.
    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.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````