{
"success": true,
"data": {
"compositions": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"widgetId": "123e4567-e89b-12d3-a456-426614174002",
"name": "My Composition",
"content": {
"key": "value"
},
"contentVersion": 3,
"status": "draft",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-02T00:00:00Z",
"embedSettings": {
"width": "100%",
"height": "500px"
},
"design": {
"theme": "light",
"colors": {
"primary": "#0066ff"
}
},
"projectId": "123e4567-e89b-12d3-a456-426614174004",
"managedUserId": "b7c8d9e0-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
"managedUserExternalId": "user-8841"
}
],
"errors": [
{
"id": "<string>",
"error": "<string>"
}
]
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}Get compositions in a batch
Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK.
Each composition is checked on its own. If its owner listed the websites it may appear on (the
workspace’s domain list, or the allowedDomains of a partner the owner administers) and the request
comes from another website (the Origin header, or the host of Referer when there is no Origin),
that composition is left out of compositions and reported in errors as
Domain access denied: <reason>; the others are still returned. A request that names no website, and
an owner who listed nothing, are not restricted, and a page on the visitor’s own machine (localhost,
127.0.0.1 or [::1], on any port) is always allowed. So is the website where a partner integrates
Widgetic, with every subdomain of it (platformDomain in the answer of GET /partners/mine), for the
compositions of that partner: a partner’s list never has to name it.
{
"success": true,
"data": {
"compositions": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"widgetId": "123e4567-e89b-12d3-a456-426614174002",
"name": "My Composition",
"content": {
"key": "value"
},
"contentVersion": 3,
"status": "draft",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-02T00:00:00Z",
"embedSettings": {
"width": "100%",
"height": "500px"
},
"design": {
"theme": "light",
"colors": {
"primary": "#0066ff"
}
},
"projectId": "123e4567-e89b-12d3-a456-426614174004",
"managedUserId": "b7c8d9e0-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
"managedUserExternalId": "user-8841"
}
],
"errors": [
{
"id": "<string>",
"error": "<string>"
}
]
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}Authorizations
Send your API key as a bearer token: Authorization: Bearer <your API key>. Make a key in the dashboard under Settings → API keys; a workspace key starts with wdg_org_ and works in the workspace it was made in. See API keys and Authentication.
Body
Response
Compositions retrieved successfully