COMING SOON!
There are two types of searches available:
Specifying a value in the 'keywordSearchField' attribute in the request allows you to target keyword searches against Filename, Asset ID, Metadata, or Content (extracted text from documents.
By default, if not specified in the request, the search operation type will be set to 'AND' for search terms and/or facets. If the 'relevancy' field is passed as true, this will negate the operation selection used in legacy search and will leverage the relevancy search matching. When relevancy is set to true, the 'metadataDefinitionSearchField' field within the sortBy object should be set to 'relevance', and the 'order' field should be set to 'desc'.
By default, up to 50 Assets will return from the search. Should you want to limit the amount of assets returned in each response, the value for 'limit' can be set to a number up to 50. You can also set search offset by setting the 'from' property. For example, for the first page, set 'from' to 0. After that set 'from' to 50, 100, 150, etc.
This endpoint will only return a handful of metadata fields by default. To include more metadata fields in the response, those fields should be included in the 'includes' array. System metadata fields, such as Metadata Template ID, should be entered using camel case (ie, metadataTemplateId). Custom metadata fields should be entered by their attribute search term, prefixed by metadataDocument. For example, to retrieve an attribute called Published Channel, a user would include "metadataDocument.published_channel" in the includes array. Fields included in this array will be returned in an object called 'metadataDocument' if those attributes exist on the asset.
Average Response Time: 691ms
The Request Body must be a JSON object
The Response Body will be a JSON object
Bad Request
Unauthorized. Missing Authorization or AccessToken or Access Token expired
Failed operation
{- "searchTerm": [
- [
- "Gilfoyle",
- "Dinesh",
- "Erlich"
]
], - "from": 0,
- "limit": 50,
- "includes": [
- "metadataTemplateId",
- "metadataDocument.asset_description",
- "metadataDocument.file_size",
- "metadataDocument.compression_type"
], - "includeDeleted": true,
- "includeVersions": true,
- "sortBy": [
- {
- "metadataDefinitionSearchField": "lastUpdatedEpoch",
- "order": "desc"
}
], - "operation": "AND",
- "aggregations": false,
- "keywordSearchField": "filename",
- "relevancy": true
}
{- "total": 1,
- "results": {
- "createdEpoch": 1727724108027,
- "metadataDocument": {
- "property1": "string",
- "property2": "string"
}, - "fileId": "445c273a-235f-4d3b-8397-567f02f312e0",
- "filename": "gilfoyle_anton.png",
- "originalFileId": "2d69d72f-91be-4aeb-9d62-4fbd3759e451",
- "createdBy": "d6197e75-74e2-4a81-9c39-429148ab27a1",
- "objectId": "c5e24f53-cb77-4882-927c-0e8dddf5f7c9",
- "customerId": 1588091945182,
- "metadataTemplateId": "f5a66fac-7e81-44c1-b6eb-20997c559982",
- "renditionsDocument": {
- "width": 1920,
- "height": 1080,
}, - "securityTemplateIds": [
- "2d331840-50a0-4dc1-bc65-56151bf58a39"
], - "facets": [
- {
- "facet_name": "Company",
- "values": [
- {
- "key": "Pied Piper",
- "doc_count": 3
}
]
}
]
}
}