Get file content
Changed onDownload one source file, or its translation when locale is given. Requires project:files:read.
Request
- Base URLhttps://api.gtx.dev
- AuthHTTP bearer
Path parameters
File ID.
Query parameters
Branch ID. Defaults to the project default branch.
Source version ID. Defaults to the branch head.
Translation locale. Omit to download the source file.
Headers
API contract version. Must be 2026-10-08.v1 or later; requests without it or with an older version return 400.
Response
File content, or a pending translation: a result of POST /v2/projects/{projectId}/files/content/query with status: ready and the content, or, when the translation is stored but not completed yet, for example during a layout pass, status: pending with its fileId, branchId, versionId and requested locale, and data: null. A translation is not found while its translation job has not stored the translation yet, so wait for the job with GET /v2/projects/{projectId}/jobs/{jobId} or POST /v2/projects/{projectId}/jobs/query before reading it. Without versionId, a translation is the newest completed version on the branch, and pending only while none is completed; to wait for a specific version, pass its versionId.
Changes
- warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
invalid_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status - warning
added the new
unsupported_content_encodingenum value to the////response property for the response status
- warning
- warning
added the new
integration_managed_fileenum value to the////response property for the response status - warning
added the new
integration_managed_fileenum value to the////response property for the response status - warning
added the new
integration_managed_fileenum value to the////response property for the response status - warning
added the new
integration_managed_fileenum value to the////response property for the response status - warning
added the new
integration_managed_fileenum value to the////response property for the response status - warning
added the new
integration_managed_fileenum value to the////response property for the response status
- warning