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

# Get a specific document extraction



## OpenAPI

````yaml /openapi.json get /document-extractions/{documentId}
openapi: 3.0.0
info:
  title: Korint Documentation
  description: Korint API Documentation
  version: 1.0.0
  contact: {}
servers: []
security:
  - bearerAuth: []
tags: []
paths:
  /document-extractions/{documentId}:
    get:
      tags:
        - document-extractions
      summary: Get a specific document extraction
      operationId: DocumentExtractionController_getDocumentExtraction
      parameters:
        - name: documentId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDocumentExtractionOutput'
        '404':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DocumentExtractionNotFoundErrorDto'
              examples:
                DOCUMENT_EXTRACTION_NOT_FOUND:
                  $ref: '#/components/schemas/DocumentExtractionNotFoundErrorDto'
          description: ''
components:
  schemas:
    GetDocumentExtractionOutput:
      type: object
      properties:
        documentId:
          type: string
          description: Document ID
        status:
          type: string
          description: Extraction status
          enum:
            - PENDING
            - DONE
            - FAILED
            - SKIPPED
        fields:
          type: object
          description: Extracted fields
        aiOperationId:
          type: string
          description: AI operation ID
        errorMessage:
          type: string
          description: Error message if extraction failed
        metadata:
          type: object
          description: Extraction context metadata
        createdAt:
          type: string
          description: Creation timestamp
        updatedAt:
          type: string
          description: Last update timestamp
      required:
        - documentId
        - status
        - createdAt
        - updatedAt
    DocumentExtractionNotFoundErrorDto:
      type: object
      properties:
        code:
          type: string
          enum:
            - DOCUMENT_EXTRACTION_NOT_FOUND
        message:
          type: string
          example: Document extraction not found for document {documentId}
        details:
          $ref: '#/components/schemas/DocumentExtractionNotFoundDetailsDto'
      required:
        - code
        - message
        - details
    DocumentExtractionNotFoundDetailsDto:
      type: object
      properties:
        documentId:
          type: string
      required:
        - documentId

````