Try it free

Get a task execution

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Get a task execution in Dynatrace with the AutomationEngine API by execution ID and task name, with optional admin access.

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

Overview

You use executionId and id to retrieve one task execution by workflow execution and task name. If you set adminAccess, you can access all workflows and executions and also need automation:work. The response returns the task execution details.

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
executionIdstring-pathRequired
idstring

Task name

pathRequired

Response

Response codes

CodeTypeDescription
200TaskExecution-
4XXErrorEnvelope-

Response body objects

The TaskExecution object

ElementTypeDescription
idstring-
executionstring

Parent execution

namestring-
stateTaskExecutionState-
The element can hold these values
  • CANCELLED
  • DISCARDED
  • ERROR
  • IDLE
  • RUNNING
  • AWAITING_APPROVAL
  • SKIPPED
  • SUCCESS
  • WAITING
  • UNKNOWN
  • POST_PROCESSING
errorReasonstring-
stateInfostring-
inputobject-
startedAtstring-
endedAtstring-
runtimeinteger

Calculate the runtime of a task execution in seconds. If the task execution is not ended, runtime is calculated until now.

positionTaskPosition-
conditionsobject-
predecessorsstring[]-
activeboolean

Whether task is active

result--
conditionResultsobject-
descriptionstring-
actionstring-
isApprovalboolean

Whether this task is an approval request

packageVersionsobject-

The TaskExecutionState object

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 ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"id": "string",
"execution": "string",
"name": "string",
"state": "CANCELLED",
"errorReason": "string",
"stateInfo": "string",
"input": {},
"startedAt": "string",
"endedAt": "string",
"runtime": 1,
"position": {
"x": 1,
"y": 1
},
"conditions": {},
"predecessors": [
"string"
],
"active": true,
"result": {},
"conditionResults": {},
"description": "string",
"action": "string",
"isApproval": true,
"packageVersions": {}
}
{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform