Sitecore API catalog/Agent API//
- List allowed components for a placeholder
Create a page
Add a language version to a page
Add a component to a page
Retrieve components on a page
Set the component datasource
Search for pages on a site
Retrieve the page by live URL
Retrieve the screenshot of a page
Retrieve the page HTML
Retrieve the page preview URL
Retrieve the page template by ID
Retrieve the page details
Move a component on a page
Remove component on page
List allowed components f...
Retrieves the list of components that can be added to a placeholder on a page. This helps ensure that only compatible components are used in each placeholder.
Security
HTTPBearer
The unique identifier of the page. To get this ID, use List pages of a site.
Example:550e8400-e29b-41d4-a716-446655440000
Example:variantId=8bd7a9ec96b8490f9b894e3866fefb79_2a5c1e8c8d244f569a44d6b28cbecb05
Any of:
The unique identifier of the personalization or A/B/n test variant to use. To get this ID, you can use the List flow definitions endpoint. Use the transpiledVariants[].ref, or variants[].ref when available.
If you provide this value, the list of allowed components is retrieved for the specified variant. If you omit this value, the list for the base page is returned.
string
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/{pageId}/placeholders/{placeholderName}/allowed-components
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
'https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/550e8400-e29b-41d4-a716-446655440000/placeholders/123e4567-e89b-12d3-a456-426614174000/allowed-components?language=en&variantId=8bd7a9ec96b8490f9b894e3866fefb79_2a5c1e8c8d244f569a44d6b28cbecb05' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-sc-job-id: job-1234'Response
[ { "id": "86a03271-dff4-470a-92bd-b68c67de2e25", "name": "Promo" } ]