Request a translation of saved content
/sites/{site_id}/content/{content_id}/translationscontent:translateRequires content:translate and a site grant. Uses the same translation worker as the editor. A repeat request reuses the active job or a current successful translation. Poll status_url with jobs:read. After success, fetch components for the returned locale using content:read.
| Request | POST https://satelliteai.io/api/v1/sites/{site_id}/content/{content_id}/translations |
| Permission | content:translate |
| Response | A single object: data is object. |
| Operation ID | requestContentTranslation |
More context and worked examples are in the developer guide.
Example request
curl --fail-with-body --request POST \
'https://satelliteai.io/api/v1/sites/123/content/123/translations' \
-H "Authorization: Bearer $SATELLITE_API_KEY"Replace the example IDs with values returned by the discovery endpoints. Example values are placeholders, not real records.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
site_idrequired | path | integer | min 1 |
content_idrequired | path | integer | min 1 |
Unknown or repeated query parameters return 400.
JSON request body
Send Content-Type: application/json. The request body is required. Fields below describe the request; response fields follow separately.
| Field | Type | Description |
|---|---|---|
language_code | stringrequired | example fr-FR |
Data dictionary
Translation job recorded or reused. Poll for its outcome.
202: Translation job recorded or reused. Poll for its outcome.
[] marks an array element. nullable means the value can be null; treat it as unknown, not zero. always present means the key is always included in the object.
| Field | Type | Description |
|---|---|---|
data.job_id | string | |
data.content_id | integer | |
data.language_code | string | |
data.locale | string | example translation-123 |
data.status_url | string | |
data.locales_url | string |
Response metadata
| Field | Type | Description |
|---|---|---|
meta.reused | boolean |
Error responses
Errors return {"error": {"code", "message", "request_id"}}. See error handling for retry guidance.
| HTTP | When |
|---|---|
400 | Missing or unsupported target language. |
401 | Invalid managed key. |
403 | Translation scope required. |
404 | Content or site unavailable to the integration. |