Skip to main content

Get All Workflow Definitions

Endpoint: GET /api/metadata/workflow

Gets all the workflow definitions in the cluster.

Query parameters

ParameterDescriptionTypeRequired/Optional
accessThe access level being requested. Supported values: READ, CREATE, UPDATE, EXECUTE, and DELETE. Default is READ.stringOptional.
metadataWhether metadata (such as tags) should be included in the response. Default is false.booleanOptional.
tagKeyOption to filter based on the tag key associated with the task definitions.stringOptional.
tagValueOption to filter based on the tag value associated with the task definitions.stringOptional.
nameThe name of a specific workflow definition to retrieve.stringOptional.
shortWhether to retrieve only essential parameters of the workflow definitions. Default is false. Set to true to retrieve only the essential part of the definition.booleanOptional.

Response

Returns an array containing all the workflow definitions in the cluster.

Examples

Get all workflow definitions with a specific tag

Get all workflow definitions with a specific tag

Request

curl -X 'GET' \
'https://<YOUR-CLUSTER>/api/metadata/workflow?access=READ&metadata=false&tagKey=api&tagValue=doc' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'

Response

[
{
"createTime": 0,
"updateTime": 1735802256013,
"name": "api-test",
"description": "Sample workflow created using API",
"version": 1,
"tasks": [
{
"name": "event",
"taskReferenceName": "event_ref",
"inputParameters": {},
"type": "EVENT",
"decisionCases": {},
"defaultCase": [],
"forkTasks": [],
"startDelay": 0,
"joinOn": [],
"sink": "sqs:internal_event_name",
"optional": false,
"defaultExclusiveJoinTask": [],
"asyncComplete": false,
"loopOver": [],
"onStateChange": {},
"permissive": false
}
],
"inputParameters": [],
"outputParameters": {},
"failureWorkflow": "",
"schemaVersion": 2,
"restartable": false,
"workflowStatusListenerEnabled": false,
"ownerEmail": "john.doe@acme.com",
"timeoutPolicy": "ALERT_ONLY",
"timeoutSeconds": 0,
"variables": {},
"inputTemplate": {},
"enforceSchema": true,
"overwriteTags": true,
"tags": [
{
"key": "api",
"value": "doc"
}
]
}
]