---
title: "Translate Web Widget Texts"
method: POST
path: "/core/web-widgets/translate"
tags: ["Web Widgets"]
---

# Translate Web Widget Texts

`POST /core/web-widgets/translate`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/web-widgets/translate`
- Auth: HTTP bearer

Translate a widget's texts into one of its languages with Claude.

Stateless, so it works on unsaved edits and on presets. A text whose
translation would change its ``{{placeholders}}`` is left out.

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- WebWidgetTranslateRequest: Texts a widget's language lacks, keyed by where they live in its config.
  - `source_locale` string, required
  - `target_locale` string, required
  - `texts` object, required
  - `glossary` string[]

## Response `200`

Successful Response

- WebWidgetTranslateResponse
  - `texts` object, required

## Other responses

- `422`: Validation Error

---

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