---
title: WorkflowRunInfo
source: https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/workflow-run-info
---

This API retrieves information about a specific workflow run, including its status, log URL, and any workflow state saved during execution.

## Input parameters

| Parameter    | Type      | Required | Description                                                                                                                                                                                |
| ------------ | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `account.id` | Number    | Yes      | Your account ID.                                                                                                                                                                           |
| `runId`      | String    | Yes      | The unique identifier of the workflow run. Obtained from `StartWorkflowRun` API.                                                                                                           |
| `state.keys` | String\[] | No       | An array of state key names to retrieve. Returns only matching key-value pairs saved by `state` steps in the workflow. Keys not found in the workflow state are omitted from the response. |

## Sample request

Use the [Query Builder](https://one.newrelic.com/nerdgraph-graphiql?state=03119d23-7b51-7b7a-1c99-d2cd026300e5) to create and edit a workflow. See [NerdGraph API explorer](https://docs.newrelic.com/docs/apis/nerdgraph/get-started/nerdgraph-explorer).

```graphql
{
  actor {
    account(id: 11933347) {
      workflowAutomation {
        workflowRunInfo(runId: "8911c7e4-5a1f-4316-90c8-67adde72dd1c") {
          state(keys: ["foo", "count"]) {
            key
            value
          }
          logUrl
          status
        }
      }
    }
  }
}
```

## Sample response

The query returns:

-   `logUrl`: URL to view the workflow execution logs.
-   `status`: The current status of the workflow run. Possible values: `STARTED`, `COMPLETED`, `FAILED`, `TIMED_OUT`, `STOPPED`.
-   `state`: An array of `{ key, value }` objects for each requested key found in the workflow state. Keys not present in the workflow state are omitted.

```graphql
{
  "data": {
    "actor": {
      "account": {
        "workflowAutomation": {
          "workflowRunInfo": {
            "logUrl": "https://one.newrelic.com/...",
            "status": "COMPLETED",
            "state": [
              { "key": "foo", "value": "bar" },
              { "key": "count", "value": "2" }
            ]
          }
        }
      }
    }
  }
}
```

## Related topics [#related-topics]

[Start workflow run](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/start-workflow-run)

Execute a workflow to get a runId

[Stop workflow run](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/stop-workflow-run)

Cancel a running workflow instance

[Signal workflow run](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/signal-workflow-run)

Send input to workflows waiting for signals

[Troubleshooting](https://docs.newrelic.com/docs/workflow-automation/troubleshooting)

Debug common workflow execution errors
