get_components
Omit componentId to list reusable components for a website. Pass componentId to load one: default mode=summary returns ids and saved keys and sets truncated, mode=full returns the stored tree, mode=detailed adds requests/requestsDetailed, inputSchema, parseErrors, and ComponentBlock inputMappings, mode=mapping returns inputMappings. versions=N lists the component's revisions (newest first) and revisionId returns one stored revision. publishStatus is not available here: a component is served through the pages that embed it, so check those with get_pages. A summary is not a write body. See design/shared-concepts/data-requests. Pass includeStyle=true to attach resolved theme tokens (colours, fonts, radius, section padding, container width, breakpoints); style is omitted by default. Block props still take token paths such as colors.text.primary.
get_components · Grup: design
Girdiler
websiteId
zorunlu
componentId
isteğe bağlı
versions
isteğe bağlı — List this many stored revisions instead.
revisionId
isteğe bağlı — Return one stored revision instead.
contentLocale
isteğe bağlı
mode
isteğe bağlı — summary (default) | full | detailed | mapping | translation-gaps. summary returns ids and saved keys. full returns the stored tree.
blockId
isteğe bağlı
blockType
isteğe bağlı — Summary filter: block type.
under
isteğe bağlı — Summary filter: this block and its descendants.
depth
isteğe bağlı — Summary filter: max depth under the root, or under under.
propsKeys
isteğe bağlı — Summary: false returns id and type only.
includeDefaults
isteğe bağlı — true or annotate. Applies to mode=full.
includeStyle
isteğe bağlı
Şema
{
"name": "get_components",
"group": "design",
"inputFields": [
{
"name": "websiteId",
"required": true
},
{
"name": "componentId",
"required": false
},
{
"name": "versions",
"required": false,
"description": "List this many stored revisions instead."
},
{
"name": "revisionId",
"required": false,
"description": "Return one stored revision instead."
},
{
"name": "contentLocale",
"required": false
},
{
"name": "mode",
"required": false,
"description": "summary (default) | full | detailed | mapping | translation-gaps. summary returns ids and saved keys. full returns the stored tree."
},
{
"name": "blockId",
"required": false
},
{
"name": "blockType",
"required": false,
"description": "Summary filter: block type."
},
{
"name": "under",
"required": false,
"description": "Summary filter: this block and its descendants."
},
{
"name": "depth",
"required": false,
"description": "Summary filter: max depth under the root, or under `under`."
},
{
"name": "propsKeys",
"required": false,
"description": "Summary: false returns id and type only."
},
{
"name": "includeDefaults",
"required": false,
"description": "true or annotate. Applies to mode=full."
},
{
"name": "includeStyle",
"required": false
}
]
}Eşlendiği uçlar
GET /api/v1/{locale}/{websiteId}/components→ APIGET /api/v1/{locale}/{websiteId}/components/{id}→ APIPOST /api/v1/{locale}/{websiteId}/design/revisions→ API