Skip to content
Get started

Get Tags

client.workflows.getTags(WorkflowGetTagsParams { status } query?, RequestOptionsoptions?): WorkflowGetTagsResponse { tags }
GET/workflows/tags

Get all unique tags from workflows in a project (all privacy levels). Optionally filter by status.

ParametersExpand Collapse
query: WorkflowGetTagsParams { status }
status?: unknown
ReturnsExpand Collapse
WorkflowGetTagsResponse { tags }
tags: Array<string>

Array of unique tags from workflows in the project

Get Tags

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
});

const response = await client.workflows.getTags();

console.log(response.tags);
{
  "tags": [
    "string"
  ]
}
Returns Examples
{
  "tags": [
    "string"
  ]
}