CMS Tool API

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

NameTypeExampleNotes
languagetextfrLanguage code, as the languages endpoint lists them, for example fr.
keywordstextexampleFilter results by keywords.
objectTypetextexampleFilter results by object type.
objectIdint123Filter results by object id.
untranslatedbooleantrueFilter results to phrases with no translation in the language yet. Accepts true or 1.
offsetint123Skip this many matching records before returning results.
pageSizeint123Limit 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

NameTypeExampleNotes
languagetextfrLanguage 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.
idint123Set the id value.
phrasetextOpening hoursText exactly as it appears on the website in its primary language.
translationtextHeures d'ouvertureThe phrase translated into the language.
deletebooleantrueSet the delete value. Accepts true or 1.
deletePhrasebooleantrueDelete the phrase and its translations in every language. Accepts true or 1.

Data definitions

FieldTypeDescriptionFormatExample
translation_idintID of the translation. Null when there is none yet.
phrasetextText exactly as it appears on the website in its primary language.
object_typetextWhere the phrase was found: Template (the whole website, and phrases added through the API), Page, Prompt, Blog, Cat or Event.
translationtextThe phrase translated into the language. Null when it has not been translated yet.
humancheckboolTrue when a person wrote or checked the translation; false or null for an automatic one.
languagetextCode of the language the translation is in: one of the website's alternative languages.
idintID of the phrase.
translatedtimestampDate and time the translation was last saved by a person.
object_idintID of the page or other item the phrase was found in.

Usage instructions and examples

Every request names the language, which must be one of the website's alternative languages (GET /api/languages?enabled=true). List with GET /api/translations?language=fr (untranslated=true for the phrases with no translation yet), or read one phrase with GET /api/translations/{id}?language=fr. POST {"language": "fr", "phrase": "Opening hours", "translation": "Heures d'ouverture"} to add or change a translation; a phrase the website does not have yet is added. Send the id instead of the phrase to translate an existing phrase. delete: true removes the translation in that language, and deletePhrase: true removes the phrase and its translations in every language. Changes need the seo permission.

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.