Try it free

Get a workflow task

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Retrieve a workflow task in Dynatrace with the AutomationEngine API, using workflow and task IDs and optional admin access to all workflows.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/workflows/{workflowId}/tasks/{id}

Overview

You use workflowId and id to identify the task you want to retrieve. If you set adminAccess, you can access all workflows and executions and it additionally requires automation:work. The operation returns the workflow task.

Authentication

To execute this request, you need a platform token or OAuth access token with automation:workflows:read scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
adminAccessboolean

Allow access to all workflows/executions - additionally requires automation:workflows:admin

queryOptional
idstring-pathRequired
workflowIdstring-pathRequired

Response

Response codes

CodeTypeDescription
200Task-
4XXErrorEnvelope-

Response body objects

The Task object

ElementTypeDescription
namestring-
actionstring-
descriptionstring-
inputobject-
active-

Specifies whether a task should be skipped as a no operation or not.

positionTaskPosition-
customSampleResult--
predecessorsstring[]-
conditionsTaskConditionOption-
withItemsstring-
concurrency--
retryTaskRetryOption-
timeout-

Specifies a default task timeout. 60 * 60 (60min) is used when not set.

waitBefore-

Specifies a default task wait before in seconds. 0 is used when not set.

The TaskPosition object

ElementTypeDescription
xinteger

Grid (not pixel) coordinate in workflow graph. x=0 is horizontal center.

yinteger

Grid (not pixel) coordinate in workflow graph. Expands downwards. Must be >= 1.

The TaskConditionOption object

ElementTypeDescription
statesobject-
customstring-
elseElse-

The Else object

The TaskRetryOption object

ElementTypeDescription
count-

Specifies a maximum number of times that a task can be repeated in case it fails on execution.

delay-

Specifies a delay in seconds between subsequent task retries

failedLoopIterationsOnlyboolean

Specifies whether retrying the failed iterations or the whole loop. Default: True.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"name": "string",
"action": "my.app:action_1",
"description": "string",
"input": {},
"active": true,
"position": {
"x": 1,
"y": 1
},
"customSampleResult": {},
"predecessors": [
"string"
],
"conditions": {
"states": {},
"custom": "string",
"else": "SKIP"
},
"withItems": "string",
"concurrency": "string",
"retry": {
"count": "string",
"delay": "string",
"failedLoopIterationsOnly": true
},
"timeout": 3600,
"waitBefore": 0
}
{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform