Search portable component digests by prefix.
Searches current and historical component revisions by the start of their SHA-256 hex digest, optionally within one component. Returns the latest local revision for each (digest, componentId) pair. Repeat with the returned cursor until it is null.
ROLES: COMPONENT_READ,COMPONENT_WRITE,COMPONENT_ADMIN
curl --request GET \
--url https://api.revoengine.com/api/v1/component/digests/search \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/component/digests/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/component/digests/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"componentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"digest": "<string>",
"name": "<string>",
"type": "<string>",
"version": 123,
"current": true,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": {
"version": 123,
"digest": "<string>",
"componentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Bearer JWT token or API Key (sk-*).
Query Parameters
SHA-256 hex prefix. Empty or 1-64 characters within a selected component; at least 4 characters for instance-wide search.
Restrict results to a local component. Omit for instance-wide search.
Maximum matches returned per page (default 20, maximum 100).
1 <= x <= 100Local version from the previous page cursor; provide with afterDigest and afterComponentId.
x >= 0Digest from the previous page cursor; provide with afterVersion and afterComponentId.
Component ID from the previous page cursor; provide with afterVersion and afterDigest.
curl --request GET \
--url https://api.revoengine.com/api/v1/component/digests/search \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/component/digests/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/component/digests/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"componentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"digest": "<string>",
"name": "<string>",
"type": "<string>",
"version": 123,
"current": true,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": {
"version": 123,
"digest": "<string>",
"componentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
