---
title: "Check if context generation is needed"
method: GET
path: "/v2/project/setup/should-generate"
tags: ["Context"]
deprecated: true
---

# Check if context generation is needed

`GET /v2/project/setup/should-generate`

> **Deprecated.**

Check whether the Project needs translation context generated. This deprecated endpoint is retained for backward compatibility and is no longer called by current clients.

## 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 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 `200`

Whether project context should be generated

- object
  - `shouldSetupProject` boolean, required

## Other responses

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

## Changes

- **2026-09-09** `1f85b1892342` — 1 info
  - the endpoint scheme security `UserBearerAuth` was added to the API
- **2026-08-27** `367cd605d090` — 11 info
  - api operation id `shouldGenerateContext` removed and replaced with `shouldGenerateProjectContext`
  - the endpoint scheme security `BearerAuth` was added to the API
  - added the media type `text/html` for the response with the status `401`
  - added the media type `text/html` for the response with the status `403`
  - …7 more

[Change history](https://skmtc.dev/generaltranslation/apis/general-translation-api/changes/v2/project/setup/should-generate/get.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.dev/generaltranslation/apis/general-translation-api/revisions/1f85b1892342?raw)
