---
title: "Poll File Analysis"
method: GET
path: "/files/analysis/{operationId}"
tags: ["File"]
---

# Poll File Analysis

`GET /files/analysis/{operationId}`

Monitor the [File Analysis](#/operations/RequestFileAnalysis) operation and receive the analysis results.

> File analysis results will be available for 24 hours after generation.

## Query parameters

- `fields` string

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Response `200`

- FileAnalysisResponse
  - `status` 'converting' | 'analysis' | 'costCalculation' | 'completed' | 'error', required — The status of the file analysis operation. `converting` - The files are being converted for analysis.<br> `analysis` - Extracting the word count from the files.<br> `costEstimation` - Estimating the cost.<br> `completed` - The file analysis is completed.<br> `error` - The file analysis was unsuccessful. See the `errorMessage` field for more details.
  - `wordCount` integer — <div style="display:inline; float:right; color:#008080; margin-top:-23px; font-size:11px">default</div><div style="display: inline;">The total word count of the files.</div>
  - `estimatedCosts` FileAnalysisCostResponse
    - `currencyCode` string — The currency code (ISO 4217).
    - `total` number, required — The total cost calculated for the provided files and language pairs. <br> It represents the sum of the `translationCosts`, `languageCosts` and `additionalCosts`.
    - `translationCosts` number — The base translation costs.
    - `languageCosts` number — The additional language costs.
    - `additionalCosts` number — The additional translation costs.
  - `fileStatistics` FileAnalysisFileStatistics[] — <div style="display:inline; float:right; color:#008080; margin-top:-23px; font-size:11px">default</div><div style="display: inline;">The word count breakdown by files.</div>
    - `fileId` string, required — The file identifier.
    - `wordCount` integer, required — The number of words in this file.
  - `errorMessage` string — The cause of the error when the status is `error`.

## Other responses

- `400` — Error codes: * “invalid”: invalid input in the query parameter mentioned in the “name” field on the error response.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to read resource.
- `404` — Error codes: * "notFound": the quoting operation could not be found.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
