List page assignments
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/assignments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/assignments', 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}/assignments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "clz8r5t6u0005pa01abou0001",
"pageId": "clz8q1m2n0004pg01abou0003",
"type": "CUSTOM",
"handle": "about-us",
"locale": ""
},
{
"id": "clz8r5t6u0006pa01prod0002",
"pageId": "clz8q1m2n0003pg01prod0002",
"type": "PRODUCT",
"handle": "snowboard",
"locale": ""
}
]
}{
"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>"
}Assignments
List page assignments
Lists every live page assignment of the project, ordered by type, then handle. An assignment binds a page to a route: type, handle and locale. Use the returned id values with the POST operations on this endpoint.
Required scope: content:read
GET
/
projects
/
{projectId}
/
assignments
List page assignments
curl --request GET \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/assignments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/assignments', 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}/assignments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "clz8r5t6u0005pa01abou0001",
"pageId": "clz8q1m2n0004pg01abou0003",
"type": "CUSTOM",
"handle": "about-us",
"locale": ""
},
{
"id": "clz8r5t6u0006pa01prod0002",
"pageId": "clz8q1m2n0003pg01prod0002",
"type": "PRODUCT",
"handle": "snowboard",
"locale": ""
}
]
}{
"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
Response
Assignment list
The response is of type object.
Was this page helpful?