Request

Retrieves the details of a specific page template, including its fields and settings. Use this endpoint to understand the structure and available fields of a template before creating a page.

Security
HTTPBearer
Query
templateIdstring, (uuid)(Templateid)required

The unique identifier of the page template. To get this ID, you can use the List templates of a site endpoint.

Example:templateId=2341ef32-42f4-4537-98d8-9ef741008eab
Headers
x-sc-job-idany(X-Sc-Job-Id)

A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

Example:job-1234
curl -i -X GET \
  'https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/pages/template-by-id?templateId=2341ef32-42f4-4537-98d8-9ef741008eab' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
templateIdstring, (uuid)(Templateid)

The unique identifier of the template.

Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
namestring(Name)

The name of the template.

Example:"Full Width Page"
fieldsArray of objects(Fields)

A list of fields associated with the template.

Response
{ "templateId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "Full Width Page", "fields": [ { … } ] }