Files

Query file content

Changed on

Download up to 100 source files and translations as base64. Requires project:files:read.

post/v2/projects/{projectId}/files/content/query

Request

  • Base URL
    https://api.gtx.dev
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1' | '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.

Request body

Response

One result per selector, in selector order. The request is a read: it creates and changes nothing and is safe to retry, and uses POST only to carry the selectors in the body. 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_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the / response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the / response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status