> 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: Generate a campaign's localizations

> **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).

## Generate a campaign's localizations

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

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

Queues Kenso to write the campaign's steps in the languages it turns on. Call it after you turn on a language or
change step text. Kenso writes the queued localizations in the background.

The body is optional, for example `{ "languages": ["fr-FR"], "stepIds": [11], "channel": "email" }`. An
absent or empty field means every enabled language, every step and both channels. Kenso writes only active steps
with text. It skips steps built in Studio and LinkedIn connection requests with an AI-written note. For each step
and language:

- With no localization yet, Kenso creates one as a queued draft.
- Kenso queues again a localization that is `stale`, `failed` or `needs_review`, or that it wrote from older step text or an older market pack.
- A current `draft` or `approved` localization, and one already queued, stay as they are.
- Kenso queues again a localization a member edited only when `stepIds` names its step, so a new market pack never replaces a member's text unasked.

The response is `202` with every localization of the campaign, the same list as
`GET /v1/campaigns/{campaignId}/localizations`. A queued localization has `generating` true until Kenso
has written it, so poll the list to follow progress. Each localization Kenso writes costs credits. With no credits
left, the localization ends `failed` with `lastError` set to `insufficient_credits`.

Errors:

- `400 validation_failed` with detail code `no_enabled_languages`: the campaign turns on no language. Set `enabledLanguages` on the campaign first.
- `400 validation_failed` with detail code `language_not_enabled`: a locale in `languages` is not in the campaign's `enabledLanguages`.
- `400 validation_failed` with detail code `unsupported_language`: Kenso has no market pack to write an enabled language with.
- `400 validation_failed` with detail code `step_not_localizable`: a step in `stepIds` is not an active step of the campaign with text to localize.
- `400 validation_failed` with detail code `invalid_value`: `channel` is not `email` or `linkedin`.
- `404 not_found`: the campaign does not exist in this workspace.
- `409 invalid_state` with detail code `localization_disabled`: localization is not turned on for this workspace yet, so Kenso queued nothing.

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)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `campaignId` | path | integer (int64) | yes | Id of the campaign. |
| `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. Which languages, steps and channel to write.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `languages` | array of string | no | Locales to write, such as `fr-FR`. Each must be in the campaign's `enabledLanguages`. |
| `stepIds` | array of integer (int64) | no | Ids of the campaign's email or LinkedIn steps to write. An email and a LinkedIn step can share an id: add `channel` to pick one. Naming a step also queues its localizations that a member edited. |
| `channel` | string | no | Write only one channel's steps: `email` or `linkedin`. Absent means both. |

### Response 202

`data` is a list of `CampaignLocalization`. Each item has these fields. The response also carries `pagination`.

| 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" \
  -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 '{
  "languages": [
    "fr-FR"
  ],
  "stepIds": [
    812
  ],
  "channel": "email"
}'
```

### 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"
    }
  ],
  "pagination": {
    "nextCursor": "eyJpZCI6ODE1fQ",
    "hasMore": true,
    "total": 1,
    "totalCount": 1,
    "isTotalCapped": true
  }
}
```

## 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. |
