Get component elements only.
Returns only the selected component elements sorted by order. Public element payloads include componentElementId; clients should preserve it for durable refs and key renames.
ROLES: COMPONENT_READ,COMPONENT_WRITE,COMPONENT_ADMIN USER: true SERVICE ACCOUNT: true
curl --request GET \
--url https://api.revoengine.com/api/v1/component/{componentId}/elements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/component/{componentId}/elements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/component/{componentId}/elements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"key": "<string>",
"details": "<string>",
"order": 123,
"componentElementId": "<string>",
"desc": "<string>",
"metadata": {},
"hidden": true
}
]Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Component id whose elements should be listed.
Response
OK.
Unique element key. CODE_JS, CODE_TS, CODE_JS_LIB, and CODE_TS_LIB keys must be valid JavaScript identifiers and cannot be JavaScript/TypeScript reserved words. The permanent @default element cannot be renamed, deleted or replaced; its source remains editable. Only CODE_JS_LIB and CODE_TS_LIB additionally accept the reserved technical key @default: its named exports are available as lib.LibraryName.member. An ordinary DEFAULT key remains a regular node.
1 - 32Element source/body. Required whenever an explicit element is supplied.
Order of the element (must be unique).
Existing durable element identifier. Omit it on component create because the server assigns/regenerates the id; preserve it for updates, imports, reverts, and key renames.
Optional representation description, for example Swagger details. Pass null to leave it empty.
1000Optional element metadata. Top-level keys starting with "__" are reserved for backend use.
Hide supporting or large-output elements from normal result projection. Omit or pass null to default to false.
curl --request GET \
--url https://api.revoengine.com/api/v1/component/{componentId}/elements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/component/{componentId}/elements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/component/{componentId}/elements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"key": "<string>",
"details": "<string>",
"order": 123,
"componentElementId": "<string>",
"desc": "<string>",
"metadata": {},
"hidden": true
}
]
