---
title: "Get a service map."
method: GET
path: "/v1/tracing/serviceMap"
tags: ["serviceMap"]
---

# Get a service map.

`GET /v1/tracing/serviceMap`

Run a search request to get a map of services and connections between them.

## Response `200`

List of nodes and list of edges.

- ServiceMapResponse
  - `nodes` ServiceMapNode[], required — List of service map nodes.
    - `serviceName` string, required — Name of a service in a service map.
    - `serviceColor` string — Color hex code assigned to the service.
    - `lastSeenAt` string, date-time, required — The last time in UTC a service has been seen. Formatted as defined by date-time - RFC3339.
    - `isRemote` boolean, required — Indicates whether node comes from inferred remote service or instrumented one.
    - `serviceType` string, required — Defines type of service.
  - `edges` ServiceMapEdge[], required — List of service map edges.
    - `source` string, required — Name of a source service. Edge is directed from source to target.
    - `target` string, required — Name of a target service. Edge is directed from source to target.
    - `lastSeenAt` string, date-time, required — The last time in UTC an edge has been seen. Formatted as defined by date-time - RFC3339.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/e4e4c7554890/schema)
