---
title: GetWorkflowDefinitions
source: https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/get-workflow-definitions
---

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            |
| ------------------ | ------ | -------- | ---------------------- |
| `account.id`       | Number | Yes      | Your account ID.       |
| `workflows.cursor` | String | No       | Cursor for pagination. |

## Sample request

```graphql
{
  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 definition
    -   `definition.scope.id`: The account ID
    -   `definition.scope.type`: The scope type
    -   `definition.version`: The version number of the workflow definition

## Related topics [#related-topics]

[Get workflow definition](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/get-workflow-definition)

Retrieve full YAML for a specific workflow

[Create workflow definition](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/create-workflow-definition)

Add a new workflow to your account

[Delete workflow definition](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/delete-workflow-definition)

Remove workflows from your account
