Get service map summary
curl --request POST \
--url 'https://api.flashcat.cloud/monit/servicemap/summary?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"anchor": {
"host_id": "host_0123456789abcdef0123456789abcdef"
}
}
'import requests
url = "https://api.flashcat.cloud/monit/servicemap/summary?app_key="
payload = { "anchor": { "host_id": "host_0123456789abcdef0123456789abcdef" } }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({anchor: {host_id: 'host_0123456789abcdef0123456789abcdef'}})
};
fetch('https://api.flashcat.cloud/monit/servicemap/summary?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/monit/servicemap/summary?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'anchor' => [
'host_id' => 'host_0123456789abcdef0123456789abcdef'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/monit/servicemap/summary?app_key="
payload := strings.NewReader("{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/monit/servicemap/summary?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/monit/servicemap/summary?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"network_scope_id": "ns_0123456789abcdef0123456789abcdef",
"anchor_host_id": "host_0123456789abcdef0123456789abcdef",
"status": "active",
"authoritative": true,
"graph_role": "current",
"latest_collection_authoritative": true,
"observed_at_ms": 1784635556072,
"received_at_ms": 1784635557272,
"freshness": {
"status": "fresh",
"newest_received_at_ms": 1784635557272,
"oldest_received_at_ms": 1784635557272,
"max_age_ms": 1200
},
"coverage": {
"direction": "outbound",
"hosts_loaded": 2,
"degraded_hosts": 0,
"truncated_hosts": 0,
"capture_modes": [
"ebpf"
],
"network_inventory_status": "complete",
"kubernetes_enrichment_status": "unavailable"
},
"truncated": false,
"resolution_counts": {
"resolved": 1,
"ambiguous": 0,
"unresolved": 0
},
"neighbors": [
{
"edge_id": "edge_v1_example",
"source_entity_id": "procw_v1_source",
"source_display_name": "orders.service",
"resolution_status": "resolved",
"target_host_id": "host_fedcba9876543210fedcba9876543210",
"target_entity_id": "procw_v1_mysql",
"target_display_name": "mysqld.service",
"destination_protocol": "tcp",
"destination_ip": "203.0.113.105",
"destination_port": 3306,
"last_seen": "2026-07-21T18:45:56.072+08:00",
"active_connections": 1
}
],
"context_ref_detail": "ServiceMap current bounded evidence: anchor_host_id=host_0123456789abcdef0123456789abcdef; observed_at_ms=1784635556072; received_at_ms=1784635557272; latest_health_at_ms=0; status=active; freshness=fresh; graph_authoritative=true; latest_collection_authoritative=true; coverage_hosts=2; resolution_counts=resolved:1,ambiguous:0,unresolved:0; truncated=false. Observed outbound relations (relations_shown=1/1): [orders.service -> mysqld.service, resolution=resolved, last_seen=2026-07-21T18:45:56.072+08:00] Evidence rules: only resolution=resolved relations are certain; treat ambiguous/unresolved relations as leads to verify, not fact."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "ServiceUnavailable",
"message": "servicemap store is not initialized"
}
}Service map
Get service map summary
Return a bounded, AI-ready summary of a host’s outbound service dependencies.
POST
/
monit
/
servicemap
/
summary
Get service map summary
curl --request POST \
--url 'https://api.flashcat.cloud/monit/servicemap/summary?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"anchor": {
"host_id": "host_0123456789abcdef0123456789abcdef"
}
}
'import requests
url = "https://api.flashcat.cloud/monit/servicemap/summary?app_key="
payload = { "anchor": { "host_id": "host_0123456789abcdef0123456789abcdef" } }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({anchor: {host_id: 'host_0123456789abcdef0123456789abcdef'}})
};
fetch('https://api.flashcat.cloud/monit/servicemap/summary?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/monit/servicemap/summary?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'anchor' => [
'host_id' => 'host_0123456789abcdef0123456789abcdef'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/monit/servicemap/summary?app_key="
payload := strings.NewReader("{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/monit/servicemap/summary?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/monit/servicemap/summary?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"anchor\": {\n \"host_id\": \"host_0123456789abcdef0123456789abcdef\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"network_scope_id": "ns_0123456789abcdef0123456789abcdef",
"anchor_host_id": "host_0123456789abcdef0123456789abcdef",
"status": "active",
"authoritative": true,
"graph_role": "current",
"latest_collection_authoritative": true,
"observed_at_ms": 1784635556072,
"received_at_ms": 1784635557272,
"freshness": {
"status": "fresh",
"newest_received_at_ms": 1784635557272,
"oldest_received_at_ms": 1784635557272,
"max_age_ms": 1200
},
"coverage": {
"direction": "outbound",
"hosts_loaded": 2,
"degraded_hosts": 0,
"truncated_hosts": 0,
"capture_modes": [
"ebpf"
],
"network_inventory_status": "complete",
"kubernetes_enrichment_status": "unavailable"
},
"truncated": false,
"resolution_counts": {
"resolved": 1,
"ambiguous": 0,
"unresolved": 0
},
"neighbors": [
{
"edge_id": "edge_v1_example",
"source_entity_id": "procw_v1_source",
"source_display_name": "orders.service",
"resolution_status": "resolved",
"target_host_id": "host_fedcba9876543210fedcba9876543210",
"target_entity_id": "procw_v1_mysql",
"target_display_name": "mysqld.service",
"destination_protocol": "tcp",
"destination_ip": "203.0.113.105",
"destination_port": 3306,
"last_seen": "2026-07-21T18:45:56.072+08:00",
"active_connections": 1
}
],
"context_ref_detail": "ServiceMap current bounded evidence: anchor_host_id=host_0123456789abcdef0123456789abcdef; observed_at_ms=1784635556072; received_at_ms=1784635557272; latest_health_at_ms=0; status=active; freshness=fresh; graph_authoritative=true; latest_collection_authoritative=true; coverage_hosts=2; resolution_counts=resolved:1,ambiguous:0,unresolved:0; truncated=false. Observed outbound relations (relations_shown=1/1): [orders.service -> mysqld.service, resolution=resolved, last_seen=2026-07-21T18:45:56.072+08:00] Evidence rules: only resolution=resolved relations are certain; treat ambiguous/unresolved relations as leads to verify, not fact."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "ServiceUnavailable",
"message": "servicemap store is not initialized"
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 30 requests/minute; 2 requests/second per account |
| Permissions | Service Map Read (monit) |
Usage
- ServiceMap is an optional subsystem: a deployment without
redis.servicemapconfigured returnsServiceUnavailable. anchor.host_idmust already be known to ServiceMap; otherwise this returnsResourceNotFound.- This is a fixed-size digest, not a scaled-down
POST /monit/servicemap/topology: depth is always 1 and neighbors are capped at 12, and none of the sizing is caller-adjustable. context_ref_detailis a pre-rendered natural-language evidence string designed for LLM prompts; the structured fields are the source of truth and this is a convenience rendering of them.graph_role=last_known_goodmeans the latest ingestion is unhealthy and the summary reflects the last authoritative graph rather than a live one.
Authorizations
App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.
Body
application/json
Query parameters for the bounded, AI-ready dependency summary.
Response
Success
Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.
Was this page helpful?
⌘I