• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

StartWorkflowRun

|View as Markdown (English)

Use the workflowAutomationStartWorkflowRun mutation to start a workflow run for a specified workflow definition.

Important

For limits on concurrent workflow runs and steps per run, see Workflow System Limits.

Input parameters

The following parameters are available for this API.

Parameter

Data type

Description

scope.id

String

(Required) Your account ID.

scope.type

Enum

(Optional) The scope type (ACCOUNT).

definition.name

String

(Required) The name of the workflow definition to run.

definition.scopeType

String

(Optional) The scope type of the workflow definition (ACCOUNT or ORGANIZATION).

definition.version

Int

(Optional) The version of the workflow definition to run.

workflowInputs

Array

(Optional) Key-value pairs to pass as inputs to the workflow.

idempotencyKey

String

(Optional) A UUID that ensures idempotency of the request. The server rejects non-UUID values (for example, f47ac10b-58cc-4372-a567-0e02b2c3d479).

options.logLevel

Enum

(Optional) Controls logging during execution. Values: NONE (default), INFO, DEBUG, TRACE.

logLevel option

The logLevel option controls the amount of information the workflow generates during execution.

  • NONE (default): Generates no log outputs.
  • INFO: Outputs step-level information.
  • DEBUG: Adds an attribute to the step started logs with all the action step inputs, using the format workflowAutomation.inputs.<inputName>: <inputValue>.
  • TRACE: In addition to DEBUG output, adds an attribute to the step started logs with all the action step outputs, using the format workflowAutomation.outputs.<outputName>: <outputValue>.

Sample request

Use the Query Builder to create and edit a workflow. See NerdGraph API explorer.

mutation {
workflowAutomationStartWorkflowRun(
definition: { name: "json-parsing", version: 1 }
workflowInputs: [
{ key: "checkOperational", value: "false" }
{ key: "checkNonOperational", value: "true" }
]
scope: { id: "12345678" }
idempotencyKey: "45e65924-5316-479c-a977-f6adfa17e07a"
options: { logLevel: INFO }
) {
runId
}
}

Sample response

The mutation returns:

  • runId: The unique identifier for the workflow run. Use this ID with WorkflowRunInfo, SignalWorkflowRun, or StopWorkflowRun APIs.

Workflow run info

Monitor the status and logs of your workflow run

Signal workflow run

Send signals to running workflows waiting for input

Stop workflow run

Cancel a running workflow instance

Get workflow definition

View the workflow definition before running

Droits d'auteur © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.