Request

Searches for all pages in a specific site using a search term that matches page titles and content. The response returns the matching pages with their details including the page ID, path, and name.

Security
HTTPBearer
Query
search_querystring(Search Query)required

The search term to look for in page titles and content.

Example:search_query=skate
site_namestring(Site Name)required

The unique name of the site to search within.

Example:site_name=skate-park
languagestring(Language)

The language code for filtering pages.

Default:"en"
Example:language=en
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/search?search_query=skate&site_name=skate-park&language=en' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
Array [
itemIdstring, (uuid)(Itemid)

The unique identifier of the item.

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

The name of the item.

Example:"Home"
pathstring(Path)

The path of the item.

Example:"/sitecore/content/verticals/SkatePark/home"
templateIdstring, (uuid)(Templateid)

The unique identifier of the template.

Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
fieldsArray of objects(Fields)

A list of search fields associated with the item.

]
Response
[ { "itemId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "Home", "path": "/sitecore/content/verticals/SkatePark/home", "templateId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "fields": [ … ] } ]