Try it free

Download the inline code

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026
  • Early Access

Download the RUM inline code for a web frontend with the Dynatrace RUM API, which embeds the monitoring code and configuration directly into your page.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/rum/v1/manualInsertionTags/inlineCode/{id}

Overview

You use the id path parameter, the Smartscape FRONTEND ID, to download the inline code for a web frontend. The inline code embeds the full RUM monitoring code and configuration into the page, which minimizes additional web requests, but you need to update it after configuration changes. A 200 response returns the tag, which you add to your pages to enable Real User Monitoring.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
idstring

Smartscape FRONTEND id.

pathRequired

Response

Response codes

CodeTypeDescription
200string

Success. The response contains the inline code.

400ErrorEnvelope

Bad request.

404ErrorEnvelope

Frontend not found.

4XXErrorEnvelope

Client error.

5XXErrorEnvelope

Server error.

Response body objects

The ResponseBody object

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

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

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