curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/hierarchy \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/hierarchy', 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}/hierarchy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "project_hierarchy",
"project": {
"id": "clz8p2k0q0001ab12cd34ef56",
"name": "My Store",
"parentProjectId": null,
"inheritTheme": true,
"parent": null,
"children": [
{
"id": "clz8p2k0q0009ab12cd34stg01",
"name": "Staging",
"variantDescription": "Pre-release checks"
}
]
}
}{
"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>"
}Get project hierarchy
Returns the project’s place in its hierarchy: its parent (if it is a variant), inheritTheme, and its live variants (children, with variantDescription).
Pass analyzeParent=<projectId> to also get duplicates: pages of this project that also exist in that candidate parent, with identicalStructure telling whether the content matches. Use it before link-parent to see which pages would become redundant. An unknown or foreign parent returns 404.
Required scope: project:manage
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/hierarchy \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/hierarchy', 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}/hierarchy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "project_hierarchy",
"project": {
"id": "clz8p2k0q0001ab12cd34ef56",
"name": "My Store",
"parentProjectId": null,
"inheritTheme": true,
"parent": null,
"children": [
{
"id": "clz8p2k0q0009ab12cd34stg01",
"name": "Staging",
"variantDescription": "Pre-release checks"
}
]
}
}{
"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
Response
Hierarchy and optional duplicates
The response is of type object.
Was this page helpful?