This API gets and returns a list of all workflow definition outlines under the given scope.
Important
The workflow definition YAML is not available with this query. A workflow definition YAML is only returned using a GetWorkflowDefinition query /{actor/account(:id)/workflowAutomation/workflow(:name, :version)}.
Input parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| Number | Yes | Your account ID. |
| String | No | Cursor for pagination. |
Sample request
{ actor { account(id: 11933347) { workflowAutomation { workflows(cursor: "xyz123") { results { definition { name scope { id type } version } } } } } }}Sample response
The query returns:
workflows.results: An array of workflow definition outlines, each containing:definition.name: The name of the workflow definitiondefinition.scope.id: The account IDdefinition.scope.type: The scope typedefinition.version: The version number of the workflow definition