Try it free

Send an email

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Send an email in Dynatrace with the Email API, using UTF-8 and an optional notification settings URL in the message body.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/email/v1/emails

Overview

You provide recipient lists, subject, body, and optional notificationSettingsUrl in the request body. Dynatrace accepts the request or partially accepts it and sends the email using no-reply@apps.dynatrace.com as the sender.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
bodySendEmailRequest-bodyRequired

Request body objects

The SendEmailRequest object

ElementTypeDescriptionRequired
toRecipientsRecipientLists-Optional
ccRecipientsRecipientLists-Optional
bccRecipientsRecipientLists-Optional
subjectstring-Optional
bodyEmailBody-Optional
notificationSettingsUrlstring-Optional

The RecipientLists object

ElementTypeDescriptionRequired
emailAddressesstring[]-Optional
ssoUserIdsstring[]-Optional
ssoGroupIdsstring[]-Optional

The EmailBody object

ElementTypeDescriptionRequired
contentTypestring-
The element can hold these values
  • text/plain
  • text/html
Optional
bodystring-Optional

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"toRecipients": {
"emailAddresses": [
"string"
],
"ssoUserIds": [
"string"
],
"ssoGroupIds": [
"string"
]
},
"ccRecipients": {},
"bccRecipients": {},
"subject": "string",
"body": {
"contentType": "text/plain",
"body": "string"
},
"notificationSettingsUrl": "string"
}

Response

Response codes

CodeTypeDescription
202SendEmailResponse

Request accepted or partially accepted

400ErrorResponse

Bad request

401ErrorResponse

Unauthorized

403ErrorResponse

Forbidden

413ErrorResponse

Payload too large

429ErrorResponse

Too many requests

500ErrorResponse

Internal Server Error

503ErrorResponse

Service Unavailable

Response body objects

The ErrorResponse object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

Http status code of the response

messagestring-
retryAfterSecondsstring-
detailsErrorDetails-
helpstring

Link to a help page

The ErrorDetails object

ElementTypeDescription
errorRefstring

Represents a reference of the error.

traceIdstring

Unique identifier that follows the path of a single request.

errorCodestring

Unique code for error.

additionalDetailsErrorCodeAttributes

Additional details specific for a certain errorCode in form of String to Object map.

missingScopesstring[]

List of missing permissions

The ErrorCodeAttributes object

Additional details specific for a certain errorCode in form of String to Object map.

Response body JSON models

{
"error": {
"code": 400,
"message": "Too many recipients, current number of recipients is 101, maximum allowed is 100",
"details": {
"errorRef": "fddb6700-a451-40ec-80ba-d84c10c87896",
"traceId": "c995b75610ccdfb97c23a5f0b47d9eea",
"errorCode": "TooManyRecipients",
"requestId": "f4ca73b0-f3f0-4007-8058-8fbb5c7c2ca0",
"additionalDetails": {
"value": 101,
"limit": 100
}
}
}
}
Related tags
Platform APIDynatrace Platform