Sitecore API catalog/Agent API//
- 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
List allowed components for a placeholder
Move a component on a page
Remove component on page
Create a page
Creates a new page using the specified template under the parent page. You can set field values and the language for the new page.
Security
HTTPBearer
The unique identifier of the page template to be used for the new page.
Example:"9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f"
The unique identifier of the parent item for the new page.
Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/create
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Array of objects
- null
curl -i -X POST \
https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/create \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-sc-job-id: job-1234' \
-d '{
"templateId": "9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f",
"name": "About Us",
"parentId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
"language": "en",
"fields": [
{}
]
}'Response
{ "itemId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "About Us" }