# add_language

Offer a guide in another language, empty and not live.

`POST /v1/guides/{productId}/languages` · MCP tool `add_language` · scope `write` · beta · since 2026-11-26.2

Only when the creator asks for the guide in that language. Adds English, German, French or Italian (en, de, fr, it) to the languages the guide is offered in, never the language it is written in; canAdd in list_languages names what is left. The language starts with no translations and not live: buyers see nothing of it until it is turned live, by set_language_live when the creator asks you to or by the creator on the studio's Languages page. Adding a language the guide already has changes nothing and keeps its translations, so the call is safe to repeat. Returns the guide's languages as list_languages does. Then translate: list_untranslated_texts and save_translations in turn until remaining is 0. Refused with invalid_request for the language the guide is written in and for any other code.

## Path parameters

- `productId` (string, required): Id of the guide (a product of type map). From list_guides or create_guide.

## Body parameters

- `lang` (string, required): The language to add: en (English), de (German), fr (French) or it (Italian), and not the one the guide is written in.

## Returns

201: GuideLanguages.

- `productId` (string, required): The guide's id.
- `original` (string, required): The language the guide is written in, as a two-letter code (update_guide language). A guide is never offered as a translation into it.
- `total` (number, required): How many texts the guide has to translate: every text of the draft and of its sales pages, each once however often it is used. Archived spots, chapters, collections, hikes and properties are left out.
- `languages` (array of objects, required): The languages the guide is offered in besides the one it is written in, English first, then German, French and Italian. Empty until one is added.
  - `lang` (string, required): The language: en (English), de (German), fr (French) or it (Italian).
  - `live` (boolean, required): true when buyers can read the guide and its sales pages in this language. set_language_live turns it on or off, and so does the creator with Live on the studio's Languages page. While it is true, every translation saved shows to buyers at once.
  - `translated` (number, required): How many of the guide's texts have a translation in this language. Below total, texts are left: list_untranslated_texts returns them. It falls when the creator changes a text, which then has no translation until it is translated again.
  - `updatedAt` (number, required): When the language or one of its translations last changed (Unix time in milliseconds).
- `canAdd` (array of strings, required): The languages add_language can still add: en, de, fr and it without the one the guide is written in and the ones it has.
- `studioUrl` (string, required): The guide's Languages page in the studio, where the creator reviews the translations, turns Live on or off and removes a language.

## Examples

### Offer the parks guide in German: it starts empty and not live

```bash
curl -X POST "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/languages" \
  -H "Authorization: Bearer $SCENIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "lang": "de"
}'
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_language",
    "arguments": {
      "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
      "lang": "de"
    }
  }
}
```

Response 201:

```json
{
  "productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
  "original": "en",
  "total": 212,
  "languages": [
    {
      "lang": "de",
      "live": false,
      "translated": 0,
      "updatedAt": 1790673240000
    }
  ],
  "canAdd": [
    "fr",
    "it"
  ],
  "studioUrl": "https://creators.sceniq.earth/products/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2?tab=languages"
}
```

## Errors

- `invalid_argument` (400): A required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- `invalid_request` (400): A writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- `unauthenticated` (401): The request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- `invalid_api_key` (401): The key is unknown, revoked or expired.
- `api_scope_required` (403): A read-only key called a write operation, or a key without the publish option called publish_changes.
- `forbidden` (403): The key belongs to a creator account that is no longer active.
- `not_found` (404): The id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- `payload_too_large` (413): A JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- `rate_limited` (429): Over a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- `internal_error` (500): An unexpected failure. The message is hidden on purpose.

Reference: https://developers.sceniq.earth/reference/add_language
