---
title: "Generate translation context"
method: POST
path: "/v2/project/setup/generate"
tags: ["Context"]
---

# Generate translation context

`POST /v2/project/setup/generate`

Generate glossaries and translation instructions for the project.

## 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-id` string — Target project ID. Required when authenticating with an organization API key; ignored with project-scoped API keys (the project is resolved from the key).

## Request body

- object
  - `files` object[], required
    - `branchId` string
    - `fileId` string, required
    - `versionId` string, required
  - `locales` string[]
  - `force` boolean

## Response `200`

Context generation status

- union
  - object
    - `status` 'completed', required
  - object
    - `setupJobId` string, required
    - `status` 'queued', required

## Other responses

- `400` — Request error
- `401` — Request error
- `403` — Request error
- `404` — Request error
- `413` — Request error
- `429` — Request error
- `500` — Request error

## Changes

- **2026-08-27** `367cd605d090` — 4 breaking, 2 warning, 13 info
  - the `files/items/branchId` request property's minLength was increased from `0` to `1`
  - the `files/items/fileId` request property's minLength was increased from `0` to `1`
  - the `files/items/versionId` request property's minLength was increased from `0` to `1`
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - …15 more

[Change history](https://skmtc.dev/generaltranslation/apis/general-translation-api/changes/v2/project/setup/generate/post.md)

---

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