# Scanned Document

> Detailed reference for the Scanned Document object, which contains metadata about a submitted scan.

The `scannedDocument` object provides metadata and information about a scan that has been submitted to the Copyleaks API.

<ParamField path="scanId" type="string">
  The unique identifier for the scan that you provided during submission.
</ParamField>
<ParamField path="totalWords" type="integer">
  The total number of words detected in the submitted content.
</ParamField>
<ParamField path="totalExcluded" type="integer">
  The total number of words that were excluded from the scan based on your `exclude` settings.
</ParamField>
<ParamField path="credits" type="integer">
  The number of credits consumed by the scan. This will be `0` until the scan is completed.
</ParamField>
<ParamField path="expectedCredits" type="integer">
  The number of credits that are expected to be consumed by the scan upon completion.
</ParamField>
<ParamField path="creationTime" type="string">
  The Coordinated Universal Time (UTC) timestamp indicating when the scan was created. Format: `YYYY-MM-DDTHH:mm:ss.sssssssZ`
</ParamField>
<ParamField path="metadata" type="object">
  An object containing metadata about the submitted file. For example, it can contain the `filename`.
</ParamField>
<ParamField path="enabled" type="object">
  An object indicating which scan features were enabled for this scan.
  <Expandable title="properties">
    <ParamField path="plagiarismDetection" type="boolean">
      Indicates if plagiarism detection was enabled.
    </ParamField>
    <ParamField path="aiDetection" type="boolean">
      Indicates if AI-generated text detection was enabled.
    </ParamField>
    <ParamField path="explainableAi" type="boolean">
      Indicates if the AI Logic (explainable AI) feature was enabled.
    </ParamField>
    <ParamField path="writingFeedback" type="boolean">
      Indicates if the Grammar Checker feature was enabled.
    </ParamField>
    <ParamField path="pdfReport" type="boolean">
      Indicates if the generation of a PDF report was enabled.
    </ParamField>
    <ParamField path="cheatDetection" type="boolean">
      Indicates if cheat detection was enabled.
    </ParamField>
    <ParamField path="aiSourceMatch" type="boolean">
      Indicates if AI source matching against internet sources was enabled.
    </ParamField>
    <ParamField path="internalAiSourceMatch" type="boolean">
      Indicates if AI Source matching against internal sources was enabled.
    </ParamField>
  </Expandable>
</ParamField>
<ParamField path="detectedLanguage" type="string">
  The language code (ISO 639-1) of the language detected in the submitted content.
</ParamField>
