Request

Searches for digital assets such as videos, images, and documents using query terms, file types, or tags.

Limitations

  • Asset search results are limited to a maximum of 10 items per request.
  • This endpoint doesn't support pagination. Parameters such as pageNumber, pageSize, and continuationToken are ignored.
  • The response does not include pagination metadata such as totalCount or next.
Security
HTTPBearer
Query
querystring or null(Query)
Example:query=summer
Any of:

The search term to filter assets.

string
languagestring or null(Language)
Example:language=en
Any of:

The language code to filter assets.

string
typestring or null(Type)
Example:type=image
Any of:

The file type to filter assets such as image, video, or document.

string
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/assets/search?query=summer&language=en&type=image' \
  -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 asset.

Example:"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
pathstring(Path)

The path of the asset in the content tree.

Example:"/sitecore/media library/Images/Sample Image"
namestring(Name)

The name of the asset.

Example:"Sample Image"
displayNamestring or null(Displayname)
Example:"Sample Image Display Name"
Any of:

The display name of the asset, or null if not set.

string
typestring or null(Type)
Example:"image"
Any of:

The type of asset such as image or document.

string
templateIdstring, (uuid)(Templateid)

The unique identifier of the template used by the asset.

Example:"9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f"
templateNamestring(Templatename)

The name of the template used by the asset.

Example:"Image"
innerItemAssetMetadataModel (object) or null
Any of:

Metadata about the asset.

]
Response
[ { "itemId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "path": "/sitecore/media library/Images/Sample Image", "name": "Sample Image", "displayName": "Sample Image Display Name", "type": "image", "templateId": "9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f", "templateName": "Image", "innerItem": { … } } ]