Get languages, glossary or static text
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "clza1l2g30001lg01lang0001",
"code": "en",
"name": "English",
"languageCode": "en"
},
{
"id": "clza1l2g30002lg01lang0002",
"code": "fr",
"name": "",
"languageCode": "fr"
}
]
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Languages and localization
Get languages, glossary or static text
Reads one kind of localization data, chosen by kind (default languages):
languages: the project’s languages (id,code,name,languageCode), oldest firstglossary: glossary entries, sorted by source termstatic: the resolved static text forlocale(required), as a nested object merged into the response: key defaults overlaid with that language’s valuesstatic-keys: the static text keys with their ids (id,key,defaultValue), used bystatic-key-defaultandstatic-key-delete
Any other kind, or static without locale, returns 400 INVALID_PARAMS.
Required scope: content:read
GET
/
projects
/
{projectId}
/
localization
Get languages, glossary or static text
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://studio.weaverse.io/api/v1/content/projects/{projectId}/localization"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "clza1l2g30001lg01lang0001",
"code": "en",
"name": "English",
"languageCode": "en"
},
{
"id": "clza1l2g30002lg01lang0002",
"code": "fr",
"name": "",
"languageCode": "fr"
}
]
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Authorizations
Bearer token: a shop API key (WEAVERSE_API_KEY), a scoped API key or a delegated MCP OAuth token; translation-unit routes also accept a project-bound translation agent token. Each operation lists the scope it requires; the scope table is in the API description.
Path Parameters
Query Parameters
Available options:
languages, glossary, static, static-keys Response
Requested data
The response is of type object.
Was this page helpful?