Skip to main content

Get Key

Adds key to project.

Request type: POST

API Endpoint

https://api.translized.com/term/get

Parameters

ParamTypeRequiredDescription
projectIdStringTrueId of your project
termKeyStringTrueKey of key to add
languageCodeStringFalseLanguage code. If defined translation will be returned only for that language. If not defined all key translations are returned.

Example requests

curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
-d "{"projectId":"A3KJtLw4mt", "termKey":"Api.test"}" \
https://api.translized.com/term/get
info
  • projectId can be found inside your project's settings. (Translized App > Your Project > Settings )

Example response

{
"result": {
"objectId": "DxBKTxakAO",
"key": "Api.test",
"projectId": "A3KJtLw4mt",
"value": [
{
"code": "en",
"translation": "Api test (en)"
},
{
"code": "es",
"translation": "Api test (es)"
}
],
"createdAt": "2022-08-03T18:18:13.098Z"
}
}