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 |
|---|---|---|---|
| Number | Yes | Your account ID. |
| String | Yes | The unique identifier of the workflow run. Obtained from |
| String[] | No | An array of state key names to retrieve. Returns only matching key-value pairs saved by |
Sample request
Use the Query Builder to create and edit a workflow. See NerdGraph API explorer.
{ 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.
{ "data": { "actor": { "account": { "workflowAutomation": { "workflowRunInfo": { "logUrl": "https://one.newrelic.com/...", "status": "COMPLETED", "state": [ { "key": "foo", "value": "bar" }, { "key": "count", "value": "2" } ] } } } } }}