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

# Get parsed document

> Retrieve the results of a previously parsed document by its ID, including all associated tags and files.



## OpenAPI

````yaml /openapi.json get /v1/parse/{parseId}
openapi: 3.1.0
info:
  title: DeepXL API
  description: >-
    Professional document analysis and verification API for fraud detection,
    identity verification, and data extraction.
  contact:
    name: DeepXL Support
    url: https://deepxl.ai/contact
    email: hello@deepxl.ai
  version: 1.1.0
servers:
  - url: https://api.deepxl.ai
    description: Production
security: []
tags:
  - name: Fraud Detection
    description: Detect manipulated or AI-generated content in documents and images.
  - name: Document Parsing
    description: Extract structured data from IDs, bank statements, and pay stubs.
  - name: ID Verification
    description: Match an ID document against a selfie.
  - name: File Retrieval
    description: Fetch original uploads or generated heatmaps from a prior analysis.
paths:
  /v1/parse/{parseId}:
    get:
      tags:
        - Document Parsing
      summary: Get parsed document
      description: >-
        Retrieve the results of a previously parsed document by its ID,
        including all associated tags and files.
      operationId: get_parse_v1_parse__parseId__get
      parameters:
        - name: parseId
          in: path
          required: true
          schema:
            type: integer
            title: Parseid
      responses:
        '200':
          description: Parsed document retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIParseResponse'
              example:
                result:
                  parseId: 117
                  mediaType: image
                  fileType: jpeg
                  fileName: drivers_license.jpg
                  fileSize: 231433
                  model: light
                  country: us
                  documentType: usa_driver_license
                  parsedData:
                    firstName: JOHN
                    lastName: DOE
                    dateOfBirth: '1990-05-15'
                    licenseNumber: D1234567
                    expirationDate: '2028-05-15'
                    address: 123 MAIN ST ANYTOWN, CA 90210
                  timestamp: 1725795600
                  timestampISO: '2024-09-08T10:00:00.000000'
                  tags:
                    - name: customerId
                      value: '9999'
                    - name: customerName
                      value: Acme Corp
                    - name: documentId
                      value: DOC-2024-001
                    - name: companyName
                      value: DeepXL
                    - name: companyId
                      value: COMP-001
                  files:
                    - category: original_file
                      fileName: drivers_license.jpg
                      fileSize: 231433
                      contentType: image/jpeg
                      timestamp: 1725795600
                      timestampISO: '2024-09-08T10:00:00.000000'
                      url: >-
                        https://api.deepxl.ai/v1/files/parse_117_drivers_license.jpg
        '401':
          description: Authentication required - API key or Clerk token missing/invalid
        '404':
          description: Parsed document not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
      security:
        - API Key: []
components:
  schemas:
    APIParseResponse:
      properties:
        result:
          $ref: '#/components/schemas/APIParse'
          description: The document parse result
      type: object
      required:
        - result
      title: APIParseResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    APIParse:
      properties:
        parseId:
          type: integer
          title: Parseid
          description: Unique identifier for the parse record
        mediaType:
          type: string
          title: Mediatype
          description: Media type category (e.g. image, document)
        fileType:
          type: string
          title: Filetype
          description: File extension (e.g. jpeg, png, pdf)
        fileName:
          type: string
          title: Filename
          description: Original file name
        fileSize:
          type: integer
          title: Filesize
          description: File size in bytes
        timestamp:
          type: integer
          title: Timestamp
          description: Unix timestamp of when the parsing was performed
        timestampISO:
          type: string
          title: Timestampiso
          description: ISO 8601 timestamp of when the parsing was performed
        model:
          type: string
          title: Model
          description: Model used for parsing (light or performance)
        modelVersion:
          anyOf:
            - type: string
            - type: 'null'
          title: Modelversion
          description: Version of the model used (e.g. 1.2.0)
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
          description: Normalized country hint applied to this parse (us, mx, br)
        documentType:
          type: string
          title: Documenttype
          description: Detected document type (e.g. usa_driver_license, invoice, other)
        parsedData:
          additionalProperties: true
          type: object
          title: Parseddata
          description: Extracted key-value pairs from the document
        tags:
          items:
            $ref: '#/components/schemas/Tag'
          type: array
          title: Tags
          description: Metadata tags attached to this parse result
          default: []
        files:
          items:
            $ref: '#/components/schemas/FileData'
          type: array
          title: Files
          description: Associated files (original upload)
          default: []
      type: object
      required:
        - parseId
        - mediaType
        - fileType
        - fileName
        - fileSize
        - timestamp
        - timestampISO
        - model
        - documentType
        - parsedData
      title: APIParse
    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
    Tag:
      properties:
        name:
          type: string
          title: Name
          description: Tag key name
        value:
          type: string
          title: Value
          description: Tag value
      type: object
      required:
        - name
        - value
      title: Tag
    FileData:
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
          description: File category (e.g. original_file, heatmap, id, face)
        fileName:
          type: string
          title: Filename
          description: Name of the file
        fileSize:
          type: integer
          title: Filesize
          description: File size in bytes
        contentType:
          type: string
          title: Contenttype
          description: MIME content type (e.g. image/jpeg, application/pdf)
        timestamp:
          type: integer
          title: Timestamp
          description: Unix timestamp of when the file was created
        timestampISO:
          type: string
          title: Timestampiso
          description: ISO 8601 timestamp of when the file was created
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: URL to retrieve the file via GET /v1/files/{fileName}
      type: object
      required:
        - fileName
        - fileSize
        - contentType
        - timestamp
        - timestampISO
      title: FileData
  securitySchemes:
    API Key:
      type: apiKey
      description: API key created in the dashboard
      in: header
      name: x-api-key

````