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

# Download Lien Filing Import Batch Results

> Redirects to a signed URL of the batch's per-row results (JSONL),
one line per uploaded row recording what became of it.

Available once the batch has reached a terminal state and written its
report — including a Failed batch, which reports the rows it did get
through before it stopped.



## OpenAPI

````yaml /api-reference/openapi.json get /lien_submissions/import/batches/{batch_id}/download
openapi: 3.1.0
info:
  title: baselayer-api-service
  version: 0.1.0
servers:
  - url: https://api.baselayer.com/
security: []
paths:
  /lien_submissions/import/batches/{batch_id}/download:
    get:
      tags:
        - Lien Filing
      summary: Download Lien Filing Import Batch Results
      description: |-
        Redirects to a signed URL of the batch's per-row results (JSONL),
        one line per uploaded row recording what became of it.

        Available once the batch has reached a terminal state and written its
        report — including a Failed batch, which reports the rows it did get
        through before it stopped.
      operationId: >-
        download_lien_filing_import_batch_results_lien_submissions_import_batches__batch_id__download_get
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Import Batch ID
            description: The unique identifier of the bulk lien import batch.
            examples:
              - b3cea6f5-3ee2-4261-b26b-0f3e447678b3
          description: The unique identifier of the bulk lien import batch.
      responses:
        '307':
          description: Download the per-row import results as JSONL.
          content:
            application/json:
              schema: {}
        '404':
          description: >-
            The import batch does not exist, or has not finished and so has
            written no results.
          content:
            application/json:
              schema:
                anyOf:
                  - $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: {}
                  - $ref: '#/components/schemas/APIError'
                    title: FileNotAvailable
                    description: File not available.
                    examples:
                      - code: 6
                        message: File not available.
                        metadata: {}
                title: >-
                  Response 404 Download Lien Filing Import Batch Results Lien
                  Submissions Import Batches  Batch Id  Download Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      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.
    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

````