CMS Tool API schema
Public API version 1.4.60.
Translations
Phrases of the website, text as it appears in the primary language, with their translation into one of the website's alternative languages. Visitors who choose that language see the translation in place of the phrase.
Endpoint URL
https://api.cms-tool.net/api/translations
/api/translations
Read and update the translations of the website's phrases into its alternative languages.
GET
List the website's phrases with their translation in one language, or retrieve one phrase by appending its ID to the path. language is required and must be one of the website's alternative languages. Needs the translations:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
language | text | fr | Language code, as the languages endpoint lists them, for example fr. |
keywords | text | example | Filter results by keywords. |
objectType | text | example | Filter results by object type. |
objectId | int | 123 | Filter results by object id. |
untranslated | boolean | true | Filter results to phrases with no translation in the language yet. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Add or change a translation: language (required), the phrase or its id, and the translation. A phrase the website does not have yet is added. delete true removes the translation in that language; deletePhrase true removes the phrase and its translations in every language. Needs the translations:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
language | text | fr | Language code, as the languages endpoint lists them, for example fr. Required for a translation, and it must be one of the website's alternative languages. |
id | int | 123 | Set the id value. |
phrase | text | Opening hours | Text exactly as it appears on the website in its primary language. |
translation | text | Heures d'ouverture | The phrase translated into the language. |
delete | boolean | true | Set the delete value. Accepts true or 1. |
deletePhrase | boolean | true | Delete the phrase and its translations in every language. Accepts true or 1. |
Data definitions
| Field | Type | Description | Format | Example |
|---|---|---|---|---|
translation_id | int | ID of the translation. Null when there is none yet. | ||
phrase | text | Text exactly as it appears on the website in its primary language. | ||
object_type | text | Where the phrase was found: Template (the whole website, and phrases added through the API), Page, Prompt, Blog, Cat or Event. | ||
translation | text | The phrase translated into the language. Null when it has not been translated yet. | ||
humancheck | bool | True when a person wrote or checked the translation; false or null for an automatic one. | ||
language | text | Code of the language the translation is in: one of the website's alternative languages. | ||
id | int | ID of the phrase. | ||
translated | timestamp | Date and time the translation was last saved by a person. | ||
object_id | int | ID of the page or other item the phrase was found in. |
Usage instructions and examples
Sample object
{"id": 1234, "phrase": "Opening hours", "language": "fr", "translation": "Heures d'ouverture", "translation_id": 5678, "translated": "2026-11-20 10:15:00", "humancheck": true, "object_type": "Page", "object_id": 112137}Machine-readable documentation
This documentation is also available as JSON or Markdown at the same URL. Request JSON with Accept: application/json or Markdown with Accept: text/markdown.