RUM JavaScript code API - GET inline code

Returns the inline code for the most recent OneAgent JavaScript.

You can also use these functionally equivalent options to obtain RUM JavaScript code:

The request produces a plain/text payload.

  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/jsInlineScript/{applicationid}
  • SaaS https://{your-environment-id}{applicationid}


To execute this request, you need the Real User Monitoring JavaScript tag management permission assigned to your API token. To learn how to obtain and use it, see Authentication.


Parameter Type Description In Required
applicationid string The Dynatrace entity ID of the application.

You can obtain it from the response of the GET the list of manually injected applications call.
path required

Response format

The response in plain text, containing the inline HTML code for the most recent version of OneAgent JavaScript tag for the specified application.


In this example, the request fetches the inline HTML code for the latest version of the RUM JavaScript code for the easyTravel Ionic Web application, which has the ID of APPLICATION-BBFA55551D507E2B.

The API token is passed in the Authorization header.

The result is truncated to the first line.


curl -X GET \ \
  -H 'Authorization: Api-Token abcdefjhij1234567890'

Request URL

Response body

<script type="text/javascript"> <truncated>

Response code