---
title: "Mcp I18Next Import"
method: POST
path: "/v1/mcp/projects/{project_id}/i18next/import"
tags: ["mcp"]
---

# Mcp I18Next Import

`POST /v1/mcp/projects/{project_id}/i18next/import`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/i18next/import`
- Auth: none declared

One-shot i18next import over the MCP surface (task 750): N namespaces x N
languages in a single call — creates missing keys + upserts translations,
idempotent, glossary-enforced. The automation/CLI path (#751). Shares the
core with the dashboard JWT endpoint.

## Path parameters

- `project_id` string, required

## Request body

- McpImportIn
  - `namespaces` McpImportNamespace[], required
    - `namespace` string, required
    - `translations` object, required: language_code -> nested|flat i18next tree for this namespace
  - `version` string, nullable
  - `status` 'draft' | 'translated'

## Response `200`

Successful Response

- McpImportOut
  - `project_uuid` string, required
  - `version_slug` string, nullable, required
  - `keys_created` integer, required
  - `keys_reused` integer, required
  - `translations_created` integer, required
  - `translations_updated` integer, required
  - `translations_unchanged` integer, required
  - `plural_keys_marked` integer, required
  - `units` McpImportUnit[], required
    - `namespace` string, required
    - `language_code` string, required
    - `keys_created` integer, required
    - `keys_reused` integer, required
    - `translations_created` integer, required
    - `translations_updated` integer, required
    - `translations_unchanged` integer, required
    - `plural_keys_marked` integer, required
  - `errors` object[], required
  - `glossary_violation_count` integer, required
  - `glossary_violations` object[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
