# General Translation Platform: Ottieni lo stato del file
URL: https://generaltranslation.com/it/docs/platform/openapi/reference/files/get-file-status.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Ottieni i metadati di un file sorgente e lo stato di traduzione per ciascuna impostazione regionale. Richiede project:files:read.

{/* Questo file è stato generato da Fumadocs. Non modificarlo direttamente. Per apportare modifiche, esegui nuovamente il comando di generazione. */}

## Endpoint

`GET https://api.gtx.dev/v2/projects/{projectId}/files/{fileId}/status`

**Operation ID:** `getFileStatus`

**Tags:** `Files`

**Summary:** Get file status

Get a source file's metadata and the translation state of each locale. Requires `project:files:read`.

Authentication: required. Send an API key in the `Authorization: Bearer <key>` header when authenticating.

### Parameters

- `projectId` (path, string, required)
- `fileId` (path, string, required): File ID.
- `branchId` (query, string, optional): Branch ID. Defaults to the project default branch.
- `versionId` (query, string, optional): Source version ID. Defaults to the branch head.
- `gt-api-version` (header, "2026-10-08.v1", required): API contract version. Must be `2026-10-08.v1` or later; requests without it or with an older version return 400.

### Responses

**200**: File status
Response body (`application/json`, object):
- `translations` (object[], required)
  - `locale` (string, required)
  - `completedAt` (string | null (date-time), required)
  - `approvedAt` (string | null (date-time), required)
  - `publishedAt` (string | null (date-time), required)
  - `createdAt` (string | null (date-time), required)
  - `updatedAt` (string | null (date-time), required)
- `sourceFile` (object, required)
  - `id` (string, required)
  - `branchId` (string, required)
  - `fileId` (string, required)
  - `versionId` (string, required)
  - `fileName` (string, required)
  - `sourceLocale` (string, required)
  - `fileFormat` ("GTJSON" | "MDX" | "JSON" | "YAML" | "MD" | "TS" | "JS" | "HTML" | "TXT" | "PO" | "POT" | "TWILIO_CONTENT_JSON" | "LOTTIE" | "SVG" | "XCSTRINGS" | "DOT_STRINGS" | "DOT_STRINGSDICT" | "ANDROID_STRINGS" | "SRT" | "RESX", required)
  - `dataFormat` (string | null, required)
  - `createdAt` (string (date-time), required)
  - `updatedAt` (string (date-time), required)
  - `locales` (string[], required)

**400**: The request is malformed or failed validation.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**401**: Authentication is missing or invalid.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**403**: The caller is authenticated but not allowed to perform this operation or access the requested resource.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**404**: The requested resource was not found.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**429**: Too many requests. The rate limit was exceeded.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**500**: An unexpected server error occurred.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

Complete OpenAPI 3.1 specification: https://generaltranslation.com/openapi.yaml

OpenAPI schema: [openapi.json](https://generaltranslation.com/openapi.json)

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
