> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/campaign-localizations/openapi.json](/docs/api/campaign-localizations/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Localized steps: Regenerate a localization

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Localized steps](/docs/api/campaign-localizations.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Regenerate a localization

`POST /v1/campaigns/{campaignId}/localizations/{localizationId}/regenerate` - operationId `campaign-localizations.regenerate`

| Permission | Credits | Rate limit |
| --- | --- | --- |
| Campaigns edit | Varies with the request (`translation`) | 4,800 requests a minute per API key |

Queues Kenso to write one localization again, optionally with an instruction. Use it when a draft needs changes you
do not want to make by hand.

The body is optional, for example `{ "instruction": "Shorter, and less formal." }`. With an instruction,
Kenso rewrites the current text to follow it. Without one, Kenso writes the localization anew. Both replace text a
member edited. The localization becomes a `draft` at once and loses any approval, so a live campaign stops
sending it until it is approved again. Meanwhile the campaign's `languageFallback` decides what the contacts
of that language get: the source text, or a hold. The response is `202` with the localization, and
`generating` stays true until Kenso has written it. Send `channel` only when an email and a LinkedIn
localization of the campaign share the id.

Errors:

- `400 validation_failed` with detail code `too_long`: `instruction` is longer than 2,000 characters.
- `400 validation_failed` with detail code `language_not_enabled`: the campaign no longer turns on this localization's language.
- `400 validation_failed` with detail code `step_not_localizable`: the step is no longer active or has no text to localize.
- `400 validation_failed` with detail code `unsupported_language`: Kenso has no market pack to write this language with.
- `400 validation_failed` with detail code `channel_required`: an email and a LinkedIn localization share this id. Add `channel`.
- `400 validation_failed` with detail code `invalid_value`: `channel` is not `email` or `linkedin`.
- `404 not_found`: the campaign or the localization does not exist in this workspace, or the localization's step was removed.
- `409 localization_generating`: Kenso already has this localization queued.
- `409 invalid_state` with detail code `localization_disabled`: localization is not turned on for this workspace yet.
- `409 conflict`: the localization changed while Kenso saved the request. Read it again and retry.

Requires Campaigns edit.

Needs the `multilingual_outreach` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/campaign-localizations/POST/v1/campaigns/%7BcampaignId%7D/localizations/%7BlocalizationId%7D/regenerate)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `campaignId` | path | integer (int64) | yes | Id of the campaign. |
| `localizationId` | path | integer (int64) | yes | Id of the localization. |
| `channel` | query | string | no | `email` or `linkedin`. Needed only when an email and a LinkedIn localization of the campaign share the id. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Request body

`application/json`, optional.

Optional. An instruction for the new text.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `instruction` | string | no | What to change, in a sentence or two, such as `Shorter, and less formal.` Up to 2,000 characters. Absent writes the localization anew. |

### Response 202

`data` is a `CampaignLocalization`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer (int64) | Id of the localization. An email and a LinkedIn localization of the same campaign can share an id, and `channel` tells them apart. |
| `channel` | string | Channel of the step: `email` or `linkedin`. |
| `stepId` | integer (int64) | Id of the email or LinkedIn step this localization translates. |
| `stepOrder` | integer (int32) | Position of the step in its sequence. |
| `variant` | string | The step's A/B variant, from `a` to `d`. |
| `language` | string | Locale the step is written in, such as `fr-FR`. |
| `subjectLine` | string | The localized subject. Omitted for a LinkedIn localization, and before Kenso has written the text. |
| `bodyContent` | string | The localized body. Omitted before Kenso has written the text. |
| `status` | string | State of the localization: `draft` (written or edited, waiting for approval), `approved` (ready to send to contacts of this language), `stale` (marked out of date after its step changed), `needs_review` (the text failed Kenso's checks, so edit or regenerate it) or `failed` (Kenso could not write it, see `lastError`). |
| `generating` | boolean | True while Kenso has the localization queued to write. Poll until it is false. |
| `sourceHash` | string | A fingerprint of the step text the localization was written from. It changes when the step text changes. |
| `stale` | boolean | True when the localization is marked stale, or was written from older step text or an older market pack. Generate it again. |
| `packVersion` | string | Version of the market pack Kenso wrote the localization with. |
| `mirrorLanguage` | string | Language of `mirrorSubject` and `mirrorBody`, always `en`. Omitted until Kenso has written the text. |
| `mirrorSubject` | string | The localized subject translated back into English, so a reviewer who does not read the language can check it. Omitted for a LinkedIn localization. |
| `mirrorBody` | string | The localized body translated back into English. Omitted until Kenso has written the text. |
| `qaScore` | integer (int32) | The score from 0 to 100 that Kenso's quality reviewer gave the text Kenso wrote. Omitted before the first review. An edit keeps the score of the text before it. |
| `qaReport` | CampaignLocalizationQaReport | Result of the latest checks on the text. Omitted before the first check. |
| `editedByHuman` | boolean | True when a member edited the text. Approval then needs only the rule checks. |
| `approvedByUserId` | integer (int64) | Id of the member who approved the localization. Omitted while it is not approved, and when an API key that is not tied to a member approved it. |
| `approvedAt` | string (date-time) | When the localization was approved, in UTC. Omitted while it is not approved. |
| `lastError` | string | Why Kenso's last attempt to write the localization failed, such as `insufficient_credits`. Omitted when the last attempt did not fail. |
| `modifiedAt` | string (date-time) | When the localization last changed, in UTC. |

### Request

```bash
curl -X POST "https://api.ken.so/v1/campaigns/812/localizations/812/regenerate" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "instruction": "string"
}'
```

### Example response

```json
{
  "success": true,
  "data": {
    "id": 812,
    "channel": "email",
    "stepId": 812,
    "stepOrder": 1,
    "variant": "string",
    "language": "fr-FR",
    "subjectLine": "string",
    "bodyContent": "string",
    "status": "string",
    "generating": true,
    "sourceHash": "string",
    "stale": true,
    "packVersion": "string",
    "mirrorLanguage": "string",
    "mirrorSubject": "string",
    "mirrorBody": "string",
    "qaScore": 1,
    "qaReport": {
      "passed": true,
      "errors": [
        {
          "code": "string",
          "message": "string"
        }
      ]
    },
    "editedByHuman": true,
    "approvedByUserId": 812,
    "approvedAt": "2026-09-23T15:02:11Z",
    "lastError": "insufficient_credits",
    "modifiedAt": "2026-09-23T15:02:11Z"
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### CampaignLocalizationQaReport

The checks Kenso ran on a localization's text.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `passed` | boolean | no | True when the text passed every check. |
| `errors` | array of CampaignLocalizationQaError | no | What failed: the rule findings first, then the quality reviewer's findings with the code `judge`. |

### CampaignLocalizationQaError

One finding of the checks on a localization.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | no | The check that failed. A finding from Kenso's quality reviewer has the code `judge`. |
| `message` | string | no | What is wrong, in plain words. |
