---
title: "Get source maps"
method: GET
path: "/api/apm/sourcemaps"
tags: ["APM sourcemaps"]
---

# Get source maps

`GET /api/apm/sourcemaps`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/apm/sourcemaps</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get an array of Fleet artifacts, including source map uploads. You must have `read` or `all` Kibana privileges for the APM and User Experience feature.

## Query parameters

- `page` number
- `perPage` number

## Headers

- `elastic-api-version` '2023-10-31', required

## Response `200`

Successful response

- APMUISourceMapsResponse
  - `artifacts` object[] — Artifacts
    - `body` object
      - `bundleFilepath` string
      - `serviceName` string
      - `serviceVersion` string
      - `sourceMap` object
        - `file` string
        - `mappings` string
        - `sourceRoot` string
        - `sources` string[]
        - `sourcesContent` string[]
        - `version` number
    - `compressionAlgorithm` string — Compression Algorithm
    - `created` string — Created date
    - `decodedSha256` string — Decoded SHA-256
    - `decodedSize` number — Decoded size
    - `encodedSha256` string — Encoded SHA-256
    - `encodedSize` number — Encoded size
    - `encryptionAlgorithm` string — Encryption Algorithm
    - `id` string — Identifier
    - `identifier` string — Identifier
    - `packageName` string — Package name
    - `relative_url` string — Relative URL
    - `type` string — Type

## Other responses

- `400` — Bad Request response
- `401` — Unauthorized response
- `500` — Internal Server Error response
- `501` — Not Implemented response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
