Retrieve keys and its translations from a specific library
-
Get a single key
Endpoint
https://api.platform.easytranslate.com/strings-library/api/v1/teams/:team-name/libraries/:library-id/keys/:key-id
In order to get a key from your library, you need to send a GET request.
You need to use your autorization Bearer token to be able to send the request. Simply add token as an attribute to the autorization section of your request and your access token as its value.
Then, you need to add the following variables' values to your endpoint path:
-
- team_name: {{TEAM_NAME}}
Instead of {{TEAM_NAME}}, you need to provide the team_name of your team. - library-id: {{LIBRARY_ID}}
Instead of {{LIBRARY_ID}}, you need to provide the library_id of the library where the key is located. - key-id: {{KEY_ID}}
Instead of {{KEY_ID}}, you need to provide the specific key_id you are interested in getting.
- team_name: {{TEAM_NAME}}
Request example
curl --location -g --request GET 'https://api.platform.easytranslate.com/strings-library/api/v1/teams/{{TEAM_NAME}}/libraries/{{LIBRARY_ID}}/keys/{{KEY_ID}}'
Response example
{
"data": [
{
"type": "key",
"id": "614b0fe15947196962726dd3",
"attributes": {
"name": "menu.language",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726dd4",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dd5",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dd6",
"attributes": {
"text": "Language",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.231000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.231000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
}
],
"meta": {
"copyright": "Copyright 2021 EasyTranslate A/S",
"environment": "testing"
}
}
-
Get all keys
Endpoint
https://api.platform.easytranslate.com/strings-library/api/v1/teams/:team-name/libraries/:library-id/keys
In order to get all the keys from your library, you need to send a GET request.
You need to use your autorization Bearer token to be able to send the request. Simply add token as an attribute to the autorization section of your request and your access token as its value.
Then, you need to add the following variables' values to your endpoint path:
-
- team_name: {{TEAM_NAME}}
Instead of {{TEAM_NAME}}, you need to provide the team_name of your team. It can be retrieved from the api/v1/user endpoint.
- team_name: {{TEAM_NAME}}
-
-
library-id: {{LIBRARY_ID}}Instead of {{LIBRARY_ID}}, you need to provide the library_id of the library you wish to update by adding a new language.
-
Request example
curl --location -g --request GET 'https://api.platform.easytranslate.com/strings-library/api/v1/teams/{{TEAM_NAME}}/libraries/{{LIBRARY_ID}}/keys'
Response example
{
"data": [
{
"type": "key",
"id": "614b0fe15947196962726dd3",
"attributes": {
"name": "menu.language",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726dd4",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dd5",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dd6",
"attributes": {
"text": "Language",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.231000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.231000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726dd7",
"attributes": {
"name": "menu.currency",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726dd8",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dd9",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dda",
"attributes": {
"text": "Currency",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.322000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.322000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726ddb",
"attributes": {
"name": "menu.button",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726ddc",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726ddd",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dde",
"attributes": {
"text": "Change",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.377000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.377000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726ddf",
"attributes": {
"name": "terms.privacy_policy.text",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726de0",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726de1",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726de2",
"attributes": {
"text": "Privacy Policy",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.461000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.461000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726de3",
"attributes": {
"name": "summary.title",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726de4",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726de5",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726de6",
"attributes": {
"text": "Your summary title here :)",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.585000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.585000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726de7",
"attributes": {
"name": "summary.text",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726de8",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726de9",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dea",
"attributes": {
"text": "Here is your order summary.",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.677000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.677000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726deb",
"attributes": {
"name": "summary.language.source",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726dec",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726ded",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726dee",
"attributes": {
"text": "Source language:",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.750000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.750000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726def",
"attributes": {
"name": "summary.language.target",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726df0",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726df1",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726df2",
"attributes": {
"text": "Target language:",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.848000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.848000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726df3",
"attributes": {
"name": "summary.project_section.name",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe15947196962726df4",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe15947196962726df5",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe15947196962726df6",
"attributes": {
"text": "Project file name:",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.920000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.920000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe15947196962726df7",
"attributes": {
"name": "summary.project_section.translator",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe25947196962726df8",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe25947196962726df9",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe25947196962726dfa",
"attributes": {
"text": "Translator:",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:37.973000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:37.973000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe25947196962726dfb",
"attributes": {
"name": "summary.project_section.word_count",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe25947196962726dfc",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe25947196962726dfd",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe25947196962726dfe",
"attributes": {
"text": "Word count:",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:38.053000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:38.053000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe25947196962726dff",
"attributes": {
"name": "summary.project_section.price_label",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe25947196962726e00",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe25947196962726e01",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe25947196962726e02",
"attributes": {
"text": "Price (excl. VAT)",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:38.100000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:38.100000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b0fe25947196962726e03",
"attributes": {
"name": "summary.project_section.price_total",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b0fe25947196962726e04",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b0fe25947196962726e05",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b0fe25947196962726e06",
"attributes": {
"text": "Total price (excl. VAT):",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:13:38.144000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:13:38.144000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "key",
"id": "614b109cedec011e42133db2",
"attributes": {
"name": "weather.status",
"library_id": "614b0fe15947196962726dd2",
"translations": [
{
"type": "string",
"id": "614b109cedec011e42133db3",
"attributes": {
"text": null,
"status": "pending",
"language_code": "de"
}
},
{
"type": "string",
"id": "614b109cedec011e42133db4",
"attributes": {
"text": null,
"status": "pending",
"language_code": "da"
}
},
{
"type": "string",
"id": "614b109cedec011e42133db5",
"attributes": {
"text": "Your weather status of today",
"status": "translated",
"language_code": "en"
}
}
],
"created_at": {
"date": "2021-09-22 11:16:44.145000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-22 11:16:44.145000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
}
],
"meta": {
"copyright": "Copyright 2021 EasyTranslate A/S",
"environment": "testing"
}
}