curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections/{sectionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections/{sectionId}', 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}/global-sections/{sectionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "global_section_draft",
"head": {
"sectionId": "clz9g7x1k0001gs0secn0001",
"projectId": "clz8p2k0q0001ab12cd34ef56",
"versionId": "clzb3v0d10007gsv0ver0007",
"rootItemId": "clz9h1a2b0003gs01hdr0001",
"userId": "clz7s0h1p0000shop0000001",
"snapshot": {
"rootItemId": "clz9h1a2b0003gs01hdr0001",
"basisVersionId": null,
"items": [
{
"id": "clz9h1a2b0003gs01hdr0001",
"type": "header",
"data": {
"sticky": false
},
"children": [
{
"id": "clz9h1a2b0004gs01nav0002"
}
]
},
{
"id": "clz9h1a2b0004gs01nav0002",
"type": "header-menu",
"data": {
"menu": "main-menu"
},
"children": []
}
],
"translationBaselines": []
},
"createdAt": "2026-10-15T11:40:02.000Z",
"updatedAt": "2026-10-15T11:40:02.000Z"
}
}{
"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 a global section's draft
Returns the section’s current saved draft (the shared draft head), or head: null when no draft exists. The draft is never live: storefronts keep rendering the published subtree until the draft is published.
head.versionId is the value to pass as expectedHeadVersionId on the next save-draft, and as versionId to discard-draft or publish-draft. head.snapshot.items holds the saved item graph.
An unknown or foreign section returns 404, the same as a missing one.
Required scope: content:read
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections/{sectionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections/{sectionId}', 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}/global-sections/{sectionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "global_section_draft",
"head": {
"sectionId": "clz9g7x1k0001gs0secn0001",
"projectId": "clz8p2k0q0001ab12cd34ef56",
"versionId": "clzb3v0d10007gsv0ver0007",
"rootItemId": "clz9h1a2b0003gs01hdr0001",
"userId": "clz7s0h1p0000shop0000001",
"snapshot": {
"rootItemId": "clz9h1a2b0003gs01hdr0001",
"basisVersionId": null,
"items": [
{
"id": "clz9h1a2b0003gs01hdr0001",
"type": "header",
"data": {
"sticky": false
},
"children": [
{
"id": "clz9h1a2b0004gs01nav0002"
}
]
},
{
"id": "clz9h1a2b0004gs01nav0002",
"type": "header-menu",
"data": {
"menu": "main-menu"
},
"children": []
}
],
"translationBaselines": []
},
"createdAt": "2026-10-15T11:40:02.000Z",
"updatedAt": "2026-10-15T11:40:02.000Z"
}
}{
"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.
Response
Draft head or null
The response is of type object.
Was this page helpful?