Skip to main content
GET
/
v1
/
traces
/
{traceId}
/
graph
Get Trace Graph
curl --request GET \
  --url https://api.agentmark.co/v1/traces/{traceId}/graph \
  --header 'Authorization: <api-key>' \
  --header 'X-Agentmark-App-Id: <x-agentmark-app-id>'
{
  "graphData": [
    {
      "nodeId": "node_1",
      "spanId": "span_abc123",
      "nodeType": "agent",
      "displayName": "Research Agent",
      "spanName": "research-agent"
    },
    {
      "parentNodeId": "node_1",
      "nodeId": "node_2",
      "spanId": "span_def456",
      "nodeType": "tool",
      "displayName": "Web Search",
      "spanName": "web-search"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your AgentMark API key. Create one in the dashboard under Settings > API Keys.

Example: Authorization: Bearer am_live_abc123

Headers

X-Agentmark-App-Id
string
required

Your application ID. Found in the dashboard under Settings > General.

Example:

"app_abc123"

Path Parameters

traceId
string
required

The trace ID to retrieve graph data for.

Response

Graph data for the trace.

graphData
object[]