Skip to content
Get started

Get Tags

workflows.get_tags(WorkflowGetTagsParams**kwargs) -> WorkflowGetTagsResponse
GET/workflows/tags

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

ParametersExpand Collapse
project_id: Optional[str]

The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)

status: Optional[Literal["draft", "ready", "deleted"]]

Only collect tags from workflows in this status. Default ready.

One of the following:
"draft"
"ready"
"deleted"
ReturnsExpand Collapse
class WorkflowGetTagsResponse: …
tags: List[str]

Array of unique tags from workflows in the project

Get Tags

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
response = client.workflows.get_tags()
print(response.tags)
{
  "tags": [
    "string"
  ]
}
Returns Examples
{
  "tags": [
    "string"
  ]
}