Try it free

Get an alert template

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Retrieve an alert template from the active environment configuration for an Extension 2.0 in Dynatrace with the Extensions 2.0 API.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions/{extension-name}/environment-configuration/alert-templates/{alert-template-id}

Overview

You provide the extension-name and alert-template-id path parameters to select the requested asset from the active environment configuration. The operation returns a success response with the alert template.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
extension-namestring

The name of the requested Extension 2.0.

pathRequired
alert-template-idstring

ID of the requested asset.

pathRequired

Response

Response codes

CodeTypeDescription
200AlertTemplate

Success.

4XXErrorEnvelope

Client error.

5XXErrorEnvelope

Server error.

Response body objects

The AlertTemplate object

ElementTypeDescription
templateJsonstring-

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code.

detailsErrorDetails

The error details.

messagestring

The error message.

The ErrorDetails object

The error details.

ElementTypeDescription
constraintViolationsConstraintViolation[]

A list of constraint violations.

The ConstraintViolation object

A list of constraint violations.

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"templateJson": "string"
}
{
"error": {
"code": 1,
"details": {
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
]
},
"message": "string"
}
}
Related tags
Platform APIDynatrace PlatformInfrastructure Observability