v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
RUM

Get a JavaScript source map

Retrieves the content of a specific JavaScript source map file by its filename, service name, and version.

get/api/v2/sourcemaps

Query parameters

filenamestring required
Example:js/bundle.min.js.map

The path to the source map file.

servicestring required
Example:my-web-service

The service name associated with the source map.

versionstring required
Example:1.0.0

The version of the service associated with the source map.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "file": "bundle.js",
      "mappings": "AAAA,OAAO,CAAC,GAAG",
      "minifiedLineLengths": [
        50,
        30
      ],
      "names": [
        "console",
        "log"
      ],
      "sourceRoot": "/",
      "sources": [
        "src/index.js",
        "src/utils.js"
      ],
      "sourcesContent": [
        "console.log('index');",
        "export function util() {}"
      ],
      "version": 3
    },
    "id": "path/to/sourcemap.js.map",
    "type": "sourcemap_files"
  }
}