---
title: "Upload translated files"
method: POST
path: "/v2/project/files/upload-translations"
tags: ["Files"]
---

# Upload translated files

`POST /v2/project/files/upload-translations`

Upload translated files linked to their source files. Max 100 files per request.

## Headers

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

## Request body

- object
  - `data` object[], required
    - `source` SourceFileInput, required
      - `content` string, required — Base64-encoded file content.
      - `fileName` string, required
      - `fileFormat` string, required — File format identifier, for example JSON, MDX, or LOTTIE.
      - `dataFormat` string — Data format, e.g. STRING, JSX, ICU.
      - `locale` string, required — Source locale code.
      - `fileId` string — Derived from the file name when omitted.
      - `versionId` string — Derived from the content hash when omitted.
      - `branchId` string — Defaults to the default branch.
      - `checkedOutBranchId` string
      - `incomingBranchId` string
      - `formatMetadata` object
    - `translations` object[], required
      - `content` string, required — Base64-encoded translated file content.
      - `fileName` string, required
      - `fileFormat` string, required
      - `locale` string, required
      - `dataFormat` string
      - `transformFormat` string — Output file format transformation.
  - `sourceLocale` string — Overrides the project default source locale.

## Response `201`

Translations uploaded.

- object
  - `uploadedFiles` object[]
    - `branchId` string
    - `fileId` string
    - `versionId` string
    - `fileName` string
    - `locale` string
    - `fileFormat` string
    - `dataFormat` string
  - `count` integer
  - `message` string

## Other responses

- `400` — The request was invalid.
- `401` — Missing or invalid API key.
- `403` — The API key lacks the required permission, or the action is not allowed on the current plan.
- `429` — Rate limit or quota exceeded.
- `503` — The server is temporarily busy.

---

[API](https://skmtc.net/generaltranslation/apis/general-translation-api.md) · [All operations](https://skmtc.net/generaltranslation/apis/general-translation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/generaltranslation/general-translation-api/revisions/7e9372f17040/schema)
