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

# Translation results

> Retrieve HTML translations of uploaded documents.

```
GET /partner/v1/cases/{id}/translation
```

Returns a readable HTML representation per source file, structured by page. Returns `409` if no
upload was created with the `translation` feature.

### Path parameters

<ParamField path="id" type="string" required>
  TruEnroll case ID.
</ParamField>

## Response fields

<ResponseField name="data" type="object">
  <Expandable title="data">
    <ResponseField name="id" type="string">TruEnroll case ID.</ResponseField>
    <ResponseField name="externalId" type="string">Your reference for this case.</ResponseField>

    <ResponseField name="status" type="string">
      Aggregate translation status across all files: `queued`, `processing`, `completed`, `failed`.
    </ResponseField>

    <ResponseField name="files" type="object[]">
      One entry per source file across all uploads that had translation enabled.

      <Expandable title="files[]">
        <ResponseField name="uploadId" type="string">ID of the upload this file belongs to.</ResponseField>

        <ResponseField name="credentialId" type="string | null">
          ID of the credential this file belongs to. `null` for raw files (uploads submitted with `classify: false`).
        </ResponseField>

        <ResponseField name="fileId" type="string">ID of the source file.</ResponseField>
        <ResponseField name="fileName" type="string">Original filename.</ResponseField>

        <ResponseField name="status" type="string">
          Translation status for this file: `queued`, `processing`, `completed`, `failed`.
        </ResponseField>

        <ResponseField name="htmlRepresentation" type="string | null">
          Full HTML translation of the document as a single string. Available once status is `completed`.
        </ResponseField>

        <ResponseField name="htmlPages" type="string[] | null">
          Per-page HTML strings preserving the original page structure. Available once status is `completed`.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

## Example

```json theme={null}
{
  "success": true,
  "message": "Translation retrieved",
  "meta": {},
  "data": {
    "id": "6850abc123def456ghi789",
    "externalId": "applicant-9876",
    "status": "completed",
    "files": [
      {
        "uploadId": "6850def456ghi789abc123",
        "credentialId": "6850ghi789abc123def456",
        "fileId": "file_abc",
        "fileName": "transcript.pdf",
        "status": "completed",
        "htmlRepresentation": "<html>...</html>",
        "htmlPages": ["<html>page 1</html>", "<html>page 2</html>"]
      }
    ]
  }
}
```
