• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

GetWorkflowDefinition

This API gets and returns a workflow definition.

Input parameters

Parameter

Type

Required

Description

account.id

Number

Yes

Your account ID.

workflow.name

String

Yes

The name of the workflow definition to retrieve.

workflow.version

Number

Yes

The version of the workflow definition to retrieve.

Sample request

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

{
actor {
account(id: 11933347) {
workflowAutomation {
workflow(name: "my-workflow", version: 1) {
definition {
name
version
yaml
}
}
}
}
}
}

Sample response

The query returns:

  • definition.name: The name of the workflow definition
  • definition.version: The version number of the workflow definition
  • definition.yaml: The base64-encoded workflow definition YAML
Copyright © 2026 New Relic Inc.

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