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

Returns all action definitions that can be used to compose a workflow definition.

## Input parameters

| Parameter    | Type   | Required | Description      |
| ------------ | ------ | -------- | ---------------- |
| `account.id` | Number | Yes      | Your account ID. |

## Sample request

```graphql
{
  actor {
    account(id: 11933347) {
      workflowAutomation {
        actionDefinitions {
          results {
            description
            inputs {
              name
              required
              secretAllowed
            }
            name
            outputs {
              name
            }
            timeout {
              action
            }
            version
          }
        }
      }
    }
  }
}
```

## Sample response

The query returns:

-   `actionDefinitions.results`: An array of action definitions, each containing:
    -   `name`: The action name (e.g., `aws.ec2.rebootInstances`)
    -   `description`: What the action does
    -   `version`: The action version
    -   `inputs`: Array of input parameters with `name`, `required`, and `secretAllowed` properties
    -   `outputs`: Array of output fields with `name` property
    -   `timeout.action`: Timeout in seconds

```graphql
{
  "data": {
    "actor": {
      "account": {
        "workflowAutomation": {
          "actionDefinitions": {
            "results": [
              {
                "description": "Reboot one or more EC2 instances in an AWS account.",
                "inputs": [
                  {
                    "name": "awsRoleArn",
                    "required": false,
                    "secretAllowed": false
                  },
                  {
                    "name": "awsAccessKeyId",
                    "required": false,
                    "secretAllowed": true
                  },
                  {
                    "name": "awsSecretAccessKey",
                    "required": false,
                    "secretAllowed": true
                  },
                  {
                    "name": "awsSessionToken",
                    "required": false,
                    "secretAllowed": true
                  },
                  {
                    "name": "region",
                    "required": true,
                    "secretAllowed": false
                  },
                  {
                    "name": "instanceIds",
                    "required": true,
                    "secretAllowed": false
                  },
                  {
                    "name": "selectors",
                    "required": false,
                    "secretAllowed": false
                  }
                ],
                "name": "aws.ec2.rebootInstances",
                "outputs": [
                  {
                    "name": "success"
                  },
                  {
                    "name": "response"
                  },
                  {
                    "name": "errorMessage"
                  }
                ],
                "timeout": {
                  "action": 25
                },
                "version": 1
              },
              {
                "description": "Send logs to New Relic.",
                "inputs": [
                  {
                    "name": "attributes",
                    "required": false,
                    "secretAllowed": false
                  },
                  {
                    "name": "logs",
                    "required": true,
                    "secretAllowed": false
                  },
                  {
                    "name": "licenseKey",
                    "required": false,
                    "secretAllowed": true
                  },
                  {
                    "name": "selectors",
                    "required": false,
                    "secretAllowed": false
                  }
                ],
                "name": "newrelic.ingest.sendLogs",
                "outputs": [
                  {
                    "name": "success"
                  },
                  {
                    "name": "errorMessage"
                  }
                ],
                "timeout": {
                  "action": 20
                },
                "version": 1
              }
              # more ...
            ]
          }
        }
      }
    }
  }
}
```

## Related topics [#related-topics]

[Actions catalog](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/actions-catalog)

Browse human-readable action documentation with examples

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

Learn how to use actions in workflow definitions

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

Build workflows using these actions
