Files

Download a single file

Changed on

Download a single source or translated file. This deprecated endpoint is retained for backward compatibility; new integrations should use POST /v2/project/files/download.

get/v2/project/files/download/{fileId}

Request

  • Base URL: https://api.gtx.dev
  • URL: https://api.gtx.dev/v2/project/files/download/{fileId}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

fileIdstring required

Query parameters

branchIdstring
versionIdstring
localestring

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1'

API contract version. Defaults to the oldest supported version.

gt-project-idstring

Target project ID when no project ID is present in the path. Project API keys default to their bound project. If supplied, the header must match both the path target and the key’s bound project.

Response

Downloaded file

datastring required

Changes

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the media type text/html for the response with the status

    • info

      added the required property to the response with the status

    • info

      the endpoint scheme security UserBearerAuth was added to the API