---
title: "Create Translation"
description: "How to call Create Translation (POST /api/translations) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_translation"
revision: "2026-10-15"
operationId: "create_translation"
method: "POST"
endpoint: "https://a.klaviyo.com/api/translations"
authentication: "privateKey"
scopes: ["translations:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json"
jsonApi: {"fields":{"translation":["channel","created","fallback_locale","id","metadata","source_locale","target_locales","updated","values"]},"additionalFields":{"translation":["values"]}}
related: ["https://developers.klaviyo.com/en/reference/translations/llms.txt","https://developers.klaviyo.com/en/reference/get_translations.md","https://developers.klaviyo.com/en/reference/get_translation.md","https://developers.klaviyo.com/en/reference/update_translation.md","https://developers.klaviyo.com/en/reference/delete_translation.md","https://developers.klaviyo.com/en/reference/get_campaign_variation_for_translation.md","https://developers.klaviyo.com/en/reference/get_campaign_variation_id_for_translation.md","https://developers.klaviyo.com/en/reference/get_flow_message_for_translation.md","https://developers.klaviyo.com/en/reference/get_flow_message_id_for_translation.md","https://developers.klaviyo.com/en/reference/get_template_for_translation.md","https://developers.klaviyo.com/en/reference/get_template_id_for_translation.md","https://developers.klaviyo.com/en/reference/get_template_universal_content_for_translation.md","https://developers.klaviyo.com/en/reference/get_template_universal_content_id_for_translation.md"]
---

# Create Translation

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_translation

```http
POST https://a.klaviyo.com/api/translations
```

Create a translation.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `translations:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/translations' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "translation",
    "attributes": {
      "source_locale": "en",
      "target_locales": [
        "string"
      ],
      "fallback_locale": "en",
      "channel": "email"
    }
  }
}'
```

### CLI

```bash
klaviyo translations create \
  -d '{
  "data": {
    "type": "translation",
    "attributes": {
      "source_locale": "en",
      "target_locales": [
        "string"
      ],
      "fallback_locale": "en",
      "channel": "email"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Translations.create_translation(
    {
        "data": {
            "type": "translation",
            "attributes": {
                "source_locale": "en",
                "target_locales": [
                    "string",
                ],
                "fallback_locale": "en",
                "channel": "email",
            },
        },
    },
)
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, TranslationsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const translationsApi = new TranslationsApi(session)

const response = await translationsApi.createTranslation(
  {
    data: {
      type: 'translation',
      attributes: {
        sourceLocale: 'en',
        targetLocales: [
          'string',
        ],
        fallbackLocale: 'en',
        channel: 'email',
      },
    },
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Translations.create_translation(
  {
    data: {
      type: 'translation',
      attributes: {
        source_locale: 'en',
        target_locales: [
          'string',
        ],
        fallback_locale: 'en',
        channel: 'email',
      },
    },
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Translations->createTranslation(
    [
        'data' => [
            'type' => 'translation',
            'attributes' => [
                'source_locale' => 'en',
                'target_locales' => [
                    'string',
                ],
                'fallback_locale' => 'en',
                'channel' => 'email',
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Query parameters

- `additional-fields[translation]` (string[]): Request additional fields not included by default in the response. Supported values: 'values' Allowed values: `values`
- `fields[translation]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `channel`, `created`, `fallback_locale`, `id`, `metadata`, `source_locale`, `target_locales`, `updated`, `values`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `translation`
  - `attributes` (object, required)
    - `source_locale` (string, required): The source locale for this translation Example: `en`
    - `target_locales` (string[], required): The target locales for this translation
    - `fallback_locale` (string, required): The fallback locale for this translation Example: `en`
    - `channel` (string, required): The channel for this translation Allowed values: `email`, `mobile_push`, `sms`, `web`, `whatsapp`
  - `relationships` (object)
    - `campaign-variation` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `flow-message` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `template` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `template-universal-content` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `consent-page` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).

### Example request body

```json
{
  "data": {
    "type": "translation",
    "attributes": {
      "source_locale": "en",
      "target_locales": [
        "string"
      ],
      "fallback_locale": "en",
      "channel": "email"
    }
  }
}
```

## Responses

### 201: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `translation`
  - `id` (string, required): The composite ID of the translation in format {resource_type}::{qualifier}::{collection_id} Example: `campaign-variation::email::01KH00000000000000000000AB`
  - `attributes` (object, required)
    - `source_locale` (string, required): The source locale for this translation Example: `en`
    - `target_locales` (string[], required): The target locales for this translation
    - `fallback_locale` (string, nullable): The fallback locale for this translation Example: `en`
    - `channel` (string, required): The channel for this translation Allowed values: `email`, `mobile_push`, `sms`, `web`, `whatsapp`
    - `metadata` (object, nullable): Additional metadata for this translation
    - `created` (string<date-time>, nullable): The datetime when this translation was created Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): The datetime when this translation was updated Example: `2022-11-08T00:00:00+00:00`
    - `values` (object[], nullable): The translation values for this resource. Each entry contains the value block ID, its source text, and a map of target locale codes to translated strings. Only returned when requested via additional-fields[translation]=values.
  - `relationships` (object)
    - `campaign-variation` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `flow-message` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `template` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `template-universal-content` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
    - `consent-page` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_translation.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "translation",
    "id": "campaign-variation::email::01KH00000000000000000000AB",
    "attributes": {
      "source_locale": "en",
      "target_locales": [
        "string"
      ],
      "fallback_locale": "en",
      "channel": "email",
      "metadata": {},
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "values": [
        {}
      ]
    },
    "relationships": {
      "campaign-variation": {
        "data": {
          "type": "campaign-variation",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "flow-message": {
        "data": {
          "type": "flow-message",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "template": {
        "data": {
          "type": "template",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "template-universal-content": {
        "data": {
          "type": "template-universal-content",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "consent-page": {
        "data": {
          "type": "consent-page",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
