Workflow Search
client.search.workflowSearch(SearchWorkflowSearchParams { originalAssets, projectId, filter, 8 more } params, RequestOptionsoptions?): SearchHitsOffset<SearchWorkflowSearchResponse { id, authorId, collectionIds, 14 more } >
POST/search/workflows
Search for workflows.
At least one of the following fields must have a value: query or filter.
Workflow Search
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const searchWorkflowSearchResponse of client.search.workflowSearch()) {
console.log(searchWorkflowSearchResponse.id);
}{
"hits": [
{
"id": "id",
"authorId": "authorId",
"collectionIds": [
"string"
],
"createdAt": "createdAt",
"description": "description",
"name": "name",
"ownerId": "ownerId",
"privacy": "privacy",
"status": "status",
"tags": [
"string"
],
"teamId": "teamId",
"updatedAt": "updatedAt",
"after": {
"assetId": "assetId",
"url": "url"
},
"before": {
"assetId": "assetId",
"url": "url"
},
"score": 0,
"shortDescription": "shortDescription",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
],
"limit": 0,
"offset": 0,
"estimatedTotalHits": 0,
"hitsPerPage": 0,
"page": 0,
"totalHits": 0,
"totalPages": 0
}Returns Examples
{
"hits": [
{
"id": "id",
"authorId": "authorId",
"collectionIds": [
"string"
],
"createdAt": "createdAt",
"description": "description",
"name": "name",
"ownerId": "ownerId",
"privacy": "privacy",
"status": "status",
"tags": [
"string"
],
"teamId": "teamId",
"updatedAt": "updatedAt",
"after": {
"assetId": "assetId",
"url": "url"
},
"before": {
"assetId": "assetId",
"url": "url"
},
"score": 0,
"shortDescription": "shortDescription",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
],
"limit": 0,
"offset": 0,
"estimatedTotalHits": 0,
"hitsPerPage": 0,
"page": 0,
"totalHits": 0,
"totalPages": 0
}