curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/page-translations/{pageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/page-translations/{pageId}', 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}/page-translations/{pageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "page_translations",
"projectId": "clz8k2m4n0001qwer7tyu8iop",
"pageId": "clz8k3a1b0004asdf5ghj6klz",
"language": {
"id": "clz8k2x7y0003lkjh4gfd3sap",
"code": "fr-fr",
"name": "French",
"isDefault": false
},
"data": [
{
"itemId": "clz8k3c9d0007zxcv8bnm1qwe",
"key": "data.heading",
"source": "Summer collection",
"translation": "Collection été",
"targetGeneration": "Collection été"
},
{
"itemId": "clz8k3d2e0008poiu7ytr6ewq",
"key": "data.buttonText",
"source": "Shop now",
"translation": null,
"targetGeneration": null
}
]
}{
"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>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Read a page's translations for one locale
Returns every translatable text key of an owned page for one configured target locale: the source text the runtime translates from, the current target text, and the targetGeneration a writeback must replay.
- Sources are resolved server-side from the item value, its component-schema default, or the project default language overlay (whichever the runtime actually translates from). Client-supplied schemas or bare item ids are never trusted.
translation: nullmeans no row exists, or the stored one answers a source the merchant has since changed.""is a deliberate clear.targetGenerationis the raw stored target value at read time (null= no row,""= cleared). Replay it verbatim onPOST.language.isDefaultistruewhen the locale is the project default language;POSTrefuses to write it.- Not cached: a cached generation would guarantee a stale write.
- Text only. Image translations are not exposed here; use
GET /projects/{projectId}/translation-units?kind=image.
Workflow: GET this page and locale, change translation on the entries you want to write, POST them back unchanged otherwise, then GET again to confirm.
Required scope: content:read
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/page-translations/{pageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/page-translations/{pageId}', 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}/page-translations/{pageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "page_translations",
"projectId": "clz8k2m4n0001qwer7tyu8iop",
"pageId": "clz8k3a1b0004asdf5ghj6klz",
"language": {
"id": "clz8k2x7y0003lkjh4gfd3sap",
"code": "fr-fr",
"name": "French",
"isDefault": false
},
"data": [
{
"itemId": "clz8k3c9d0007zxcv8bnm1qwe",
"key": "data.heading",
"source": "Summer collection",
"translation": "Collection été",
"targetGeneration": "Collection été"
},
{
"itemId": "clz8k3d2e0008poiu7ytr6ewq",
"key": "data.buttonText",
"source": "Shop now",
"translation": null,
"targetGeneration": null
}
]
}{
"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>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Authorizations
Bearer authentication: a shop API key (WEAVERSE_API_KEY), a scoped API key, a delegated MCP OAuth token, or (translation-unit routes only) a project-bound translation agent token. Scopes: content:read — Read projects, pages, theme settings, versions, drafts and translation units. content:write — Save drafts and make non-destructive edits (page items, metadata, SEO, assignments, languages, glossary). Never publishes or deletes. content:publish — Publish drafts, schedule/reschedule/cancel publications, restore versions, publish global sections. content:delete — Delete pages, global sections, languages, static keys, override reverts; required with project:manage for project deletion. project:manage — Create/copy/delete projects, settings, variants, hierarchy, backups, restore-as-new, previews, hostname policy. translations:read — Read translation units only (no general content access). translations:write — Apply translation units only; never mutates page content. A legacy unscoped API key keeps read/write/translation baseline access and every pre-scope endpoint, but never gains publish/delete/project-manage implicitly.
Path Parameters
The page id (from GET /projects/{projectId}/pages).
Query Parameters
A configured target locale, e.g. en-us (see GET /projects/{projectId}/languages).
Was this page helpful?