Retrieve a site ID from an item ID

Request

Retrieves the site ID associated with a specific item ID. This is useful for determining which site an item belongs to.

Security
HTTPBearer
Path
itemIdstring, (uuid)(Itemid)required

The unique identifier of the item.

Example:3f2504e0-4f89-11d3-9a0c-0305e82c3301
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/sites/site-id-from-item/3f2504e0-4f89-11d3-9a0c-0305e82c3301 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
siteRootItemIdstring, (uuid)(Siterootitemid)

The unique identifier of the site root item.

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

The display name of the site root.

Example:"Skate Park"
siteRootNamestring(Siterootname)

The name of the site root.

Example:"Skate Park"
Response
{ "siteRootItemId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "siteRootDisplayName": "Skate Park", "siteRootName": "Skate Park" }