curl --request GET \
--url https://api.agentmark.co/v1/traces/{traceId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Agentmark-App-Id: <api-key>'{
"data": {
"cost": 123,
"end": "2023-11-07T05:31:56Z",
"id": "<string>",
"latency_ms": 123,
"name": "<string>",
"spans": [
{
"cost": 123,
"duration_ms": 123,
"id": "<string>",
"input_tokens": 1,
"model": "<string>",
"name": "<string>",
"output_tokens": 1,
"parent_id": "<string>",
"status": "UNSET",
"timestamp": "2023-11-07T05:31:56Z",
"tokens": 1,
"trace_id": "<string>",
"type": "<string>",
"finish_reason": "<string>",
"input": "<string>",
"metadata": {},
"output": "<string>",
"output_object": "<string>",
"prompt_name": "<string>",
"props": "<string>",
"reasoning_tokens": 1,
"service_name": "<string>",
"settings": "<string>",
"span_kind": "<string>",
"status_message": "<string>",
"tool_calls": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"status": "UNSET",
"tokens": 1,
"graph": [
{
"displayName": "<string>",
"nodeId": "<string>",
"nodeType": "<string>",
"spanId": "<string>",
"spanName": "<string>",
"parentNodeId": "<string>"
}
],
"input": "<string>",
"output": "<string>",
"scores": [
{
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"resource_id": "<string>",
"score": 123,
"source": "<string>",
"label": "<string>",
"reason": "<string>",
"user_id": "<string>"
}
]
}
}Retrieve a specific trace by ID, including all its spans.
Pass ?fields=graph to include agent-workflow DAG nodes in the graph field of the response. Successor to the deprecated GET /v1/traces/{traceId}/graph sub-resource.
curl --request GET \
--url https://api.agentmark.co/v1/traces/{traceId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Agentmark-App-Id: <api-key>'{
"data": {
"cost": 123,
"end": "2023-11-07T05:31:56Z",
"id": "<string>",
"latency_ms": 123,
"name": "<string>",
"spans": [
{
"cost": 123,
"duration_ms": 123,
"id": "<string>",
"input_tokens": 1,
"model": "<string>",
"name": "<string>",
"output_tokens": 1,
"parent_id": "<string>",
"status": "UNSET",
"timestamp": "2023-11-07T05:31:56Z",
"tokens": 1,
"trace_id": "<string>",
"type": "<string>",
"finish_reason": "<string>",
"input": "<string>",
"metadata": {},
"output": "<string>",
"output_object": "<string>",
"prompt_name": "<string>",
"props": "<string>",
"reasoning_tokens": 1,
"service_name": "<string>",
"settings": "<string>",
"span_kind": "<string>",
"status_message": "<string>",
"tool_calls": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"status": "UNSET",
"tokens": 1,
"graph": [
{
"displayName": "<string>",
"nodeId": "<string>",
"nodeType": "<string>",
"spanId": "<string>",
"spanName": "<string>",
"parentNodeId": "<string>"
}
],
"input": "<string>",
"output": "<string>",
"scores": [
{
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"resource_id": "<string>",
"score": 123,
"source": "<string>",
"label": "<string>",
"reason": "<string>",
"user_id": "<string>"
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.