List project languages
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/languages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/languages', 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}/languages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"code": "en-us",
"name": "English (US)",
"isDefault": true
},
{
"code": "fr-fr",
"name": "French (France)",
"isDefault": false
},
{
"code": "vi-vn",
"name": "Vietnamese",
"isDefault": false
}
]
}{
"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
List project languages
Returns every language configured for a project: locale code, display name and whether it is the default. The default language is listed first, then the rest in the order they were added.
Pass a code as the locale parameter of other endpoints, for example to get translated page content or a theme’s static translations.
Required scope: content:read
GET
/
projects
/
{projectId}
/
languages
List project languages
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/languages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/languages', 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}/languages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"code": "en-us",
"name": "English (US)",
"isDefault": true
},
{
"code": "fr-fr",
"name": "French (France)",
"isDefault": false
},
{
"code": "vi-vn",
"name": "Vietnamese",
"isDefault": false
}
]
}{
"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
Was this page helpful?