This API gets and returns a workflow definition.
Input parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| Number | Yes | Your account ID. |
| String | Yes | The name of the workflow definition to retrieve. |
| 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 definitiondefinition.version: The version number of the workflow definitiondefinition.yaml: The base64-encoded workflow definition YAML